Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/cleberzavadniak/drf-to-api-gw

Updates AWS API Gateway using a API created with django-rest-framework as base
https://github.com/cleberzavadniak/drf-to-api-gw

Last synced: 17 days ago
JSON representation

Updates AWS API Gateway using a API created with django-rest-framework as base

Awesome Lists containing this project

README

        

# drf-to-api-gw

Updates AWS API Gateway using an API created with django-rest-framework as base.

Because DRF doesn't generate a **Swagger 2.0** JSON file and AWS doesn't work with **Swagger 1.2**.

## Install

Install it using pip or simply clone this repository.

## Requirements

* AWS CLI (the "aws" command) (aws-cli >= 1.10.38).

## Usage

python3 -m drf_to_api_gw https://example.com/v1/docs/api-docs API_NAME

If your app is running on **Heroku**, you can use:

python3 -m drf_to_api_gw heroku:HEROKU-APP-NAME API_NAME

"API_NAME" is the name of the API as you would like it to be on **AWS API Gateway**.

## Thanks

* apimatic.io and this nice tool: https://apitransformer.com/