Simple secure data exchange service.
Login Autentificate for take access token
Headers:
"Content-Type":"application/json; charset=utf-8"
"accept": "*/*"
{
"clientId":<client GUID>,
"password":<string>
}
{
"access_token":<string>,
"refresh_token":<string>,
"token_type":"Bearer",
"expires_in":<int>
}
200 - success
401 - Unauthorized
Token renewal using refresh token.
POST [host]/api/v1/RefresToken
Headers:
"Content-Type":"application/json; charset=utf-8"
"accept": "*/*"
{
"clientId":<client GUID>,
"password":<refreshToken>
}
{
"access_token":<string>,
"refresh_token":<string>,
"token_type":"Bearer",
"expires_in":<int>
}
200 - success
401 - Unauthorized
POST [host]/api/v1/objects
Headers:
"Content-Type":"application/json; charset=utf-8"
"accept", "*/*"
"clientId",< client GUID >
"destinationId", < destination client GUID >
"apiToken", "< access Token > "
{
"messageHeader" :" object header (max 150)" ,
"message" :" serialized object (JSON,XML,CSV ...)" ,
"dateStamp" :" DateTime" // date time send message
}
200 - success
401 - Unauthorized
GET [host]/api/v1/objects?take={1..200} - default 10
Headers:
"Content-Type":"application/json; charset=utf-8"
"accept", "*/*"
"clientId":< client GUID >
"destinationId", < destination client GUID >
"apiToken", "< access Token > "
[{
"id":long, // inner Id
"sender": "client GUID",
"destination":"client GUID",
"messageHeader":"object header (max 150)",
"dateStamp":"Date registered on service",
"senderDateStamp":"sender date registered"
"message":"serialized object (JSON,XML,CSV ...)"
}]
200 - success
401 - Unauthorized
DELETE object from service
DELETE [host]/api/v1/objects/{id}
Headers:
"accept", "*/*"
"clientId":<client GUID>
"apiToken", "<access Token>"
200 - success
401 - Unauthorized