How do I post JSON to the JSON API endpoint? [Java Code]

To send JSON data to a JSON API endpoint, you must include the JSON data in the body of the POST request message and specify the JSON media type with the Content-Type: application/vnd.api+json request header. The client must also send an Accept: application/vnd.api+json request header to tell the server that it is expecting a JSON API response from the server. Click Send to execute the JSON API Example online and see the results. The Java code was automatically generated for the JSON API example.
Loading...