Skip to content
master
Switch branches/tags
Go to file
Code
This branch is 17 commits ahead of robert-bor:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

README.md

beanmapper-petshop

Sample Spring project for the BeanMapper libraries

API

  • Get all pets (show only name and type) -> curl -X GET localhost:8080/api/pets
  • Get pet with id 1 -> curl -X GET localhost:8080/api/pets/1
  • Create a pet -> curl -X POST localhost:8080/api/pets
  • Update pet with id 1 -> curl -X PUT localhost:8080/api/pets/1
  • Partial update pet with id 1 -> curl -X PATCH localhost:8080/api/pets/1
  • Delete pet with id 1 -> curl -X DELETE localhost:8080/api/pets/1

Provide data for POST, PUT, PATCH request:

-H 'Content-Type: application/json' 
--data '{"nickname": "Graver", "birthDate": "2015-01-01", "sex": "MALE", "petTypeId": 2}'

About

Sample Spring project for the BeanMapper libraries

Resources

Releases

No releases published

Packages

No packages published

Languages