Skip to content

joaogabrielzo/products-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run

Go to the project folder and execute

sbt clean run

Endpoints

GET /products

  • Retrieves every product in the database

GET /products?vendor=abc

  • Retrieves a list of products grouped by vendor

GET /products?priceGT=3

  • Retrieves a list of products with price greater than 3

POST /products/xyz

Body

{
  "name": String,
  "vendor": String,
  "price": Double,
  "expirationDate": "yyyy-MM-dd" [Optional]
}

  • Saves a new product with ID xyz

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages