From a7fa927017fb214e2f7fe47cd2379fa43ccaf971 Mon Sep 17 00:00:00 2001 From: Todd Fredrich Date: Thu, 3 Oct 2024 16:07:50 -0600 Subject: [PATCH] Added 'Read/Retrieve` to Overview table for GET. --- content/introduction/httpmethods.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/introduction/httpmethods.md b/content/introduction/httpmethods.md index 537c265..a47cc0d 100644 --- a/content/introduction/httpmethods.md +++ b/content/introduction/httpmethods.md @@ -11,7 +11,7 @@ Below is a table summarizing recommended return values of the primary HTTP metho | Method | CRUD | Entire Collection (e.g. /customers) | Specific Item (e.g. /customers/{id}) | | --------- | ---- | ----------------------------------- | ------------------------------------ | | POST | Create | 201 (Created), 'Location' header with link to /customers/{id} containing new ID. | 404 (Not Found), 409 (Conflict) if resource already exists. | -| GET | Read | 200 (OK), list of customers. Use pagination, sorting and filtering to navigate big lists. | 200 (OK), single customer. 404 (Not Found), if ID not found or invalid. | +| GET | Read/Retrieve | 200 (OK), list of customers. Use pagination, sorting and filtering to navigate big lists. | 200 (OK), single customer. 404 (Not Found), if ID not found or invalid. | | PUT | Update/Replace | 405 (Method Not Allowed), unless you want to update/replace every resource in the entire collection. | 200 (OK) or 204 (No Content). 404 (Not Found), if ID not found or invalid. | | PATCH | Update/Modify | 405 (Method Not Allowed), unless you want to modify the collection itself. Which is possible if operating on the collection as a whole. | 200 (OK) or 204 (No Content). 404 (Not Found), if ID not found or invalid. | | DELETE | Delete | 405 (Method Not Allowed), unless you want to delete the whole collection—not often desirable. | 200 (OK) or 204 (No Content). 404 (Not Found), if ID not found or invalid. |