Skip to content

lambda-tt48-watermyplants/server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Water My Plants API

Endpoints

BASE URL: https://water-my-plants-tt-webft-48.herokuapp.com

Method Endpoint Description
GET /api/plants Returns array of saved plants
GET /api/plants/:id Returns plants object by id
POST /api/plants Creates plant; returns new plant object
PUT /api/plants/:id Updates plant; returns updated plant object
DELETE /api/plants/:id Deletes plant; returns number of deleted users

| GET | /api/users | Returns array of saved users | | GET | /api/users/:id | Returns user object by id | | PUT | /api/users/:id | Updates user; returns new user object | | DELETE | /api/users/:id | Deletes user; returns number of deleted users |

| POST | /api/auth/register | Creates user; returns new user object and token | | POST | /api/auth/login | Authenticates user; returns user object and token | | GET | /api/auth/logout | Destroys session logging out the user |

About

Server for Water My Plants

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors