Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,19 @@ Your Task is to write a `RESTful` routing chart for the library system's API. Yo

You can use this markdown chart:

| HTTP METHOD (_Verb_) | URL (_Nouns_) | CRUD | Response | Notes |
| -------------------- | ------------- | ---- | -------- | ----- |
| | | | | |
| | | | | |
| HTTP METHOD (_Verb_) | URL (_Nouns_) | CRUD | Response | Notes |
| -------------------- | ------------- | ---- | -------- | ----- |
| GET | /members | Read | [array of members] | get a list of members |
| GET | /books | Read | [array of books] | get a list of the books |
| PUT/PATCH/POST | /members/:memberId/books/:bookId |Update| associate the memberId w/ the bookId | checkout a book. (You could also reverse the URL) |
| | | | | return a book |
| POST | /members |Create| new memberId in library | signing up for library card |
| POST | /books |Create| new bookId in library | library getting a new book |
| PUT | /members/:memberId |Update| update the member with that Id | |
| DELETE | /members/:memberId |Delete| delete member from library | |
| PUT | /books/:bookId/genres/:genreId |Update| associate book with genre | adding a book to a genre |



#### Things to keep in mind

Expand Down