All Projects → stormpath → stormpath-spring-boot-jpa-example

stormpath / stormpath-spring-boot-jpa-example

Licence: other
No description, website, or topics provided.

Programming Languages

java
68154 projects - #9 most used programming language

#Stormpath is Joining Okta We are incredibly excited to announce that Stormpath is joining forces with Okta. Please visit the Migration FAQs for a detailed look at what this means for Stormpath users.

We're available to answer all questions at [email protected].

CRUD App with Spring Boot

This is the code developed in the tutorial (https://stormpath.com/blog/tutorial-crud-spring-boot-20-minutes) on creating a flexible CRUD app with Spring Boot.

It features full REST compliance and an embedded database.

Requirements

  • Maven
  • JDK 7

Running

To build and start the server simply type

$ mvn spring-boot:run

from the root directory.

Using

You can see what urls are available using curl:

$ curl localhost:8080

You can view existing people objects using a similar request:

$ curl localhost:8080/persons

and can create new ones using a POST:

$ curl -X POST -H "Content-Type:application/json" -d '{ "firstName" : "Karl", "lastName" : "Penzhorn" }' localhost:8080/persons

Todo

  • Switching out database
  • Paging results
  • Writing tests

License


MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].