I want to use the REST API for other user to get my web database data, I did not know where to open the option, even I read the REST API on help file, but I have not find anything that help me.
REST API is generated by default if you have enabled the table for generation. You just need to use the REST API (read REST API in help file) to access the API.
Hi,assume that my website is mysite, and I have the following REST APImysite/api/index.php?action=login&username=admin&password=mypasswordthe browser will return the JSON format my user information.
mysite/api/index.php?action=list&object=vendorbut the upper POST can not work. but if I login the mysite with my username by manual , after that, I can run the API for vendor table list.
I want to know that the server return the login API successfully. why I can not run other list API. what is my problem.
The login API returns a JWT Token which you should use for authenticating your subsequent request. Read REST API in the help file to understand how JWT works.
Even I read the document, and I try more times with different method, but it can not work.
would you please give me an examples, how to add the JWT in my post …http://mysites/EPOM/api/index.php?action=view&object=device&ProductID=1/JWTthe JWT is very long text, ,I am not sure what is the right JWT. I paste the text"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE2MTIwODMyMjEsImp0aSI6Inpqc3oxdUR1UkdSY3BiZExoZ0dBaHNJaEpMTDMwdVA3K25vQnQzNlZUd009IiwiaXNzIjoiY2hpcGJtcy50b3AiLCJuYmYiOjE2MTIwODMyMjEsImV4cCI6MTYxMjA4MzgyMSwic2VjdXJpdHkiOnsidXNlcm5hbWUiOiJ3aXNkb216IiwidXNlcmlkIjoiMiIsInBhcmVudHVzZXJpZCI6IiIsInVzZXJsZXZlbGlkIjotMX19.NJbX33ZwNmWRJn58m0Z87jzqMsDQFm4SXMQy9fik9CHeVj_QEc6f2QWVRkssFIhrT6g6N_QMR-nr6r_gm2wVxg"Thank youWisdom