We are building a restful service for serving employee data.
We have an api which will return the list of employees who belong to a specific department of a client.
This api takes 2 parameters - clientId and departmentId
As per standards which of…
I'm finding it necessary to understand why including action verbs in the URI violates the REST protocol for URI syntax? When I read the following article, I sense that too many people are making too much noise about verbs, and that they should be…
I'm trying to clarify a concept related to REST discoverability - that is whether or not satisfying the HATEOAS constraint for a RESTful service means that now the URIs can change, because they are discoverable and not documented.
That seems to not…
I'm working on a private apis for our backend.
I have collections that have associations.
Each collection can be requested, paginated, you can also ask for the associations and paginate this associations.
We're not sure about which URL design to use…
We are using a REST service that returns huge data.
In production, the server hardware can handle it.
I need to test the REST service by getting the data on my local machine,
which cannot handle the huge data.
My local machine is a 4G i5.
I am…
For example, there's a restful API GET http://luexu.com/users/{page} to list the users in Nth page. Suppose there're 20 users in each page. There're 100 users total in the database. GET http://luexu.com/users/5 returns the 80th to 100th users.
So…
In terms of RESTful and stateless it's pretty legal to have resource like
/users/123
But, the question is: is it legal to have resource that omits user id and assumes that it's implicitly resolved on the server from the user session? For…
We are designing a RESTful API to return collections of documents. Our initial implementation uses HTTP status codes to indicate if a request could not be fulfilled. This seems to be a widely accepted best practice (see for example here).
We…
Thinking in a RESTful way, is it correct to use POST to create in a single call a resource and its sub-resource?
In my application I have the resource /notices/{notice} and sub-resource /notices/{notice}/photos/{photo}. A {photo} can't exists…
I want to change a user password via a REST API. This is not a forgotten or reset password function, but a logged in user wanting to change their password.
The form requires the current password, the new password, and a confirmation for the new…
Is there a REST best practice for GETting resources in different languages. Currently, we have
www.mysite.com/books?locale=en
I know we can use the accept-language header but is it better for us to do
www.mysite.com/books/en or…
Is it possible to create an EventBrisge rule which can be scheduled to run at a certain time of day and call an API as a custom target?
It seems as though a schedule can be setup for targets if they are AWS or Partner services, but not if they are…
I want to an image while I hit an API like localhost:8080:/getImage/app/path={imagePath}
While I hit this API it will return me an Image.
Is this possible?
Actually, I have tried this but it is giving me an ERROR.
Here is my…
I have a SQL database server in Microsoft Azure.
I want to use Azure Rest-API to select some records from a table.
When I refer to Azure SQL Database REST API I can't find any section for this purpose, just I can get a DB information, server info or…