Skip to content

danah2139/API-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CYE_home_exercise

implemented API proxy server that receive HTTP REST API requests and
forward them to a remote REST API that supports the same API endpoints.
API REMOTE SERVER = https://reqres.in/

The proxy server would send a response to the client (same response as the remote server sent) while limiting the requests rate:

  • A maximum of 10 requests per minute.
  • A maximum of 1,000 requests per day.

The proxy uses caching and return valid responses from the past 10 minutes.

RUN THE PROXY SERVER

You need to download pipenv in order to create virtualenv and install all the packages from pipfile or you can download from the requirements.txt file

  • python server.py

The proxy run in [http://localhost:8000]
In order to see the REST API documentation run: [http://localhost:8000/docs]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages