feat: Adding openapi example API

This commit is contained in:
Josepablo C.
2025-12-07 23:19:18 -06:00
parent bf78edeec0
commit 8787ece0d0
11 changed files with 525 additions and 29 deletions

51
.vscode/tasks.json vendored Normal file
View 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"
}
]
}