https://github.com/thedigitalninja/examplegoapi
Example go API
https://github.com/thedigitalninja/examplegoapi
api example go golang
Last synced: 11 months ago
JSON representation
Example go API
- Host: GitHub
- URL: https://github.com/thedigitalninja/examplegoapi
- Owner: TheDigitalNinja
- Created: 2018-07-11T00:36:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-09T17:06:05.000Z (about 7 years ago)
- Last Synced: 2025-01-15T00:36:53.008Z (about 1 year ago)
- Topics: api, example, go, golang
- Language: Go
- Size: 705 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example Go API
[](https://goreportcard.com/report/github.com/TheDigitalNinja/examplegoapi)
[](https://travis-ci.org/TheDigitalNinja/examplegoapi)
I needed some services for testing deployments so I thought I would learn GoLang and just roll my own.
## Run
```
cd cmd
go run main.go
```
## Tests
Run tests with
```
go test -cover ./...
```
## Directories
### `/cmd`
Main applications for this project.
### `/web`
Web application specific components: static web assets, server side templates and SPAs.
## Endpoints
### `/`
Example Web Page. Should return `Content-Type: text/html; charset=utf-8`
### `/Status`
Health Check. Should return json `{"STATUS": "UP"}`