Backend Routes - RoosterUnchained/winterest GitHub Wiki

HTML
    • GET / StaticPagesController#root
API Endpoints

users
    • GET /api/users - returns the user information of displayed  and for the User Search feature
    • POST /api/users - sign up
session
    • POST /api/session - log in
    • DELETE /api/session - log out
moves
    • GET /api/moves - returns relevant studies (filtered by data/params)
    • GET /api/moves/:id - returns study
    • POST /api/moves - creates a study
    • PATCH /api/moves/:id - edit a study
    • DELETE /api/moves/:id - remove a study
books
    • POST /api/books - create a book to study and add moves to
    • DELETE /api/books - destroy a book
notes
    • POST /api/books/:book_id/:move_id/notes - like a study
    • DELETE /api/books/:book_id/:move_id/notes/:id - unlike a study
studies
    • POST /api/books/:book_id/:move_id/studies - study a move and add to book
    • DELETE /api/books/:book_id/:move_id/studies - remove a studied move from book