/my-first-next-app

Adds a frontend and pagination to the original dataset https://github.com/akabab/starwars-api

Primary LanguageTypeScript

This is a Next.js project bootstrapped with create-next-app.

my favorite starwars scene

my favorite Starwars scene



SSR

see all characters

/characters

see a character by id

/characters/<number>



Endpoints

get all characters

/api/starwars

get character by id

/api/starwars/<number>

Pagination

get 10 characters a for a given page /api/starwars?page=<number>

get specified characters per page /api/starwars?page=<number>&perPage=<number>

data sourced from https://github.com/akabab/starwars-api