If you have see the devnotes, this is a similar project but now this project was maden with the PHP framework laravel.
- List the notes
- Get informations of a only note
- Insert a new note
- Update a note
- Delete a note
The frontend of the app was not maden yet, so can not be accessed.
Here is the endpoints of the app and his uses.
base_url/api/ping
(GET): This endpoint is a test endpoint to verify if API works, if return ping equals true, API is working.base_url/api/notes
(GET): This route get the title and the id of all notes that exists in database and return to client.base_url/api/notes/{id}
(GET): This route get a only note that exists in database and return to client if note exists, else is returned a error message.base_url/api/notes
(POST): This route reviece a title and a body by the body of the request and if params wasn't send, the return is error, and if was send is the note that was send.base_url/api/notes/{id}
(PUT): This route revice a title and a body the body of the request and a id by the router params and if was send the title and the body of the note and the id exists in database, the note is updated in database, else the return is a error.base_url/api/notes/{id}
(DELETE): This route revice a id by the router params and the note with the id that was send, are deleted if exists.