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

https://github.com/mattt/swift-package-registry-oas

OpenAPI Specification for proposed Swift Package Registry web service
https://github.com/mattt/swift-package-registry-oas

Last synced: 9 months ago
JSON representation

OpenAPI Specification for proposed Swift Package Registry web service

Awesome Lists containing this project

README

          

# Swift Package Registry - OpenAPI Specification

This project generates an [OpenAPI (v3) Specification](https://swagger.io/specification/)
describing the endpoints of the proposed
[Swift package registry interface](https://github.com/apple/swift-evolution/blob/main/proposals/0292-package-registry-service.md)
It uses [OpenAPIKit](https://github.com/mattpolzin/OpenAPIKit)
to construct and verify the specification in Swift.

Rendered documentation from the latest build of the specification
can be found [here](https://mattt.github.io/swift-package-registry-oas/).

## Requirements

- Swift 5.3+
- Node v14+
- npm

## Usage

Build and run the `generate` executable to print the specification to `stdout`.

```console
$ swift run generate
```

Run the following command to generate a static HTML reference
in the `dist` directory:

```console
$ make
```