Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Latest commit

 

History

History
43 lines (31 loc) · 1.25 KB

File metadata and controls

43 lines (31 loc) · 1.25 KB

sample-service - Go Gin backend service utilizing go-jwt-middleware go package

Prerequisite

Run backend service

go run main.go

Explore the Swagger Web UI in a browser of your preference by entering: http://localhost:3010/swagger/index.html

Run backend service with docker

# Building the docker image
docker build -t go-service-considering-auth0:0.1.0 .
# Run the docker container
docker run --rm -p 5003:3010 -d go-service-considering-auth0:0.1.0 

NOTE: Currrently there are some CORS related errors when utilizing the Swagger Web UI for testing HTTP controller endpoints in a browser of your preference by entering: http://localhost:5003/swagger.

Failed to fetch.
Possible Reasons:

CORS
Network Failure
URL scheme must be "http" or "https" for CORS request.

Consider running the suggested curl command after pushing the Execute button for the desired route in Swagger UI, e.g.

curl -X 'GET' \
  'http://localhost:3010/api/v1/sas/public' \
  -H 'accept: application/json'