playframework « restful « Java Enterprise Q&A





1. Pagination in a REST web app    stackoverflow.com

Usually, a user makes a search, get a hitlist, and can then browse it. The hitlist is an intermediate result that remains consistent throughout the browsing and is typically stored in ...

2. Returning RESTful response codes in Play    stackoverflow.com

I'm just getting started with REST and I've been reading this post and the mentioned book about REST response codes. When I look at Play's ...

3. Play framework and REST    stackoverflow.com

Well, I love Play so far and I was hoping to prod the community for success and failure stories of trying to develop a great REST app. I have extensive experience ...

4. How to consume the restful CRUD module protected by CAS with java client    stackoverflow.com

I'm trying to consume the play! CRUD module with a java httpclient. My CRUD module is protected by a CAS server. I'm able to login and validate the ticket produced by the ...

5. Play sample rest application Issue    stackoverflow.com

I am created a test application and created hello rest easy class. Then I tried to run using play run test and got this exception:

21:46:18,246 INFO  ~ RESTEasy plugin: Found ...

6. Update a model data using PUT    stackoverflow.com

I have a user model, I am providing a RESTful API so the client can call to update the necessary data for a given user. The following is the code and ...

7. Error Message in XML/Json in Play Framework    stackoverflow.com

I'm trying to develop a REST API for Play. I have two questions :

  • Why does badRequest doesn't make it possible to add a message ?
  • Though I set render.format = "json", the ...

8. Override HTTP method with Play framework    stackoverflow.com

Some web frameworks offer the possibility to "override" the HTTP method with a hidden form field:

<form method="POST">
  <input type="hidden" type="_method" value="PUT">
  ...
</form>
Is it possible to override the HTTP method ...

9. Return HTTP Status "created" in Play! Framework    stackoverflow.com

I have a create action in a Play! framework controller that should return the HTTP status code Created and redirect the client to the location of the created object.

public class SomeController ...





10. restful POST in Play    stackoverflow.com

I have been following some play! framework tutorials, but simply cannot get the simplest of examples to work.

String xml = "<thing><foo>first</foo><bar>second</bar></thing>";
Response response = POST("/thing", "application/xml", xml);
in my thing method in ...

11. How to bind request body to action method parameter?    stackoverflow.com

I understand how Play binds URI segments or parameters to action method parameters. I also saw how an uploaded file can be accessed. But I am still looking for the way to ...

12. Supporting anonymous and registered users    stackoverflow.com

I'm trying to create a RESTful API for a game. The game will support both anonymous users (users that just want to play now) and users that are willing to register. What I'm ...