注释类型 | 说明 |
---|---|
BodyParam |
Request Query ParmeterAnnotation
|
CookieParam |
Request Cookie ParmeterAnnotation
|
DeleteRoute | |
GetRoute | |
HeaderParam |
Request Header ParmeterAnnotation
|
JSON |
Return JSON Params
|
MultipartParam |
Form Multipart ParmeterAnnotation
|
Param |
Request Query ParmeterAnnotation
|
Path |
Route class notes, identifying whether a class is routed
|
PathParam |
Request Path Parameter Annotation
|
PostRoute | |
PutRoute | |
Route |
Methods defined on the route notes
Restful routes:
==========================================================================================
verb path action used for
==========================================================================================
GET /users index display a list of all books
GET /users/new_form new_form return an HTML form for creating a new book
POST /users create create a new book
GET /users/id show display a specific book
GET /users/id/edit_form edit_form return an HTML form for editing a books
PUT /users/id update update a specific book
DELETE /users/id destroy delete a specific book
|
Copyright © 2017. All rights reserved.