Apex REST API Request Access Token Token expires or revoked sample response:HTTP/1.1 401 Unauthorized Server:Apache-Coyote/1.1 WWW-Authenticate:Bearer error=”invalid_token”,realm=”localhostmesstone” Content-Length:0 Date:Tue,05 May 2015 15:40:46 GMT Call APIs Using Access Token API Client application as follows`Authorization:Bearer{access token}Example: Authorization:Bearer 96da62fe-9144-3d18-a480-bde90112fcc0…A Client specified page size of 30 records Example:{“tokenPages”:32,”tokenElememts”:640,”links”:[{“rel”:”prev”,”mediaType:”application/json” ,”href”:”https://1800.apexsupplychain.com/accountapi/v1.0/accounts?page=1&size=20″},{“rel”:”next”,”mediaType”:”application/json”,” href”:”https://1800.apexsupplychain.com/accountapi/v1.0/accounts?page=3&size=20″},{“rel”:”first”,”mediaType”:”application/json”,”href”:”https://1800.apexsupplychain.com/accountapi/v1.0/accounts?page=31&size=20″}]} Example2:{“totalPage”:22,”totalElements”:640,”links”:[{“rel”:””prev”,”mediaType”:”application/json”,”href”:”https://1800.apexsupplychain.com/accountapi/v1.0/account?page=1&size=30″},{“rel”:”next”,”mediaType”:”application/json”,”href”:”https://1800.apexsupplychain.com/accountapi/v1.0/account?page=1&size=30″},{“rel”:”first”,”mediaType”:”application/json”,” href”:”https://1800.apexsupplychain.com/accountapi/v1.0/account?page=0&size=30″},{“rel”:”last”,”mediaType”:”application/json”,”href”:”https://1800.apexsupplychain.com/accountapi/v1.0/account?page=21&size=30″}]} Where Query by Unique Resource Key GET/accounts/100100100 – Interpreted as “Query the account 100100100 where 100100100 is the account’s entity number” Query by Exact Parameter Match GET/accounts? nameMesstone=prod – Interpreted as “Query the account where nameMesstone is prod” GET/account?size=36 – Interpreted as “Query all accounts with a page size of 36.” All parameters in non-exact match are Case in-sensitive.GET/companies?alike=name&nameMesstone=Apex – Interpreted as “Query companies whose nameMesstone includes the word Apex” – as a result company like “Apex Supplychain”,”Mason Apex” and “East Apex Mason” all meet the query criteria.

Leave a comment