-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Routes
GET /api/users - returns users for charted users, tail authors, and constellation members
POST /api/users - create new user
GET /api/session - check if the logged in user has a valid, active session
POST /api/session - login user with valid credentials
DELETE /api/session - logout user if logged in
GET /api/tails - returns tails for the feed, spaces, and constellations
GET /api/tails/:id - returns specific tail
POST /api/tails - create new tail using data from Tail Creator
PATCH /api/tails/:id - edit specific tail using data from Tail Creator
DELETE /api/tails/:id - delete a specific tail
GET /api/comets - returns comets associated with a tail
POST /api/comets - create new comet for a tail
PATCH /api/comets/:id - edit specific comet
DELETE /api/comets/:id - delete a specific comet
GET /api/charts - returns tails that a user has starred
POST /api/stars - star a tail
DELETE /api/stars/:id - remove star from tail
GET /api/charts - returns charts for users that the current user has charted
POST /api/charts - chart a user
DELETE /api/charts/:id - stop charting a user
GET /api/spaces - returns spaces that a user has charted
POST /api/spaces - create new space
POST /api/spaces/:tail-id - add a tail to a space
DELETE /api/spaces/:id - delete a specific space
DELETE /api/spaces/:tail-id - remove a specific tail from a space
GET /api/constellations - returns constellations that a user has joined
POST /api/constellations - create new constellation
POST /api/spaces/:user-id - add a user to a constellation
POST /api/spaces/:tail-id - add a tail to a constellation
DELETE /api/constellations/:id - remove a specific constellation
DELETE /api/constellations/:user-id - remove a specific user from a constellation
DELETE /api/constellations/:tail-id - remove a specific tail from a constellation
GET /api/profiles/:id - returns a user's profile
PATCH /api/profiles/:id - updates a user's profile