Skip to content

I have created a simple flask rest api creation project ,that will simply return a json object when we go to specified url (which has a view function with post method attached to it).

Notifications You must be signed in to change notification settings

Mayurg5899/python-flask-demo-rest-api-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

python-flask-demo-rest-api-project

I have created a simple flask rest api creation project ,that will simply return a json object when we go to specified url (which has a view function with post method attached to it).

Using Python Flask or ExpressJS, Write a REST API that reads the body and returns JSON.

API Method POST

URL : /find_symbols_in_names

Input JSON Body of the API:

{

"chemicals": ['Amazon', 'Microsoft', 'Google'],

"symbols": ['I', 'Am', 'cro', 'Na', 'le', 'abc']

}

Output: display the chemical names with their symbol surrounded by square brackets:

{

"result": ["[Am]azon, Mi[cro]soft, Goog[le]"]

}

About

I have created a simple flask rest api creation project ,that will simply return a json object when we go to specified url (which has a view function with post method attached to it).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published