At 22:05 , there is no need to do a extra query call to get the generated id, you can execute the insert statement with the returning keyword at the end which will return you the id in the result set
Thanks exactly what helped me out to understand it! There is just one more thing I would like to know. I am setting up a Vue.js application to communicate with my RAD Server. After the login I would like to access different ressources restricted by the login credentials. This shall not work with the internal RAD Server user in the Interbase database but with different customised rights. How can I work with a "Bearer token" in the "Authorization" header when calling the RAD Server? When I try it gives me an error message with: "Unsupported authorization scheme.
@@marinovic88 It works so far that I separated the login logic. In the first login procedure, which is public, I pass in the customised user credentials. I check those in a postgres database. If they are correct I make an official login request from the web server into the EMS Server database/user. Here I receive the authorization string I can use to access the "restricted" resources/endpoints. But in all the future requests I just pass on additional authorization code to it, to identify the customised user and his access right. So I have one to authorize the access to the resource/endpoing and one for further more complex access rights handling in my application.
Its just brilliant! Very informative, short and fast explanation of the basics of full cycle REST App dev. Thank you!
This was just what I was hoping to find. Thanks for making it.
At 22:05 , there is no need to do a extra query call to get the generated id, you can execute the insert statement with the returning keyword at the end which will return you the id in the result set
Thank you very much
It is very useful
Thanks exactly what helped me out to understand it!
There is just one more thing I would like to know. I am setting up a Vue.js application to communicate with my RAD Server. After the login I would like to access different ressources restricted by the login credentials. This shall not work with the internal RAD Server user in the Interbase database but with different customised rights. How can I work with a "Bearer token" in the "Authorization" header when calling the RAD Server? When I try it gives me an error message with: "Unsupported authorization scheme.
Did you found the answer?
@@marinovic88 It works so far that I separated the login logic. In the first login procedure, which is public, I pass in the customised user credentials. I check those in a postgres database. If they are correct I make an official login request from the web server into the EMS Server database/user. Here I receive the authorization string I can use to access the "restricted" resources/endpoints. But in all the future requests I just pass on additional authorization code to it, to identify the customised user and his access right. So I have one to authorize the access to the resource/endpoing and one for further more complex access rights handling in my application.
are there any tutorial using REST Server/Client without RAD Server? because I have Delphi Tokyo Prof only...
I would also like to know what options there are without RAD Server, did you find any?
@@RicardoBaylissimo Datasnap!
Or mORMot for the hardcore ones: synopse.info/fossil/wiki?name=SQLite3+Framework
Can I get sample code ?
Yes
Please add the source code
source code please.
I lost interest as soon as you started saying "haytch" for the letter H.
I want to understand REST but will look elsewhere.