Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/digitalnodecom/couchdb-swagger

Script to scrape CouchDB documentation and convert it to OpenAPI 3 / Swagger format.
https://github.com/digitalnodecom/couchdb-swagger

Last synced: about 2 months ago
JSON representation

Script to scrape CouchDB documentation and convert it to OpenAPI 3 / Swagger format.

Awesome Lists containing this project

README

        

# CouchDB Swagger Generator

This PHP CLI script will scrape [CouchDB API documentation](https://docs.couchdb.org/en/stable/api/index.html) and generate a Swagger 3.0 file. You can find the file in this repository as well under [couchdb.json](https://raw.githubusercontent.com/digitalnodecom/couchdb-swagger/master/couchdb.json).

## Usage

If you want to generate the file yourself, you can run the following command:
```php
php cli.php > couchdb.json
```

## Notes

- /{db}/_design/{ddoc}/_rewrite/{path} uses the HTTP method 'any'. This is not supported and we replaced it with _post_.
- Some of the API calls have the HTTP method 'copy'. These have been removed.