Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.
/ play-user-sample Public archive

Simple Play! project showing content negotiation with HTML/XML & JSON

Notifications You must be signed in to change notification settings

sebhoss/play-user-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play! User Example

This sample projects shows how to do simple RESTful content negotiation with the Play! framework.

The User-Sample application can be used to create, read, update and delete users. It offers HTML, JSON and XML output and can be used to both upload and download arbitrary files such as images.

API

The API can be accessed as follows (see routes file ):

  • Read all users: GET /
  • Read single user: GET /user/id/
  • Create new user: POST /user/ with data as payload
  • Update single user: PUT /user/id/ with new data as payload
  • Delete single user: DELETE /user/id/

Depending on the clients Accept header either a HTML, XML or JSON representation will be send back.

About

Simple Play! project showing content negotiation with HTML/XML & JSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages