Skip to content

feat(myapi): add minimal service with GET /health and POST /echo#23

Open
AdrianxSanchez wants to merge 1 commit intoandy89923:mainfrom
AdrianxSanchez:feature/myapi-service
Open

feat(myapi): add minimal service with GET /health and POST /echo#23
AdrianxSanchez wants to merge 1 commit intoandy89923:mainfrom
AdrianxSanchez:feature/myapi-service

Conversation

@AdrianxSanchez
Copy link

This PR adds a minimal HTTP service myapi:

  • GET /health -> {"status":"ok"}
  • POST /echo -> echos JSON body

How to run locally:
go run ./cmd/myapi

Quick test:
curl -s localhost:8080/health
curl -s -X POST localhost:8080/echo
-H 'Content-Type: application/json'
-d '{"hola":"ux"}'

Branch name follows the policy: feature/myapi-service
Commit message follows Conventional Commits.

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.

1 participant