A reliable, deployed FastAPI MVP that serves Rick and Morty character data from a Postgres database.
- Serves character data over a clean JSON API
- Supports listing all characters
- Supports fetching a single character by ID
GET /charactersGET /characters/{character_id}
You can call the API directly over HTTPS. No auth required.
https://rick-and-morty-api-9871cc72.fastapicloud.dev/
use the /characters and /characters/{character_id} endpoints
curl https://rick-and-morty-api-9871cc72.fastapicloud.dev/characterscurl https://rick-and-morty-api-9871cc72.fastapicloud.dev/characters/1const res = await fetch("https://rick-and-morty-api-9871cc72.fastapicloud.dev/characters/1");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://rick-and-morty-api-9871cc72.fastapicloud.dev/characters/1")
print(res.json())curl https://rick-and-morty-api-9871cc72.fastapicloud.dev/characters/1Response:
{
"id": 1,
"name": "Rick Sanchez",
"status": "Alive",
"species": "Human",
"type": "Legendary",
"gender": "Male",
"place_of_origin": "Earth (C-137)"
}- FastAPI
- SQLModel
- Uvicorn
- Postgres
- FastAPI Cloud
- Pagination and filtering
- More resources (episodes, locations)
- Better error handling and validation
Hisham Khashman hisham.khashman@gmail.com https://www.hishamkhashman.dev