Skip to content

Instantly share code, notes, and snippets.

@mansha99
Last active July 7, 2023 07:40
Show Gist options
  • Save mansha99/743c8d78b44c844028727457bc1bf281 to your computer and use it in GitHub Desktop.
Save mansha99/743c8d78b44c844028727457bc1bf281 to your computer and use it in GitHub Desktop.
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 3 columns, instead of 2. in line 4.
VERB,URL, DESCRIPTION
GET,http://127.0.0.1:8000//api/v1/notices/,List all Notices
GET,http://127.0.0.1:8000/api/v1/notices/?kw=Hello,List all Notices containing Hello as Title
GET,http://127.0.0.1:8000/api/v1/notices/?p=2&order=-id,List second page order by id descending
GET,http://127.0.0.1:8000/api/v1/notices/
?p=2&kw=Hello&order=-id,List second page containing title Hello order by id descending
GET,http://127.0.0.1:8000//api/v1/notices/1, Get Single notice whose id is 1
POST,http://127.0.0.1:8000//api/v1/notices/, Create new notice using title and description as params
PUT,http://127.0.0.1:8000//api/v1/notices/5/, Update ALL PARAMS existig notice with id =5
PATCH,http://127.0.0.1:8000//api/v1/notices/5/, Partial update (Selected fields) existig notice with id =5
DELETE,http://127.0.0.1:8000//api/v1/notices/5/, Delete notice whose id is 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment