Sociome is a API DEVELOPMENT PROJECT UNDER CODE FOR COMMUNITY ! capable of CRUD operation and this api is specific with Social Media Application Functionalities.
To install The Fastapi on the system
pip install fastapi
To install all the dependiencies at once use :
pip install fastapi[all]
Run the server in LocalHost:
uvicorn main:app --reload
Open your browser at !
http://127.0.0.1:8000/
Interactive API doc
http://127.0.0.1:8000/docs # Sample code ๐
import datetime
from typing import Optional
import time
from datetime import date, time,datetime
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"Messgaes": "Hey viewer ! i made it man !","Author":"Abhishek Kushwaha"}
@app.get("/items/{item_id}")
def read_item(item_id: int, q: Optional[str] = None):
return {"item_id": item_id, "q": q}
@app.get("/author/{author_id}/{q}")
def read_item(author_id: int, q: Optional[str] = None):
return {"item_id": author_id, "request": q ,"name":"Abhishek kushwaha"}
-This project needs a โญ๏ธ from you. Donโt forget to leave a star โญ๏ธ
-Follow me here โจ
-Contributions to the project are most welcome! ๐
-Feel free to fork this repo and contribute. ๐ง
-Thank You!๐