Skip to content

Commit 957f89d

Browse files
Docs: Adjust Routes
1 parent c787fb2 commit 957f89d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@ Application in Node, Express, MongoDB and PM2 to give support to Front End devel
1515

1616
## Routes
1717

18+
#### Projects
1819
| URL | Collection | Method | Parameters | Response | Action |
1920
| ------ | ------ | ------ | ------ | ------ | ------ |
2021
| https://rest-api-node.herokuapp.com/projects | projects | get | Nothing | JSON with Array | Get a list of projects in the database |
2122
| https://rest-api-node.herokuapp.com/projects/create | projects | post | JSON | JSON | Add JSON into the database |
2223
| https://rest-api-node.herokuapp.com/projects/update/:id | projects | put | id, JSON | Update the document with sent JSON data |
2324
| https://rest-api-node.herokuapp.com/projects/select/:id | projects | get | id | JSON | Return the document, related to the sent id |
2425
| https://rest-api-node.herokuapp.com/projects/delete/:id | projects | delete | id | status 200 | Delete the document, related to the sent id |
26+
27+
#### Users
28+
| URL | Collection | Method | Parameters | Response | Action |
29+
| ------ | ------ | ------ | ------ | ------ | ------ |
2530
| https://rest-api-node.herokuapp.com/users | users | get | Nothing | JSON with Array | Get a list of users in the database |
2631
| https://rest-api-node.herokuapp.com/users/create | users | post | JSON | JSON | Add JSON into the database |
2732
| https://rest-api-node.herokuapp.com/users/update/:id | users | put | id, JSON | Update the document with sent JSON data |

0 commit comments

Comments
 (0)