Database Schema and Backend Routes - e-hashimoto/natseal GitHub Wiki
Database Schema

Backend Routes
Users
GET /api/users/
- Returns the information for all users
GET /api/users/:id/
- Returns all information for one user
Sessions
GET /api/auth/
- Returns the info for the logged in user
POST /api/auth/signup/
- Signs up a new user
POST /api/auth/login/
- Logs in a user
DELETE /api/auth/
- Logs out a user
Locations
GET /api/locations/
- Returns info for all locations
GET /api/locations/:id/
- Returns all info for one location
POST /api/locations/
- Creates a new location
PUT /api/locations/:id/
- Updates information for one location
DELETE /api/locations/:id/
- Deletes all information for one location
Travel Opportunities (Travel)
GET /api/travel/
- Returns info for all travel opportunities
GET /api/travel/:id/
- Returns all info for one travel opportunity
POST /api/travel/
- Creates a traveling opportunity
PUT /api/travel/:id/
- Updates information for one traveling opportunity
DELETE /api/travel/:id/
- Deletes information for one traveling opportunity
Seals
GET /api/seals/
- Returns info for all seals
GET /api/seals/:id/
- Returns all info for one seal
POST /api/seals/
- Creates a seal
PUT /api/seals/:id/
- Updates information for one seal
DELETE /api/seals/:id/
- Deletes all information for one seal
Articles
GET /api/articles/
- Returns info for all articles
GET /api/articles/:id/
- Returns all info for one article
POST /api/articles/
- Creates a new article
PUT /api/articles/:id/
- Updates information for an article
DELETE /api/articles/:id/
- Deletes information for an article