Debian Codegraph @

plugins/gnostic-swift-generator/examples/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-swift-generator` plugin, which
6 generates Swift code that implements an API client and server for
7 an OpenAPI description.
8
9 Run `make all` to build and install `gnostic` and the Swift plugin.
10 It will generate both client and server code. The API client and
11 server code will be in the `Sources/Bookstore` package.
12
13 The `Sources/Server` directory contains additional code that completes the server.
14 To build and run the server, do the following:
15
16 swift build
17 .build/debug/Server &
18
19 To test the service with the generated client, run `swift build`.
20 Tests are in the `Tests` directory and use client
21 code generated in `Bookstore` to verify the service.
22