Code Monkey home page Code Monkey logo

api's Introduction

Workout Plan API

Scrutinizer Code Quality

About

This is a generic REST API for workout plans.


How to use?

Authentication

Auth - User Authentication

POST

http://localhost:8000/api/v1/auth

BODY

email [email protected]

password **********


Users

Users - Create a new User

POST

http://localhost:8000/api/v1/users

HEADERS

Authorization Bearer + token generated in auth route

BODY

first_name examplefirstName

last_name examplelastName

email [email protected]

password **********

Users - Show User data

GET

http://localhost:8000/api/v1/users/{id_user}

HEADERS

Authorization Bearer + token generated in auth route

Users - Update a User's data

PUT

http://localhost:8000/api/v1/users/{id}

HEADERS

Authorization Bearer + token generated in auth route

Content-Type application/json

BODY

first_name examplefirstName

last_name examplelastName

email [email protected]

password **********

Users - Delete a User

DELETE

http://localhost:8000/api/v1/users/{id}

HEADERS

Authorization Bearer + token generated in auth route

Workout Types

Workout Types - Create a new Workout Type

POST

http://localhost:8000/api/v1/workout_types

HEADERS

Authorization Bearer + token generated in auth route

BODY

name exampleName

description description example

Workout Types - Show a workout type

GET

http://localhost:8000/api/v1/workout_types/{id}

HEADERS

Authorization Bearer + token generated in auth route

Workout Types - Update a workout type

PUT

http://localhost:8000/api/v1/workout_types/{id_workout_type}

HEADERS

Authorization Bearer + token generated in auth route

BODY

name exampleName

description description example

Workout Types - Delete a workout type

DELETE

http://localhost:8000/api/v1/workout_types/{id}

HEADERS

Authorization Bearer + token generated in auth route

Workout Plans

Workout Plans - Create a new Workout Plan

POST

http://localhost:8000/api/v1/workout_plans

HEADERS

Authorization Bearer + token generated in auth route

BODY

fk_workout_type workout type

fk_user User

date Date

Workout Plans - Show a Workout Plan

GET

http://localhost:8000/api/v1/workout_plans/{id}

HEADERS

Authorization Bearer + token generated in auth route

Workout Plans - Update a Workout Plan

PUT

http://localhost:8000/api/v1/workout_plans/{id}

HEADERS

Authorization Bearer + token generated in auth route

Content-Type application/json

BODY

name exampleName

email [email protected]

password **********

Workout Plans - Update a Workout Plan

PUT

http://localhost:8000/api/v1/workout_types/{id}

HEADERS

Authorization Bearer + token generated in auth route

BODY

fk_workout_type workout type

fk_user User

date Date

Workout Plans - Delete a Workout Plan

DELETE

http://localhost:8000/api/v1/workout_plans/{id}

HEADERS

Authorization Bearer + token generated in auth route

api's People

Watchers

 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.