This is a Rick and Morty and Unsplash API documentation bootstrapped with Next.js
Method | Endpoint | Description |
---|---|---|
GET | /location | get all locations |
GET | /location/{id} | get location by id |
GET | /location/1,13,5 | get multiple locations by id |
GET | /character/{id} | get a character by id |
GET | /characters | get all characters |
GET | /character/3, 15,24 | get multiple characters by ids |
GET | /episode/{id} | get episode by id |
GET | /episode | get all episodes |
GET | /episode/2,13,20 | get multiple episodes by ids |
Method | Endpoint | Description |
---|---|---|
GET | /photos | get all photos |
GET | /photos/{id} | get a photo by id |
GET | /photos/random | get a random photo |
GET | /photos/{id}/statistics | get photo statistics |
GET | /photos/{id}/download | download a photo by id |
GET | /search/photos | Search photo by page and keyword |
GET | /search/collection | Search photo by page number and collection name |
GET | /search/users | search photo by username and page number |
GET | /collections | get collection by page number |
GET | /collections/{id} | get collection by id |
GET | /topics/{id_or_slug} | get topic by id or slug |
GET | /topics/{page} | get a topic by page number |
GET | /topics/{id_or_slug}/photos | get a topic's photo |
The project has been deployed to Vercel and here is the Live link
- NextJs
next/font
- Apidog
- Text editor eg Visual Studio Code
- Vercel
- Clone the repository using
git clone
- Navigate to the project folder
- Install dependencies by running
npm install
oryarn install
. - Run the development server with
npm run dev
oryarn dev
. - Open http://localhost:3000 with your browser to see the result.
- Create a new branch in your terminal
git checkout -b improve-feature
- Make necessary changes on the codebase
- Run the development server with
npm run dev
oryarn dev
to see the changes. - Add the changes and commit them
git commit -am "Improve App"
- Push to the branch
git push origin improve-app
and open a new pull request
There are no known bugs
- Email : anitakahenya1@gmail.com
MIT License Copyright (c) 2024 Anita Kahenya