package
0.23.0
Repository: https://github.com/onsdigital/dp-topic-api.git
Documentation: pkg.go.dev

# Functions

ReadJSONBody reads the bytes from the provided body, and marshals it to the provided model interface.
Setup function sets up the api and returns an api.
WriteJSONBody marshals the provided interface into json, and writes it to the response body.

# Constants

Publications:.
Flag values for a query type:.
Flag values for a query type:.
Flag values for a query type:.
powers of 2, for combining bit flags.
Datasets:.
Flag values for a query type:.

# Structs

API provides a struct to wrap the api around.

# Interfaces

AuthHandler provides authorisation checks on requests.