Download, install and run Postman from https://www.getpostman.com
If you are new to Postman, create a new collection named e.g. "Navis NCVS Cloud Services" that will help you to organize the requests that you will setup in the next steps.
Consult the service documentation for the details to setup.
- Set the verb to
POST
. - Set the route to https://api.stability.macs3.com/ships/{imoNumber}/stability
- Replace the {imoNumber} in the route with the IMO-Number (9526875).
- Click
Headers
. - Set a key
Authorization
and specify your company API-Key. NOTE: prepend your API-Key with "ApiKey" and a space. - Set a key
Accept
as application/json. - Set a key
Content-Type
as application/json.
- Select
Body
. - Select
RAW
- Fill the parameters in JSON-Notation. This is often the tricky part and requires an intense inspection of the service documentation. For the walk-trough, please use the JSON-Snippet below.
{"tanks":[{"name":"5DBP","density":1.025,"percentageFilled":50.0,"maxFs":false}],"containers":[{"id":1,"containerId":"AAAU1234567","typeIsoCode":"22G0","grossWeight":14.0,"position":"170182"}],"constants":[{"name":"Deadweight constant","weight":676.0,"lcg":79.27,"vcg":7.65,"tcg":0.0,"wda":-4.6,"wdf":295.0}],"settings":{"seawaterDensity":1.025},"calculate":{"loadingCondition":true,"tanks":true,"stability":true,"hydrostatics":true,"strength":false,"strengthCurves":false,"visibility":true,"summary":true}}
- Click
SEND
- After sending your request, you will receive the service response. Consult the service documentation about details explaining the response-details.