All Projects → ecidi → djangoapigateway

ecidi / djangoapigateway

Licence: MIT License
This is a simple apigateway for django to transmit restful api.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to djangoapigateway

cfn-api-gateway-custom-domain
API Gateway custom domains as CloudFormation resources, backed by Let's Encrypt
Stars: ✭ 17 (-57.5%)
Mutual labels:  api-gateway
cv4pve-api-dotnet
Proxmox VE Client API .Net C#
Stars: ✭ 25 (-37.5%)
Mutual labels:  api-gateway
graphql-gateway-apollo-express
Creating high performance and secure GraphQL APIs with Node.js, Apollo server, GraphQL and TypeScript
Stars: ✭ 122 (+205%)
Mutual labels:  api-gateway
demo-serverless-aspnetcore
ASP.Net Core 3.1 on AWS Lambda demo
Stars: ✭ 22 (-45%)
Mutual labels:  api-gateway
webpack-aws-lambda
AWS Lambda that runs webpack and output the bundle.js file
Stars: ✭ 12 (-70%)
Mutual labels:  api-gateway
go-microservices-and-krakend-api-gateway
This is a shopping basket workshop that shows how to use KrakenD API Gateway.
Stars: ✭ 44 (+10%)
Mutual labels:  api-gateway
okta-api-center
Get up and running quickly with Okta's OAuth as a Service and your favorite API Gateway.
Stars: ✭ 58 (+45%)
Mutual labels:  api-gateway
kong
Kong docker image that easily installs plugins from source code.
Stars: ✭ 20 (-50%)
Mutual labels:  api-gateway
aws lambda ftp function
AWS Lambda Function to connect to FTP, download files and save them to S3 bucket
Stars: ✭ 55 (+37.5%)
Mutual labels:  api-gateway
api-gateway
Api Gateway for a microservices deployment
Stars: ✭ 31 (-22.5%)
Mutual labels:  api-gateway
django-api-bouncer
Simple Django app to provide API Gateways for micro-services
Stars: ✭ 18 (-55%)
Mutual labels:  api-gateway
example-step-functions-integration-api-gateway
Example application using the new Step Functions integration with API Gateway. It developers to call API Gateway REST APIs and API Gateway from a Step Functions workflow.
Stars: ✭ 17 (-57.5%)
Mutual labels:  api-gateway
mlapi
An easy to use/extend object recognition API you can locally install. Python+Flask. Also works with ZMES!
Stars: ✭ 49 (+22.5%)
Mutual labels:  api-gateway
api-front
api统一前端、转发代理、协议分析、流量复制
Stars: ✭ 97 (+142.5%)
Mutual labels:  api-gateway
arbor
Statically configured API Gateway framework
Stars: ✭ 13 (-67.5%)
Mutual labels:  api-gateway
mangum-cli
CLI tools for use with Mangum
Stars: ✭ 14 (-65%)
Mutual labels:  api-gateway
3scale-security-oidc-demo
Securing APIs with OpenID Connect using 3scale API Management and Red Hat Single Sign On
Stars: ✭ 25 (-37.5%)
Mutual labels:  api-gateway
Helios
An open source and easy-to-use monitoring tool for your AWS serverless applications.
Stars: ✭ 51 (+27.5%)
Mutual labels:  api-gateway
kong-upstream-jwt
A plugin for Kong which adds a signed JWT to HTTP Headers to backend requests
Stars: ✭ 40 (+0%)
Mutual labels:  api-gateway
reactivesearch-api
API Gateway for Elasticsearch with declarative querying and out-of-the-box access controls
Stars: ✭ 146 (+265%)
Mutual labels:  api-gateway

Django API gateway

Description

This is a simple apigateway for django to transmit restful api.

Requirements

  • Python(2.7)
  • Django(1.8)
  • requests
  • djangorestframework

Installation

Install using pip

pip install django-api-gateway

Add 'apigateway' and 'rest_framework' to your INSTALLED_APPS setting.

    INSTALL_APPS = (
        ...
        'apigateway',
        'rest_framework',
    )

Add the following to your root urls.py file.

urlpatterns = [
    ...
    url(r'^service/', include('apigateway.urls', namespace='apigateway')),
]

Update database model

python manage.py migrate
python manage.py makemigrations

example

visit http://yourhost/admin/apigateway/api/ to add/edit/delete your restful apis

eg: if you add api like this:

name         | construct              
request_path | /construct/                
upstream_url | http://constructhost/              
plugin       | Remote auth             
consumers    | null            

now when you visit http://yourhost/service/construct/... it will transfer to http://constructhost/...

Note

  • api name must be unique

  • plugin contain 3 types

    • Remote auth - apigateway not check auth, it will transfer the auth to the real server
    • Basic auth - you must get basic auth from apigateway
    • Key auth - you must get an apikey from apigateway
  • when choose Key auth you should contain {'apikey': apikey} in headers
    curl -i -X GET --url http://yourhost/service/... --header 'apikey: apikey'

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].