Description example of API function
The curl command examples for each format of request parameters are as follows:
Request parameter formats | Example |
---|---|
Path format |
curl -X GET --header 'Accept: application/json' --header 'X-API-KEY:key-key-key-key-key' 'http://localhost:8765/api/v1/requested-api/abcdefg' |
Query format |
curl -X GET --header 'Accept: application/json' --header 'X-API-KEY:key-key-key-key-key' 'http://localhost:8765/api/v1/requested-api?aaaa=0&bbbb=0&cccc=Mon+Jan+01+00:00:00+2018' |
JSON format |
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'X-API-KEY:key-key-key-key-key' -d '{ "aaaa": "0", "bbbb": "0", "cccc": "0"}' 'http://localhost:8765/api/v1/requested-api' |