ABOUT

An API built on rails. Users can keep a log of drinks and their category.

Create an account

https://drink-log-backend.herokuapp.com/api/v1/sign_up

POST

        
          BODY: {
          "user": {
          "email":"abc@example.com",
          "password":"password",
          "password_confirmation":"password"
            }
          }
        
        

Log In

https://drink-log-backend.herokuapp.com/api/v1/sign_in

POST

        
          BODY: {
          "user": {
          "email":"abc@example.com",
          "password":"password",
            }
          }
        
        

All drinks

https://drink-log-backend.herokuapp.com/api/v1/drinks

GET

        
        HEADERS: {
            'Content-Type': 'application/json',
            'X-User-Email': < user email >,
            'X-User-Token': < user authentification token >
        }
        
        

Add a drink

https://drink-log-backend.herokuapp.com/api/v1/drinks

POST

        
        HEADERS: {
            'Content-Type': 'application/json',
            'X-User-Email': < user email >,
            'X-User-Token': < user authentification token >
        }
        BODY: {
            "name": "< drink name >",
            "category": "< drink category >"
        }
        
        

Delete a drink

https://drink-log-backend.herokuapp.com/api/v1/drinks

DELETE

        
        HEADERS: {
            'Content-Type': 'application/json',
            'X-User-Email': < user email >,
            'X-User-Token': < user authentification token >
        }
        BODY: {
            "name": "< drink name >",
            "category": "< drink category >"
        }
        
        

Click the Button to show a get call.