Giter Site home page Giter Site logo

curl-data-pipeline's Introduction

CURL Crypto API

The application provides API to perform CRUD operations on crypto data

Prerequisites

  • Python 3.5 or higher with pip installed

  • MongoDB installed and running

  • Install the required libraries by running the below command

pip install -r requirements.txt

Environment variables

Use the below environment variables for application configuration.

  • PORT: Port in which the application will be running

  • DB_HOST: MongoDB host

  • DB_PORT: MongoDB port

Start the application

Once all the configurations are completed. You can start the application by running the below command and the application will be running on the configured port.

python app.py

Accessing API

You can start accessing the API by sending POST request to the below URL

http://locahost:{PORT}/{END_POINT}

End points

Below are the END_POINT that are supported

END_POINT Description Input Data
load_data Reads data form the input data location data/fetchTickers.json and loads the data in DB None
insert_data Inserts the input data into DB by performing transformations [{< Input Data >}]
query_data Queries the DB with Symbol passed in the input parameter {"symbol": "< Symbol >"}

Example request

Below is an example curl request and response to get the Top 3 teams.

Request

curl --location --request POST 'http://localhost:8000/query_data' --header 'Content-Type: application/json' --data-raw '{"symbol": "BTC/INR"}'

curl-data-pipeline's People

Contributors

manikandanthangavelu 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.