Skip to content

evenbecker/basic-sales-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic sales API

Tech stack

  • Maven
  • Spring Boot 4
  • HyperSQL
  • Spring Data JPA
  • JUnit to test

Endpoints

Requests and responses will all be in JSON. The application will run at http://localhost:8080 which the endpoints are:

Route Method Role Body/Params
/sales GET Get all sales -
/sales POST Creates a sale. Requires Body* value: number,

sellerId: number
/sellers GET Get all sellers. -
/sellers POST Creates a seller. Requires Body* name: string
/sellers/avg GET Retrieves a list containing seller Name, Sales Total and Average sales per day. Requires Params* begin: long(date),

end: long(date)

About

REST API design to manage sales.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages