REST API
- D Oliveira
- AppGini Super Hero
- Posts: 354
- Joined: 2018-03-04 09:30
- Location: David
Re: REST API
1- create a custom php project
2- map query results to different functions
3- map urls to each function
4- inspect request payload and make sure everything is sanitized
5- configure rate limiting at the web server level if necessary
6- decide the authenticatio method, either via permanent api key or temporary tokens
7- test and deploy to production
you can try using a rest php api package that already exists (search github) if you wanna implement a solid framework rather than developing a custom project.
FWIW this is not easy or straight forward depending on the requirements, best of luck
2- map query results to different functions
3- map urls to each function
4- inspect request payload and make sure everything is sanitized
5- configure rate limiting at the web server level if necessary
6- decide the authenticatio method, either via permanent api key or temporary tokens
7- test and deploy to production
you can try using a rest php api package that already exists (search github) if you wanna implement a solid framework rather than developing a custom project.
FWIW this is not easy or straight forward depending on the requirements, best of luck