Skip to content

Commit 6e4f231

Browse files
committed
feat: add endpoint to retrieve deployed backend version
1 parent 83b526d commit 6e4f231

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/api.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ Responses:
130130
- 400 Validation error → `VALIDATION_ERROR`
131131
- 401 If not authenticated / expired (distinct codes as above)
132132

133+
## Public Utility
134+
### GET /api/version
135+
Returns the deployed backend version. Public and unauthenticated.
136+
137+
Success (200):
138+
```json
139+
{ "version": "0.1.0" }
140+
```
141+
142+
Notes:
143+
- In production, the value reflects the JAR manifest when available; falls back to `project.version` during development/test.
144+
133145
## Error Handling Summary
134146
| Scenario | Status | error code | Notes |
135147
|----------|--------|------------|-------|

0 commit comments

Comments
 (0)