api-example tagged requests and articles

Categorized request examples and articles tagged with [api-example] keyword
REST API GET Example
An example of sending a GET request to the REST API endpoint. In this REST API GET example, the Accept: application/json request header tells the server that the client expects a JSON string. The Content-Type: application/json response header indicates that the server returned JSON for this GET request.

REST API Example
An example of sending JSON data to the REST API endpoint. The Accept: application/json request header indicates that the client wants to receive data in JSON format. The Content-Type: application/json response header informs the client that the server has returned JSON.

JSON API Example
An example of sending JSON to the REST API endpoint that implements JSON:API. In this JSON API example, the Content-Type: application/json request header specifies the media type of the request body as JSON. The server informs the client that it has returned JSON with a Content-Type: application/json response header.