Giter Site home page Giter Site logo

kong-flask-interation's Introduction

KONG-Flask Integration

Overview

This project integrates Flask and Kong Gateway to handle upload and download APIs. Follow the steps below to set up and test the system.

Getting Started

Set Up Kong Locally: Start by running Kong locally using Docker with a database. For detailed instructions, refer to the official documentation.

Run Flask App: The app.py contains Flask app which is up and running at https://shivamjagdishsingh.pythonanywhere.com. You can test its status at https://shivamjagdishsingh.pythonanywhere.com/test.

API Testing

Import Insomnia JSON: Use Insomnia, a tool provided by Kong, or any API testing tool like Postman. Import the provided JSON file to access all the test requests.

Set Up Kong CDN Locally: Configure Kong CDN by creating services and routes. Make the following requests in order:

Create a service: image Create a route: image

Testing CDN

Test CDN: Your CDN should now be ready for testing. Access http://localhost:8000/pythonanywhere/test to receive a response like this: image

This demonstrates Kong CDN redirecting to the main website's test page. Upload and Download: Both upload and download processes are available. Find the corresponding requests in the Insomnia collection under the /flask folder.

With these steps completed, you should have successfully set up and tested the KONG-Flask integration for upload and download APIs.๐ŸŽ‰

kong-flask-interation's People

Contributors

shivamjagdishsingh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.