An open API service indexing awesome lists of open source software.

https://github.com/opentable/go-singularity

Singularity API client
https://github.com/opentable/go-singularity

Last synced: 6 months ago
JSON representation

Singularity API client

Awesome Lists containing this project

README

          

# go-singularity

Singularity API client, originally for use with Sous. Perhaps useful to others.

## Components:

- `jq-scripts/` and `process_api.sh` are helpers to clean up the Sigularity JSON;
Singularity's generated JSON files are... not completely valid Swagger,
so they need a little massage before they're used.

## Development:

The vast majority of this code is generated using the [swagger-client-maker.](http://github.com/opentable/swaggering)
To install the tool:

### Singularity
Should you need to build Singularity, the incantation is:
```mvn compile -Dbasepom.check.fail-extended=false```

### Quickstart
```bash
go get github.com/opentable/swaggering/cmd/swagger-client-maker

mkdir dtos
swagger-client-maker --import-name=github.com/opentable/go-singularity --client-package=singularity api-docs/ .
```