The primary media type served by the ShootProof API is:
application/vnd.shootproof+json
You may indicate acceptance of this media type by providing an Accept
header in all requests, unless specifically requesting a different media type indicated by a link relationship.
In the future, we may choose to indicate different representations (or versions) of our API resources through the use of content-negotiation varying on media types. For this reason, it is a good practice to use the Accept
header in all requests to our API.
When making POST
, PUT
, and PATCH
requests, this media type is required in the Content-Type
header. If not provided, we will respond with a 415 Unsupported Media Type
error response.
HTTP/1.1 415 Unsupported Media Type
Content-Type: application/problem+json
{
"type": "https://developer.shootproof.com/errors#error-unsupported-media-type",
"title": "Unsupported Media Type",
"detail": "The content-type received indicated a media type the server cannot process. Check `info` for a list of supported media types.",
"status": 415,
"info": {
"content-type": {
"received": "text/plain; charset=utf-8",
"supported": [
"application/vnd.shootproof+json"
]
}
}
}