(Feat): Initial Commit
Some checks failed
Build & Test / build-test (push) Has been cancelled
Build & Test / swagger-codegen-cli (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled

This commit is contained in:
2026-07-03 19:41:31 +05:30
commit 7e940c83a7
461 changed files with 45002 additions and 0 deletions

71
api/paths/common.yml Normal file
View File

@@ -0,0 +1,71 @@
swagger: "2.0"
info:
title: allaboutapps.dev/aw/go-starter
version: 0.1.0
paths:
/swagger.yml:
get:
summary: Get swagger.yml
operationId: GetSwaggerRoute
produces:
- text/plain
description: |-
OpenAPI Specification ver. 2 (fka Swagger)
Returns our handcrafted and validated `swagger.yml`.
tags:
- common
responses:
"200":
description: OK
/-/ready:
get:
summary: Get ready (readiness probe)
operationId: GetReadyRoute
produces:
- text/plain
description: |-
This endpoint returns 200 when the service is ready to serve traffic.
Does read-only probes apart from the general server ready state.
Note that /-/ready is typically public (and not shielded by a mgmt-secret), we thus prevent information leakage here and only return `"Ready."`.
tags:
- common
responses:
"200":
description: Ready.
"521":
description: Not ready.
/-/healthy:
get:
security:
- Management: []
summary: Get healthy (liveness probe)
operationId: GetHealthyRoute
produces:
- text/plain
description: |-
This endpoint returns 200 when the service is healthy.
Returns an human readable string about the current service status.
In addition to readiness probes, it performs actual write probes.
Note that /-/healthy is private (shielded by the mgmt-secret) as it may expose sensitive information about your service.
tags:
- common
responses:
"200":
description: Ready.
"521":
description: Not ready.
/-/version:
get:
security:
- Management: []
summary: Get version
operationId: GetVersionRoute
produces:
- text/plain
description: |-
This endpoint returns the module name, commit and build-date baked into the app binary.
tags:
- common
responses:
"200":
description: "ModuleName @ Commit (BuildDate)"