Skip to content

SuddenlyPineapple/drugstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drugstore

How to run

Type in console make run, but before this rememeber to update PATH in rel/sys.config file

Endpoints

Offers endpoints:

  • GET /offers/
  • POST /offers
  • PUT /offers/
  • DELETE /offers

Orders endpoints:

  • POST /orders
  • GET /orders
  • GET /orders/

Offer

{
    "id": "text",
    "name": "text",
    "price": "float",
    "description": "text"
}

Order

{
    "id": "text",
    "offerId": "text",
    "quantity": "int",
    "amount": "float",
    "buyer": "text"
}

About

Erlang Cowboy example CRUD application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published