json tagged requests and articles

Categorized request examples and articles tagged with [json] keyword
POST JSON String
An example of posting a JSON string to the REST API endpoint. The Content-Type: application/json request header indicates the media type of the resource in the request body. The Accept: application/json request header tells the server that the client expects JSON. The Content-Type: application/json response header indicates that the server returned JSON.
json post-request post-data request-header post-json rest-api

GET JSON String
An example of how to request a JSON string from the server. The 'Accept: application/json' request header tells the server that the client expects a JSON. The 'Content-Type: application/json' response header informs that the server returned a JSON string.
json get-request request-header rest-api get-json

Curl POST JSON Example
An example of a Curl command to post a JSON string to the REST API endpoint. The 'Content-Type: application/json' request header indicates the media type of the resource in the request body. The 'Accept: application/json' request header tells the server that the client expects a JSON media type. The JSON is passed in the -d command-line parameter.
curl json post-json post-request rest-api request-header

Curl Command to GET a JSON String
An example of a Curl command to get a JSON string from the REST API endpoint. The 'Accept: application/json' request header is passed to the server with the Curl -H command-line parameter and tells the server that the client expects JSON media type.
curl json get-json get-request rest-api request-header

PUT JSON String
An example of sending a PUT request with JSON string to the REST API endpoint. The 'Accept: application/json' request header tells the server that the client expects JSON. The 'Content-Type: application/json' request header indicates the media type of the resource in the request body.
put-request json rest-api put-method submit-data

GET Request to Retrieve a JSON
This page demonstrates how to send a GET request to REST API endpoint with Accept: application/json and Bearer token in authorization headers.
get-request json rest-api get-method

Curl PATCH JSON String
An example of a Curl command for sending a PATCH request with JSON content string to the REST API endpoint. Try it yourself with ReqBin online Curl Client.
curl json patch-request path-method rest-api submit-data

Curl PUT JSON Example
An example of Curl command for updating a resource on the server by sending a PUT request with JSON string to the REST API endpoint.
curl json put-request rest-api put-method submit-data

POST JSON String With Basic Authentication
This page shows how to send a JSON string with Basic authentication header "Authorization: Basic bG9naW46cGFzc3dvcmQ=".
post-request json basic-authentication authentication-header post-json rest-api authorization

PATCH JSON String
An example of sending a PATCH request with JSON content string to the REST API endpoint. Try it yourself with ReqBin online HTTP Client.
patch-request json rest-api path-method submit-data

Curl Command to POST JSON String with Bearer Token Authorization Header
This page shows how to send a JSON string with a Bearer token authorization header with Curl.
curl json post-request bearer-token authorization authorization-header post-json request-header

GET Request With Bearer Token Authorization Header
This page demonstrates how to send a GET request to an HTTP API endpoint with Accept: application/json and Bearer token authorization headers.
get-request json bearer-token authorization-header accept-header rest-api request-header authorization

HTTP POST Request
An example of an HTTP POST request. The The 'Content-Type: application/json' request header indicates the POST request body media type. The 'Content-Type: application/json' response header informs the client that the server returned an JSON as a result of executing this POST request.
http-request post-request json post-method rest-api submit-data post-data

GET Request with Cookies in header to get JSON
This page shows how to send a GET request with HTTP cookies in the header to get JSON. Try it yourself with ReqBin online HTTP Client.
get-request cookies json http-headers get-method rest-api request-header

POST JSON String with Custom Headers
This page shows how to post JSON with custom request headers.
post-request json request-header custom-header post-json rest-api post-method submit-data post-data

POST JSON with Curl
An example of a Curl request to post a JSON string to the REST API endpoint. The 'Content-Type: application/json' request header indicates the media type of the resource in the request body. The 'Accept: application/json' request header tells the server that the client expects a JSON. The JSON string is passed in the Curl -d command-line parameter.
curl json post-request request-header rest-api post-json

POST JSON String With Bearer Token Authorization Header
An example of how to send a JSON string with Accept: application/json and Bearer token authorization headers.
post-request json bearer-token authorization-header post-json authorization post-method

POST JSON with Custom Headers
This page shows how to POST a JSON string with custom HTTP headers. Try it yourself with ReqBin online HTTP Client.
post-request json custom-header http-headers

Curl Command to POST JSON String With Basic Authentication
This page shows how to send a JSON string with Basic authentication header with Curl.
curl json basic-authentication authentication-header request-header authorization rest-api

Curl GET JSON Example
This page shows how to send a Curl command to get JSON from the server.
curl json get-request get-json rest-api get-method request-header

Curl REST API GET Example
An example of a Curl command for sending a GET request to the REST API endpoint to get a JSON. Try it yourself with ReqBin online Curl Client.
curl json get-request request-header rest-api

