![]() |
REST API
15
REST API for Luna Network HSMs
|
Headers are used by the server to process requests.
Content-Type defines the type of content the server should expect for a request so that it can be processed appropriately. You must specify this type 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}" }
Currently the REST API supports the following types:
Version is a number defining the version of the resource to access. It is good practice to specify the current REST API version you wish to use; the behavior of your applications will remain consistent even if the resource changes in a later version. If you do not specify a version, REST API defaults to the newest version.
The Accept-Type header entry is defined the same way as the Content-Type; it should be specified when using GET and DELETE requests.
NOTE: If both the Content-Type and Accept-Type header are given, the Content-Type will be used.