Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 843 Bytes

File metadata and controls

25 lines (20 loc) · 843 Bytes

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]