Coder Social home page Coder Social logo

gym-up-server's Introduction

GymUp API

Workouts logged. Trends charted. Smart workout improvement engine.

Routes

Routes use a versioning convension starting locally at: http://localhost:8080/

Auth Routes

Root URL: /
PATH METHOD PURPOSE PARAMS
/ GET
/logout GET Logout of application
/login POST Authenticate user login
/signup POST Create new account for user

User Profile Routes

Root URL: /api/v1/profile
PATH METHOD PURPOSE PARAMS
/ GET Get user profile userId
/ POST Create user userId
/:userid PUT Update user profile userId
/:userid DELETE Destroy user profile userId

Session Routes

Root URL: /api/v1/sessions
PATH METHOD PURPOSE PARAMS
/ GET Get all user sessions userId
/:sessionId GET Get specific user session userId, sessionId
/ POST Create a session for a user userId, sessionId
/:sessionId POST Create a workout for a session userId, sessionId
/:sessionId PUT Update a session userId, sessionId
/:sessionId/:sessionDetailId PUT Update a workout for a session userId, sessiondetailId
/:sessionId DELETE Delete a complete session userId, sessionId
/:sessionId/:sessionDetailId DELETE Delete a workout from a session userId, sessionDetailId

Workout Routes

Root URL: /api/v1/workouts
PATH METHOD PURPOSE PARAMS
/ GET Get a list of all workouts
/ POST Create a new workout
/:workoutId PUT Update a workout
/:workoutId DELETE Delete a workout

Other Useful Code

To kill a task:

                       PORT
  1. netstat -ano | findstr :5000

       PID
    
  2. tskill 29056

gym-up-server's People

Contributors

justintlai avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.