Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 904 Bytes

File metadata and controls

28 lines (17 loc) · 904 Bytes
  • How use in your machine

pip install uvicorn pip install fastapi

  • How to search for specific urls through the main url

If you type http://127.0.0.1:8000/punctuations will be redirected to this url, which is the same http://127.0.0.1:8000/punctuations/!
the same happens here http://127.0.0.1:8000/letters -> http://127.0.0.1:8000/letters/!
and here http://127.0.0.1:8000/numbers -> http://127.0.0.1:8000/numbers/!

  • How to search for a particular value

To search for something specific by the url, do the same as the examples:

for numbers -> http://127.0.0.1:8000/?number=783
for punctuation -> http://127.0.0.1:8000/?punctuation=@
for letters -> http://127.0.0.1:8000/?letter=a

  • Requesting the api

the whole api

response = requests.get('http://127.0.0.1:8000/').json()

specific

punctuation = response["punctuations"]