File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11# Django Simple API Proxy
22
3+ [ ![ Test] ( https://github.com/NatLee/Django-Simple-API-Proxy/actions/workflows/test.yml/badge.svg )] ( https://github.com/NatLee/Django-Simple-API-Proxy/actions/workflows/test.yml ) [ ![ Release] ( https://github.com/NatLee/Django-Simple-API-Proxy/actions/workflows/release.yml/badge.svg )] ( https://github.com/NatLee/Django-Simple-API-Proxy/actions/workflows/release.yml )
4+
35This is a simple tool for proxying any APIs easily on your Django server.
46
57You can use it as middleware to make a layer for user authorization or something.
@@ -10,6 +12,8 @@ You can use it as middleware to make a layer for user authorization or something
1012pip install django-simple-api-proxy
1113```
1214
15+ Check it in [ Pypi] ( https://pypi.org/project/django-simple-api-proxy/ ) .
16+
1317## Quick Start
1418
15191 . Add ` django_simple_api_proxy ` to your ` INSTALLED_APPS ` in ` settings.py ` like this:
@@ -26,7 +30,7 @@ INSTALLED_APPS = [
2630``` py
2731TARGET_API_URL = ' https://httpbin.org'
2832PROXY_ROUTE_PATH = ' my_test_route'
29- PROXY_TARGET_PATH = ' '
33+ PROXY_TARGET_PATH = ' get '
3034```
3135
32363 . Include the ` django_simple_api_proxy ` URL settings in your project ` urls.py ` like this:
@@ -127,3 +131,7 @@ class MyAPIProxy(APIProxy):
127131 return self .response(response)
128132
129133```
134+
135+ ## More
136+
137+ There is an example project you can check in [ ./example] ( https://github.com/NatLee/Django-Simple-API-Proxy/tree/main/example/api_proxy_example ) .
You can’t perform that action at this time.
0 commit comments