Lot of small changes
This commit is contained in:
@ -62,3 +62,38 @@ priority -1
|
||||
snippet "(\w+)" "latex default" r
|
||||
\\`!p snip.rv = match.group(1)` $1
|
||||
endsnippet
|
||||
|
||||
snippet task "Create a task list item"
|
||||
- [ ] ${1:${VISUAL:item}}
|
||||
endsnippet
|
||||
|
||||
snippet rest "add a restAPI endpoint" b
|
||||
#### ${1:${VISUAL:Title}}
|
||||
|
||||
<details>
|
||||
<summary><code>${2:${VISUAL:GET}}</code> <code><b>/${3:${VISUAL:Endpoint}}</b></code> <code>${4:${VISUAL:Description}}</code></summary>
|
||||
|
||||
##### Parameters
|
||||
|
||||
> | name | type | data type | description |
|
||||
> |-----------|-----------|-------------------------|-----------------------------------------------------------------------|
|
||||
> | None | required | object (JSON or YAML) | N/A |
|
||||
|
||||
|
||||
##### Responses
|
||||
|
||||
> | http code | content-type | response |
|
||||
> |---------------|-----------------------------------|---------------------------------------------------------------------|
|
||||
> | \`200\` | \`text/plain;charset=UTF-8\` | \`Configuration created successfully\` |
|
||||
> | \`400\` | \`application/json\` | \`{"code":"400","message":"Bad Request"}\` |
|
||||
|
||||
##### Example cURL
|
||||
|
||||
> \`\`\`javascript
|
||||
> curl -X $2 -H "Content-Type: application/json" http://localhost:8889/$3
|
||||
> \`\`\`
|
||||
|
||||
</details>
|
||||
|
||||
---------------------------------------------------------------------------------------
|
||||
endsnippet
|
||||
|
Reference in New Issue
Block a user