An open API service indexing awesome lists of open source software.

https://github.com/fasilofficial/fasilofficial


https://github.com/fasilofficial/fasilofficial

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

Hey 👋, I'm Fasil


DEVELOPER. PHOTOGRAPHER. CINEPHILE.

```python

from fastapi import FastAPI
from fastapi.responses import JSONResponse

app = FastAPI()

@app.get("/about")
async def about():
return JSONResponse(content={
"fullName": "Muhammed Fasil K",
"interests": ["coding", "movies", "music", "travel"],
"skills": ["ReactJS", "Node.js", "Laravel", "Python", "SQL", "NoSQL", "FasilAPI"]
})

@app.get("/contact")
async def contact():
return JSONResponse(content={
"email": "[email protected]",
"portfolio": "https://mfasil.vercel.app"
})

@app.exception_handler(404)
async def not_found(request, exc):
return JSONResponse(content={"message": "Route not found"}, status_code=404)

```