Skip to content

riuvshin/springMVCWithRest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springMVCWithRest

Project for learn spring

Simple spring application for managing Contacts

  • restful
  • mvc
  • hibernate
  • security

RESPONSE_TYPE:

  • xml
  • json

available REST_METHOS:

 - <b>all-contacts</b> - return all contacts
 - <b>get-contact-by-id/{id}</b> - return contact by id
 
 example:  curl -v -H "Accept: application/\<RESPONSE_TYPE\>" http://localhost/restful/contact/\<REST_METHOD\> 
 
 
~~~ POST ~~~
- <b>create</b> - add new user, require formparams:

firstName=CONTACT_NAME

lastName=CONTACT__LAST_NAME

role=CONTACT_ROLE

birthDate=D_O_B

example: curl -v -X POST -d "firstName=TESTUSER&lastName=BLABLA&role=ADMIN&birthDate=1998-09-08" http://localhost:8080/restful/contact/create

- <b>delete-contact</b> - delete contact by id, require form param:
id={id}

example: curl -v -X POST -d "id=1" http://localhost:8080/restful/contact/delete-contact
########
###dawdwa

About

Project for learn spring mvc and rest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published