Route | Method | Header(s) | Params | Body | Description | Response |
---|---|---|---|---|---|---|
/users/register |
POST | - | - | username:String (required), password:String (required) |
Register a user | Success Code: 201 body: {token:String} Error (invalid password format): (400) body: {object error} Error: (500) body: {object error} |
/users/login |
POST | - | - | username:String (required),password:String (required) |
Log in and obtain JSON Web Token |
Success Code: 200 body: {object user} Error (wrong username/password): (401) body: {object error} Error: (500) body: {object error} |
/users/profile/:username |
GET | - | username |
- | Get a user | Success Code: 200 body: {object user} Error (username not found): (404) body: {object error} Error: (500) body: {object error} |
-
Notifications
You must be signed in to change notification settings - Fork 0
vyonizr/apod-app
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
NASA APOD REST API, but extended with social feature
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published