Creates a new exercise requires an admin user to be logged in
Name | Description |
---|---|
name | Exercise name |
user_id | Admin User id |
Content-Type: application/json Host: example.org
POST /v1/exercises
curl "http://extracker-api.herokuapp.com/v1/exercises" -d '' -X POST \ -H "Content-Type: application/json" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json; charset=utf-8
422
Content-Type: application/json Host: example.org
POST /v1/exercises
curl "http://extracker-api.herokuapp.com/v1/exercises" -d '{"name":"Squats","user_id":"1"}' -X POST \ -H "Content-Type: application/json" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json; charset=utf-8
201