You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 7
Next »
Introduction
The REST interface offered by SWS is exposed at the path:
http://<IP-APPLIANCE>:8080/SignEngineWeb/rest/
This path is composed by other sub-path for every of purpose:
- admin: method for sws like remove certificate from cache
- enquiry: contain the method for obtain the information like signatures available, signer certificate, timestamps available ecc...
- sign: this is the principal path of SWS and contain the methods for apply the signature
- timestamp: methods for apply the timestamp on every type of file
And in this guid will be described how manage the error generated by the REST interface.
ADMIN: remove-certificate-from-cache
Description | remove the certificate from cache of SWS |
HttpMethod | PUT |
---|
Path | /rest/admin/remove-certificate-from-cache |
Request |
|
ENQUIRY: certificate
Description | return the certifcate associated to "device_signer" |
HttpMethod | POST |
---|
Path | /rest/enquiry/certificate |
Request | request-enquiry-certificate { "credentials": { "username": "device_signer" } } |
ENQUIRY: signatures
Description | return the numer of signatures apposed from "device_signer" |
HttpMethod | POST |
---|
Path | |
Request | request-enquiry-certificate { "credentials": { "username": "device_signer" } } |
ENQUIRY: signatures-available
Description | return the number of signatures which "device_signer" can apply |
HttpMethod | POST |
---|
Path | /rest/enquiry/signatures/available |
Request | request-enquiry-certificate { "credentials": { "username": "device_signer" } } |