Giter VIP home page Giter VIP logo

restapi-postman's Introduction

RestAPI-Postman

Table of Content

  • Overview
  • Technical Aspect
  • Installation
  • Run
  • Setup Postman
  • Directory Tree
  • Technologies Used

Overview

Machine Learning models are powerful tools to make predictions based on available data. To make these models useful, they need to be deployed so that other’s can easily access them through an API (application programming interface) to make predictions. A REST API that uses HTTP requests to GET, PUT, POST and DELETE data.

Technical Aspect

For this project I build simple Logistic Regreesion to predict Diabetic Patients and deploy it with Flask Framework in local host. API is accessed by Postman.

Installation

The Code is written in Python 3.7. To install the required packages and libraries, run this command in the project directory after cloning the repository:

pip install -r requirements.txt

Run

To run use this command in you virtualenv

python app.py

Setup Postman

To download Postman click this link

Method PostMethod

Content

Header

Body

{
  "data":{
      "Pregnancies": 6,
      "Glucose" : 148.0,
      "BloodPressure" : 72.0,
      "SkinThickness" : 35.0,
      "Insulin" : 79.79,
      "BMI" : 33.6,
      "DiabetesPedigreeFunction": 0.627,
      "Age" : 50
  }
}

Response

Response

Directory Tree

├── LogisticRegression 
│   ├── LogisticRegression.py
├── app.py
├── diabetes.csv
├── Logistic Regression.ipynb
├── modelForPrediction.sav
├── requiremntes.txt
├── README.md
└── standardScalar.sav

Technologies Used

Flask Postman

restapi-postman's People

Contributors

balamurugan-shanmuganathan 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.