dp-dd-api-stub

command module
v0.0.0-...-c168623 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2017 License: MIT Imports: 22 Imported by: 0

README

dp-dd-api-stub

A stub for our APIs written in Go.

Getting started

Make sure govendor is installed and GOPATH and GOROOT environment variables are set correctly. Clone the repository. Run make debug.

The command will create/update data.go using go-bindata based on the JSON files inside the stub directory.

NOTE: there are still some handlers that have not been transformed to use stubbed JSON.

Configuration
Environment variable Default Description
BIND_ADDR :20099 The host and port to bind to
Examples

http://localhost:20099/datasets http://localhost:20099/datasets/AF001EW http://localhost:20099/datasets/AF001EW/editions/2016/versions/1 http://localhost:20099/datasets/AF001EW/editions/2016/versions/1/dimensions http://localhost:20099/datasets/AF001EW/editions/2016/versions/1/dimensions http://localhost:20099/hierarchies http://localhost:20099/hierarchies/TIME_001

License

Copyright © 2016-2017, Office for National Statistics (https://www.ons.gov.uk)

Released under MIT license, see LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL