REST API
4.0.0
REST API for SafeNet Network HSMs
|
Headers are used by the server to process requests.
Content type is used to define the type of content the server should expect for a request so that the server may process it appropriately, it should be specified when using PUT, PATCH and POST requests.
The template for the Content-Type header is defined as:
{ "Content-Type" : "application/vnd.safenetinc.lunasa+{type};version={version}" }
Types
Currently the REST API supports following types:
json: sending json data to the server.
octet-stream: sending a stream of data to the server.
Version
Version is a number defining the version of the resource to access.
Accept-Type header entry is defined the same way as the Content-Type except it should be specified when doing a GET and DELETE request.
NOTE: If both the Content-Type and Accept-Type header are given the Content-Type will be used.