-
Notifications
You must be signed in to change notification settings - Fork 36
francois-aubertin/scala-play-rest-example
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
RESTful API written in Scala, using the Play Framework. To start the application: ./activator run And then http://localhost:9000 To use the REST API: curl -X POST http://localhost:9000/users -H "Content-Type: application/json" -d "{\"email\": \"test@test.com\"}" curl -X GET http://localhost:9000/users/1 To test validation rules: A malformed email curl -X POST http://localhost:9000/users -H "Content-Type: application/json" -d "{\"email\": \"test\"}" An email that already exists for a user curl -X POST http://localhost:9000/users -H "Content-Type: application/json" -d "{\"email\": \"test@test.com\"}" curl -X POST http://localhost:9000/users -H "Content-Type: application/json" -d "{\"email\": \"test@test.com\"}"
About
RESTful API for a fictive user management microservice.
Resources
Stars
Watchers
Forks
Releases
No releases published