Skip to content

Instantly share code, notes, and snippets.

@dimzeta
dimzeta / php.json
Created November 23, 2020 04:24
Light swagger-php VSCode snippet
{
"OA Method": {
"prefix": ["oa.method", "oa.m"],
"description": "@OA\\Get/Post/Patch/Put/Delete Docblock",
"body": [
"$BLOCK_COMMENT_START*",
" * \t@OA\\\\${1|Get,Post,Patch,Delete|} (",
" * \t\tpath=\"${2:path}\",",
" * \t\tdescription=\"${3:description}\",",
" * \t\toperationId=\"${4:operationId}\",",