What do you want to do | How you could do it |
---|---|
View, Create, Update and Delete entities. | REST & REST UI modules. |
List content. | Use Views REST exports. |
Restrict access to your API. | Add an authentication method. |
Pros | Cons | |
---|---|---|
Easy to set up. | Returns EVERYTHING about an entity. | |
Can expose all entities (even configuration ones). | Does not support access logic such as "show only my user details". | |
Supports authentication. | Can't set custom labels. |
Pros | Cons | |
---|---|---|
Easy to set up. | Does not support authentication (issue). | |
Supports custom labels, paging and filtering. | Does not report total pages. | |
Has an API, so it can be extended. | Poor image handling. |
Authenticating the request with Basic Auth.
This time, authenticating the request with OAuth
Full details at https://www.drupal.org/node/2558697
Provides a language to query our API.
Provides... something.
Yes. Services.