feat: Adding openapi example API
This commit is contained in:
51
.vscode/tasks.json
vendored
Normal file
51
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"type": "go",
|
||||
"label": "go: build package",
|
||||
"command": "build",
|
||||
"args": [
|
||||
"-C", "${workspaceFolder}/app", "-o", "bin/service.exec"
|
||||
],
|
||||
"problemMatcher": [
|
||||
"$go"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
},
|
||||
{
|
||||
"label": "Dev Server",
|
||||
"type": "shell",
|
||||
"command": "pwd;go",
|
||||
"args": [
|
||||
"run",
|
||||
"."
|
||||
],
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/app"
|
||||
},
|
||||
"problemMatcher": [
|
||||
"$go"
|
||||
],
|
||||
"group": "test"
|
||||
},
|
||||
{
|
||||
"label": "openapi: generate",
|
||||
"type": "shell",
|
||||
"command": "oapi-codegen",
|
||||
"args": [
|
||||
"-config",
|
||||
"openapi/cfg.yaml",
|
||||
"openapi/openapi.yaml"
|
||||
],
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/app"
|
||||
},
|
||||
"problemMatcher": [],
|
||||
"group": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user