sample/

directory
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: Apache-2.0

README

API Sample

This directory contains an OpenAPI description of a sample API that exercises various OpenAPI features.

Use this example to try the gnostic-go-generator plugin, which implements gnostic-go-client and gnostic-go-server for generating API client and server code, respectively.

Run "make all" to build and install gnostic and the Go plugins. It will generate both client and server code. The API client and server code will be in the sample package.

The service directory contains additional code that completes the server. To build and run the service, cd service and do the following:

go get .
go build
./service &

To test the service with the generated client, go back up to the top-level directory and run go test. The test in sample_test.go uses client code generated in sample to verify the service.

Directories

Path Synopsis
Package sample exists to allow this repo to work with recursive go get.
Package sample exists to allow this repo to work with recursive go get.

Jump to

Keyboard shortcuts

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