Skip to content

REST API built in Spring-Boot with hypermedia-driven support for CRUD calls that generates data for creating randomly-sized squares and circles

License

Notifications You must be signed in to change notification settings

adrianlee0118/RAZR-BE-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Simple REST API built in Spring-Boot with hypermedia-driven support for CRUD calls that generates data for creating randomly-sized squares and circles

Demo

Install

  • Clone repo
  • Run mvnw spring-boot:run in root directory
  • Head to localhost:8080 and use the input field to query endpoints or change headers

Endpoints

  • "/shapes/new" to generate and get a new set of 50 randomly sized circles and 50 randomly sized squares
  • "/shapes/all" to get the most recently generated set of shapes in increasing order of ID
  • "/shapes/sorted" to get the most recently generated set of shapes by decreasing order of area
  • "/shapes/{id}" to get a single shape by its ID
  • "/shapes/meanArea" to get the shape(s) with area closest to the mean of the most recently generated set of 100 shapes

About

REST API built in Spring-Boot with hypermedia-driven support for CRUD calls that generates data for creating randomly-sized squares and circles

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages