Skip to content

feat: add GET /version endpoint.#61

Merged
Uyoxy merged 2 commits intostellarspend:mainfrom
LaGodxy:feature/version-endpoint
Mar 9, 2026
Merged

feat: add GET /version endpoint.#61
Uyoxy merged 2 commits intostellarspend:mainfrom
LaGodxy:feature/version-endpoint

Conversation

@LaGodxy
Copy link
Copy Markdown
Contributor

@LaGodxy LaGodxy commented Mar 9, 2026

Summary

Adds a simple endpoint to return the current API version of the backend service.

Problem

There is currently no straightforward way to verify which version of the API is deployed. This makes debugging, monitoring deployments, and verifying environment versions more difficult.

Scope

  • Create a GET /version endpoint.

  • Return a JSON response containing:

    • the service name
    • the current API version

Files Changed

  • stellarspend-backend/src/app.controller.ts
  • stellarspend-backend/src/app.service.ts

Acceptance Criteria

  • The endpoint returns HTTP 200.
  • The response format should be:
{
  "service": "stellarspend-api",
  "version": "1.0.0"
}

Labels

feature backend api simple

How to Test

  1. Start the backend server.
  2. Send a GET request to:
/version
  1. Verify the response returns:
{
  "service": "stellarspend-api",
  "version": "1.0.0"
}

closes #59

@Uyoxy
Copy link
Copy Markdown
Contributor

Uyoxy commented Mar 9, 2026

@LaGodxy kindly resolve your conflict

@Uyoxy Uyoxy merged commit 4d05238 into stellarspend:main Mar 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat(backend): add API version endpoint

2 participants