Skip to content

Hishamkhashman1/rick-and-morty-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rick and Morty API (MVP)

A reliable, deployed FastAPI MVP that serves Rick and Morty character data from a Postgres database.

What This MVP Does

  • Serves character data over a clean JSON API
  • Supports listing all characters
  • Supports fetching a single character by ID

API Endpoints

  • GET /characters
  • GET /characters/{character_id}

How to Use (End Users)

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

curl https://rick-and-morty-api-9871cc72.fastapicloud.dev/characters
curl https://rick-and-morty-api-9871cc72.fastapicloud.dev/characters/1

JavaScript (fetch)

const res = await fetch("https://rick-and-morty-api-9871cc72.fastapicloud.dev/characters/1");
const data = await res.json();
console.log(data);

Python (requests)

import requests

res = requests.get("https://rick-and-morty-api-9871cc72.fastapicloud.dev/characters/1")
print(res.json())

Example Response

curl https://rick-and-morty-api-9871cc72.fastapicloud.dev/characters/1

Response:

{
  "id": 1,
  "name": "Rick Sanchez",
  "status": "Alive",
  "species": "Human",
  "type": "Legendary",
  "gender": "Male",
  "place_of_origin": "Earth (C-137)"
}

Tech Stack

  • FastAPI
  • SQLModel
  • Uvicorn
  • Postgres
  • FastAPI Cloud

Roadmap

  • Pagination and filtering
  • More resources (episodes, locations)
  • Better error handling and validation

Contact

Hisham Khashman hisham.khashman@gmail.com https://www.hishamkhashman.dev

About

The definitive API For all Rick and Morty fans out there! Complete list of characters! Wuba laba dub dub!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages