Skip to content

42BV/beanmapper-petshop

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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
 
 
 
 
 
 
 
 

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%