Step 1:
User Login API: http:localhost/asset2/api/?action=login&username=api&password=SuVeechi*123
Output:
{
“JWT”: “eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE1ODA5NzIyMDYsImp0aSI6IlJSZmJCdTJabTJDd2xMWnliQVBcL0hCeTdnU2VEemJTbDJCOWdlR2NsWFJnPSIsImlzcyI6ImxvY2FsaG9zdCIsIm5iZiI6MTU4MDk3MjIwNiwiZXhwIjoxNTgwOTc1ODA2LCJzZWN1cml0eSI6eyJ1c2VybmFtZSI6ImFwaSIsInVzZXJpZCI6bnVsbCwicGFyZW50dXNlcmlkIjpudWxsLCJ1c2VybGV2ZWxpZCI6LTF9fQ.PJzG5bsd1_yUThlgQzIeS99RPwtSAQQlWC1f5cxsG1sQo6vwY6V3D7mIVxaCNBvC1stOsUw5w0-lBumk_C7vkg”
}User Login API: http:localhost/asset2/api/?action=list&object=asset
Output:
{
“success”: false,
“failureMessage”: “You do not have permission to access /asset2/api/index.php.”,
“version”: “16.0.9”
}Header:
Expires : Wed, 06 Feb 2019 06:56:45 GMT
does the noted user have permission to the asset table?, in particular list permission?
Make sure you have stored the JWT token and use it in the header when you send request in step 2, see the example under the topic REST API in the help file.