chore: rename simple_bank to api_tmpl and clean up for template use
Rename the module, proto service, and all identifiers from simple_bank/ SimpleBank to api_tmpl/ApiTmpl, and regenerate the gRPC/gateway/swagger/ mock code accordingly. - Scrub real secrets (SMTP password, auth token secret) from api.env/ api_test.env, untrack them, and add api.env.example/api_test.env.example - Remove committed build artifacts (tmp/main, tmp/build-errors.log, dbml-error.log) and gitignore them going forward - Fix Dockerfile paths (build target, migrations copy) that referenced a stale project layout - Rewrite README to match the actual cmd/ + internal/ structure and add a "using this as a template" section
This commit is contained in:
1 parent
961bdd81d4
commit
c4ee0ce4dc
71 files changed
+744
-743
No files matched your search
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "Simple Bank API",
|
||||
"title": "API Template",
|
||||
"version": "0.0.1",
|
||||
"contact": {
|
||||
"name": "fvideira",
|
||||
"url": "https://github.com/FernandoJVideira/simple_bank",
|
||||
"email": "03.pleaser-minster@icloud.com"
|
||||
"url": "https://github.com/FernandoJVideira/api_tmpl",
|
||||
"email": "support@example.com"
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"name": "SimpleBank"
|
||||
"name": "ApiTmpl"
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
@@ -24,8 +24,8 @@
|
||||
"/v1/create_user": {
|
||||
"post": {
|
||||
"summary": "Create User",
|
||||
"description": "Create a new user in the Simple Bank system.",
|
||||
"operationId": "SimpleBank_CreateUser",
|
||||
"description": "Create a new user.",
|
||||
"operationId": "ApiTmpl_CreateUser",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
@@ -51,15 +51,15 @@
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"SimpleBank"
|
||||
"ApiTmpl"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/login_user": {
|
||||
"post": {
|
||||
"summary": "Login User",
|
||||
"description": "Login an existing user in the Simple Bank system.",
|
||||
"operationId": "SimpleBank_LoginUser",
|
||||
"description": "Login an existing user.",
|
||||
"operationId": "ApiTmpl_LoginUser",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
@@ -85,15 +85,15 @@
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"SimpleBank"
|
||||
"ApiTmpl"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/update_user": {
|
||||
"patch": {
|
||||
"summary": "Update User",
|
||||
"description": "Update an existing user in the Simple Bank system.",
|
||||
"operationId": "SimpleBank_UpdateUser",
|
||||
"description": "Update an existing user.",
|
||||
"operationId": "ApiTmpl_UpdateUser",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
@@ -119,15 +119,15 @@
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"SimpleBank"
|
||||
"ApiTmpl"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v1/verify_email": {
|
||||
"get": {
|
||||
"summary": "Verify Email",
|
||||
"description": "Verify user's email in the Simple Bank system.",
|
||||
"operationId": "SimpleBank_VerifyEmail",
|
||||
"description": "Verify a user's email.",
|
||||
"operationId": "ApiTmpl_VerifyEmail",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
@@ -158,7 +158,7 @@
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"SimpleBank"
|
||||
"ApiTmpl"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ window.onload = function () {
|
||||
|
||||
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
|
||||
window.ui = SwaggerUIBundle({
|
||||
url: "simple_bank.swagger.json",
|
||||
url: "api_tmpl.swagger.json",
|
||||
dom_id: "#swagger-ui",
|
||||
deepLinking: true,
|
||||
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
|
||||
|
||||
Reference in new issue
Block a user