Joker DMAPI client, written in Go. Currently work-in-progress
- Go 100%
- Add dmapi/request_test.go: tests for Do(), Authenticated(), Cookies(), BasicResult - Add dmapi/queryvalues_test.go: tests for queryValues() and required validation - Add dmapi/gen/gen_test.go: tests for read(), fixup(), generate() - Add cmd/joker/config_test.go: tests for getConfig() and run() - Refactor cmd/joker and dmapi/gen to extract testable functions from main() Coverage: dmapi 61.7%→89.7%, dmapi/gen 16.3%→78%, cmd/joker 0%→60.6% |
||
|---|---|---|
| cmd/joker | ||
| dmapi | ||
| doc | ||
| internal | ||
| .gitignore | ||
| .gogogo.conf | ||
| .golangci.yml | ||
| go.mod | ||
| go.sum | ||
| joker.conf.example | ||
| LICENSE.txt | ||
| README.md | ||
Joker-API-Client
A simple Joker DMAPI Go client implementation. And a CLI for (example) use of this client.
Build
The dmapi/api.go is generated from dmapi/api.yaml and the template
dmapi/api.go.template. If you add API calls to the YAML document,
re-run go generate ./... (and commit the changes).