-
Notifications
You must be signed in to change notification settings - Fork 1
RESTful Terminology
Sharina Stubbs edited this page Jan 2, 2020
·
7 revisions
Function Name
- getBlogPost()
- addBlogPost()
- updateBlogPost()
- deleteBlogPost()
English
- get one blog post
- add blog post
- update blog post
- delete blog post
HTTP
- GET
- POST
- PUT
- DELETE
PATH
- /get-one
- /blog-post
- /blog-post
- /blog-post
CRUD
- read
- create
- update
- delete
Create, Read, Update, Delete
- Query parameter
- request body - form will put data into the request body, or you can use jquery, or superagent on the frontend
- add it to the path - path variable
Lives in the URL:
- path variable
- Query parameter
- Songr
- Codefellowship
- Spring apps
"REST is a cool vocab word that different people use to mean different things. Officially, it means a bunch of buzzwords about not saving state between requests. Realistically? REST means your URLs are structured like /restaurants/{id}/reviews , and you're using GET/POST/PUT/DELETE methods appropriately.
During Android, we mostly used GraphQL, which is decidedly NOT REST.
Your website can be RESTful, or your API can be RESTful, if it has URLs with that basic sort of structure. We never explicitly covered how to create a JSON API, but we saw an example with the provided TaskMaster backend Spring app; it's honestly really boring compared to Thymeleaf."