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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -