You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is only one form of resources (RESTful).
This is a small proposal to extend resource to multiple type.
RESTful
router.Resource("/users", myResource)
HTTP method
Path
Struct's method name
GET
/users
Get
Head
/users
Head
POST
/users
Post
PUT
/users
Put
PATCH
/users
Patch
DELETE
/users
Delete
CONNECT
/users
Connect
Resourceful
router.Resource("/users", myResource)
HTTP method
Path
Struct's method name
GET
/users
Index
POST
/users
Create
GET
/users/:id
Show
PUT or PATCH
/users/:id
Update
DELETE
/users/:id
Destroy
Hopefully this could be customized.
I currently have not decided the best way to specify differents types.
The resource could implement an interface or by embedding a type.
Feedback are welcome
The text was updated successfully, but these errors were encountered:
Currently there is only one form of resources (RESTful).
This is a small proposal to extend resource to multiple type.
RESTful
Resourceful
Hopefully this could be customized.
I currently have not decided the best way to specify differents types.
The resource could implement an interface or by embedding a type.
Feedback are welcome
The text was updated successfully, but these errors were encountered: