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

https://github.com/payu/swaggipedia

Lightweight open-source platform for browsing swagger APIs
https://github.com/payu/swaggipedia

Last synced: about 1 year ago
JSON representation

Lightweight open-source platform for browsing swagger APIs

Awesome Lists containing this project

README

          

# Swaggipedia
## Lightweight open-source platform for browsing swagger APIs.

Swaggipedia provides a simple REST API alongside a user-friendly UI to manage and browse your APIs.

-----------------------------------------------------
## Quick View
![swaggipedia](https://github.com/PayU/swaggipedia/assets/11981986/3c61e142-c115-4977-b206-5c30c815a4ab)




## How to use Swaggipedia

### **Step 1**: start a swaggipedia server instance
Swaggipedia is production ready and can be deployed using Docker. Starting an instance is simple:
```sh
docker run -d -p 3000:3000 --name my-swaggipedia zooz/swaggipedia
```

**Configuring Swaggipedia**:
> There are a small number of environment variables supported by the image:
> - **LOG_LEVEL**: *One of: 'trace' | 'debug' | 'info' (Default) | 'warn' | 'error' | 'fatal'.*
> - **DATABASE_TYPE**: *One of: 'sqlite' (Default) | 'mysql' | 'postgres' | 'mariadb' | 'mssql' | 'oracle'.*
> - **DATABASE_ADDRESS**: *The host of the database.*
> - **DATABASE_NAME**: *The name of the database.*
> - **DATABASE_USERNAME**: *The username used to authenticate against the database.*
> - **DATABASE_PASSWORD**: *The password used to authenticate against the database. Supports SQLCipher encryption for SQLite.*
> - **SQLITE_STORAGE_PATH**: *The storage engine for sqlite (Only used by sqlite). Defaults to './db/swaggipedia.sqlite'.*
> - **APP_BASE_NAME**: *Enables tweaking the public folder containing the HTML file (Swaggipedia UI).*
> - **SECRETS_FILE_PATH**: *Path to a JSON file inside your Swaggipedia container that contains the application's secrets 'DATABASE_USERNAME' & 'DATABASE_PASSWORD'. (Commonly used by secrets management tools).*


### **Step 2**: manage the swagger files using swaggipedia API
Swaggipedia provides a super simple REST API to get/create/update/delete swagger files. [API Reference](https://payu.github.io/swaggipedia/)


### **Step 3**: browse your swagger using swaggipedia UI
```/ui```