From 955a300032e62a8a45aec146741c801badf0956f Mon Sep 17 00:00:00 2001 From: HarshitaShroff Date: Thu, 16 May 2024 14:11:43 +1000 Subject: [PATCH] updated and addressed peer review comments on tutorials API --- src/content/docs/backend/API/tutorials.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/docs/backend/API/tutorials.md b/src/content/docs/backend/API/tutorials.md index e1862c3..6229186 100644 --- a/src/content/docs/backend/API/tutorials.md +++ b/src/content/docs/backend/API/tutorials.md @@ -42,7 +42,7 @@ DELETE /api/tutorials/{id} true ``` ----------------------------------------------------------------------------- -### PUT: Create a tutorial +### PUT: Update a tutorial PUT /api/tutorials/{id} - URL: `/api/tutorials/{id}` @@ -110,7 +110,7 @@ POST /api/tutorials - Response: - `201 Created` + `201 Created`: Tutorial added successfully. - Example Request: ```bash @@ -118,5 +118,5 @@ POST /api/tutorials ``` - Response body: ``` - null + Tutorial added successfully. ``` \ No newline at end of file