Debian Codegraph @

plugins/gnostic-go-generator/examples/v3.0/bookstore/README.md

raw symbols SCIP
1 # Bookstore Example
2
3 This directory contains an OpenAPI description of a simple bookstore API.
4
5 Use this example to try the `gnostic-go-generator` plugin, which implements
6 `gnostic-go-client` and `gnostic-go-server` for generating API client and
7 server code, respectively.
8
9 Run "make all" to build and install `gnostic` and the Go plugins.
10 It will generate both client and server code. The API client and
11 server code will be in the `bookstore` package.
12
13 The `service` directory contains additional code that completes the server.
14 To build and run the service, `cd service` and do the following:
15
16 go get .
17 go build
18 ./service &
19
20 To test the service with the generated client, go back up to the top-level
21 directory and run `go test`. The test in `bookstore_test.go` uses client
22 code generated in `bookstore` to verify the service.
23