POST JSON with Basic Authentication Credentials
This page shows how to post JSON string with Basic authentication credentials in the header. Try it yourself with ReqBin online HTTP Client.
post-request json basic-authentication credentials authorization rest-api

Client Request with Content-Type Header
An example of an HTTP request to send a JSON string to the server. The 'Content-Type: application/json' header tells the server that the request body contains a JSON string.
post-request json content-type post-method rest-api request-header

Posting JSON to the Server with Curl
Curl command for posting JSON data to the server as a part of the request. The 'Content-Type: application/json' header indicates that we are sending a JSON. The 'Accept: application/json' header tells the server that we can accept JSON.
curl json post-request request-header rest-api post-json

POST JSON with Bearer Authentication Credentials
This page shows how to post JSON string with Bearer authentication credentials in the header. Try it yourself with ReqBin online HTTP Client.
post-request json bearer-token credentials rest-api authorization

POST Request
An example of sending a POST request with JSON data to the REST API endpoint. Try it yourself with ReqBin online HTTP Client.
post-request rest-api json post-json request-header

POST Request With Content-Length Header
This page shows how to send a POST request with a Content-Length header that indicates the size of the provided JSON.
post-request content-length json post-method rest-api request-header post-data

POST JSON with Curl Example
This page shows how to send a Curl command with JSON string
curl json post-request request-header post-json rest-api

Send JSON String
Live request example of sending JSON string to REST API endpoint with a custom Content-Type: application/json header.
post-json custom-header content-type json rest-api

curl -u
A live example of sending Curl command with Basic server authentication header (credentials are provided with -u or --user command-line argument). Try it yourself with ReqBin online Curl client.
basic-authentication http-header curl json authorization request-header curl-command

POST JSON with Custom Authorization Header
This page shows how to post JSON string with a custom authorization header. Try it yourself with ReqBin online HTTP Client.
post-request json custom-header authorization-header authorization rest-api request-header post-json custom-authorization

POST JSON
This page shows how to POST a JSON string with a custom Content-Type: application/json header.
post-json json custom-header content-type post-request

Curl POST Request
An example of making a POST request with Curl. The '-H "Content-Type: application/json"' Curl command-line parameter indicates the media type of the resource. The '-d "{...}"' command-line parameter contains the data to send to the server. The 'Accept: application/json' request header informs the server that Curl client expects a JSON.
curl json post-data post-request request-header

REST API GET Example
An example of sending a GET request to the REST API endpoint to get a JSON. Try it yourself with ReqBin online HTTP Client.
get-request rest-api json request-header

Convert Curl to POST JSON Request
Convert Curl command to the HTTP POST JSON request. See the POST Header and JSON on the Raw tab.
curl json rest-api post-request post-method

GET JSON with Curl
This is a live example of retrieving a JSON string from a REST API endpoint using Curl. Try it yourself with ReqBin online Curl client.
curl json get-request rest-api request-header

Posting JSON to the Server
Live example of posting JSON data to the server as a part of the request. The 'Content-Type: application/json' header indicates that we are sending a JSON. The 'Accept: application/json' header tells the server that we can accept JSON.
json accept-header request-header rest-api

GET Request
An example of sending a GET request to the server.
get-request json rest-api

Convert Curl to HTTP POST Request
Convert Curl command to the HTTP POST request. See the POST Header and body on the Raw tab.
curl post-method rest-api post-request json

REST API Example
A Live example of sending data to the REST API endpoint. Data is sent in JSON format. Accept: application/json header indicates that the client can receive data in JSON format. Run this example Yourself.
rest-api post-request json

JSON Comment Example
An example of including a comment in a JSON. Comments in the form // ... or / * ... * / are not allowed in JSON, but you may have a special element in your JSON, called for example, "_comment", which will contain your comment. The REST API endpoint must ignore this special JSON comment element.
json rest-api

REST API
REST API provides an interface for applications to interact with sites by sending and receiving data as JSON (JavaScript Object Notation) objects to the endpoints (URLs) to query, modify and create content on the site.
json rest-api

SOAP vs REST
SOAP and REST are known as two of the most common API paradigms. The key difference between SOAP and REST is the way they interact with the server.
json xml rest-api soap-api

SOAP API
SOAP is an XML-based messaging protocol specification that strictly defines an entire method of communication between the client and the server.
json xml rest-api soap-api

API Security
The primary purpose of API Security is to comprehend and alleviate the vulnerabilities peculiar to API and its security risks by focusing on strategies and solutions that allow application software and services to integrate and products and services to communicate.
api oauth api-key api-security json xml