I have a URL something like this
I'm using play framework
HTTP Routes:
GET /students controllers.Application.Get()
POST /students controllers.Application.Post()
PUT /students/{studentNo} controllers.Application.Put()
How will I get the {studentNo} value? For example I'm using a postman(rest client) and I typed something in the url http://localhost:9000/students/2012111222 , how will I get the "2012111222". Do I need to split the URL's value just to get that parameter or is there something else. Thank you.!
As you can see in Play's routing documentation you can use the colon syntax to define that some part of your route URL is a variable and pass that variable to the controller method, ie: