| URL path | HTTP Method | Response | Action |
|---|---|---|---|
| /api/catfacts | GET | [catfacts] | Get all cat facts from the DB |
| /api/catfacts/random | GET | {fact} | Get random cat fact from the DB |
| /api/dogfacts | GET | [dogfacts] | Get all dog facts from the DB |
| /api/dogfacts/random | GET | {fact} | Get random dog fact from the DB |
| /api/users/list | GET | [users] | Get all users from the DB |
| /api/users/getOneUser/:user_id | GET | {user} | Get single user from DB |
| /api/users/editUser/:user_id | PUT | {user} | Edit one user from DB |
| /api/users/deleteUser/:user_id | DELETE | {message: 'User deleted'} | Delete a user |
| /api/auth/create | POST | {message: 'New User created!'} | Create a new user |
| /api/auth/login | POST | Token |
Log user in |
-
Notifications
You must be signed in to change notification settings - Fork 0
0xThales/catsvsdogs_server
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published