Skip to content

HarunGlec/SinatraAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra Basic API Implementation


  • Username : admin
  • Password : test

Auth

  • POST /auth/login
    • Username : string
    • Password : string
  • GET /auth/logout

User

  • GET /users
  • POST /users
    • username: string
    • email: string
    • password: string
  • GET /users/{user_id}
  • GET /users/{user_id}/carts
  • POST /users/{user_id}/carts "Create a new card"

Products

  • GET /products
  • POST /products
    • name: string
    • price: int
  • GET /product/{product_id}

Cart

  • GET /carts/{cart_id}
  • POST /carts/{cart_id}/products
    • product_id: int
    • quantity: int (optional)
  • DELETE /carts/{cart_id}/products/{product_id}
  • PUT /carts/{cart_id}/products/{product_id}
    • quantity: int
  • PUT /carts/{cart_id}/clean "Clean the card"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages