Skip to content

This repo contains the REST version on ContainerisedMLAPP repo

Notifications You must be signed in to change notification settings

Udit107710/ContainerisedRestAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Containerised REST API

To leverage the API you will need to follow the following steps:

1) Install docker-ce and docker-compose
2) Clone the repo and run docker-compose up
3) Access the django container and create a new user

Prediction API endpoint: localhost:8080/restapp/predict/
You can use various ways like Postman or a script using Request library of Python to check the condition of API.

USE OF PYTHON SCRIPT WITH JSON INPUT

script_images

Use auth('','') in your script.

USE OF POSTMAN

You should comment line 27 and 28 from restapp/views.py and uncomment line 29 to use Postman since it is only able to send data in form format

Specify the auth details here

auth_image

Use the following headers

header_image

Sample body

body_image

Sample result

result_image

/users/ endpoint sample

get_users

About

This repo contains the REST version on ContainerisedMLAPP repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published