Add a new resource to the API definition, you can then concatenate more methods to the same resource: methods(),description(),header(),parameter(),placeholder(),schema(),sample()
Argument
Type
Required
Default
Description
pattern
any
Yes
---
The SES pattern to register for the resource
handler
No
The description of the parameter
action
Is the parameter required or not
Define a default return format for a resource
format
The format that will be the default
Add a description to a resource
description
The description
Add methods to a resource
methods
The methods list to allow
Define a default HTTP method for a resource
method
The HTTP method that will be the default
Last updated 7 years ago