Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Snippets for Request, Response and parameters.
- Loading branch information
1 parent
48e23f9
commit d8aca9f
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
snippet api "FORMAT: 1A ... # Title" | ||
FORMAT: 1A | ||
|
||
# ${1:Title} | ||
|
||
${2:Description for $1} | ||
snippet param "+ name:`example` (string, required) - description .. + Default: `value`" | ||
+ ${1:name}: \`${2:example}\` (${3:type}, ${4:required}) - ${5:$1 description} | ||
+ Default: \`${6:value}\` | ||
snippet req "+ Request <identifier> (application/json)" | ||
+ Request ${1} (${2:application/json}) | ||
|
||
${3:{}} | ||
snippet res "+ Response 200 (..)" | ||
+ Response ${1:200} (${2:application/json}) | ||
|
||
${0:{}} | ||
snippet rres "+ Request <identifier> (application/json) ... + Response 200 (application/json)" | ||
+ Request ${1} (${2:application/json}) | ||
|
||
${3:{}} | ||
|
||
+ Response ${4:200} (${4:$2}) | ||
|
||
${0:{}} |