http - Is it possible to use nested resource in case of POST? -
i use play framework 2.2.x.
is possible map route?:
post /api/constructors/:constructorid/cars carcrudcontroller.create(constructorid)
i badrequest
(code 400) when hitting route.
imo, seems play allows nested resources reads: get instead of post.
is possible?
nested routes supported in http method. can checkout samples github examples. computer-database example, has following routes.conf:
# delete computer post /computers/:id/delete controllers.application.delete(id:long)
the bad request response related content-type of request or post content itself, , nothing nested routes.
Comments
Post a Comment