api_routes - Arthgallow/kumite GitHub Wiki

API Routes

This app uses the following API routes to dynamically update the page to create a uninterrupted page flow feel with interactive user interface for specific features.

Home

  • A logged in user can view information about fights that are coming up links to fighters they follow.
    • Routes:
      • GET /api/

Users

  • A logged in user can see all users registered on the app.
    • Routes:
      • GET /api/users
      • POST /api/users
      • PUT /api/users
      • DELETE /api/users

Individual Users

  • A logged in user can see single users registered on the app.
    • Routes:
      • GET /api/users/:id
      • POST /api/users/:id
      • PUT /api/users/:id
      • DELETE /api/users/:id

Locations

  • A logged in user can create, edit, and delete locations.
    • Routes
      • GET /api/locations
      • POST /api/locations
      • PUT /api/locations
      • DELETE /api/locations

Individual Locations

  • A logged in user can create, edit, and delete locations.
    • Routes
      • GET /api/locations
      • POST /api/locations
      • PUT /api/locations
      • DELETE /api/locations

Comments

  • A logged in user can create, edit, and delete comments.
    • Routes
      • GET /api/comments
      • POST /api/comments
      • PUT /api/comments
      • DELETE /api/comments

Matches

  • A logged in user can create, edit, and delete Matches.
    • Routes
      • GET /api/matches
      • POST /api/matches
      • PUT /api/matches
      • DELETE /api/matches

Individual Matches

  • A logged in user can create, edit, and delete Matches.
    • Routes
      • GET /api/matches/:id
      • POST /api/matches/:id
      • PUT /api/matches/:id
      • DELETE /api/matches/:id

Follows

  • A logged in user can follow or unfollow someone.
    • Routes
      • GET /api/follows
      • POST /api/follows
      • DELETE /api/follows