ahampriyanshu / norm-has-an-api

Any history buff here?

Home Page:https://normhasanapi.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RIP Norm ❤️

Base URL

API Endpoints

Get by name

$ curl https://normhasanapi.herokuapp.com/name/louieck

Get by id

$ curl https://normhasanapi.herokuapp.com/id/1

Get n comics at random

$ curl https://normhasanapi.herokuapp.com/list/3

Get by born year

$ curl https://normhasanapi.herokuapp.com/born/after/1970

Get by working year

$ curl https://normhasanapi.herokuapp.com/since/1990

Get by age

$ curl https://normhasanapi.herokuapp.com/age/min/50

Get by vital status

$ curl https://normhasanapi.herokuapp.com/alive/true

Get by nationality

$ curl https://normhasanapi.herokuapp.com/nationality/indian

Get by ethnicity

$ curl https://normhasanapi.herokuapp.com/ethnicity/irish

Hacktoberfest 2022

How To Contribute

1. Fork the repo

a

2. Clone the forked repo on your local machine

git clone git@github.com:{GITHUB_USERNAME}/norm-has-an-api.git -b main --single-branch

3. Switch to new branch

git checkout -b '{COMIC_NAME}'

4. Add/modify the required file

Fixing any empty/invalid data: Commit directly to db/db.json Adding a new comic: Create a new file in the raw folder. For reference, take a look at 000.json.

5. Move the active changes to the staging area.

git add .

6. Commit the changes in local

git commit -m 'some relevant message'

7. Push the changes to the remote

git push -u origin {BRANCH_NAME}

8. Compare And Pull

b

9. Create a new pull request by giving a relevant PR message

12

10. Congrats 🎉

c

11. Wait till PR is merged

d

Sync Your Forked Repository

CLI

$ git fetch --all
$ git checkout main
$ git reset --hard upstream/main
$ git push origin main

GUI

e f

Attribution

Built with Express and deployed on Heroku

Contributing Guidelines

Read contributing guidelines

License

This project is licensed under the MIT License.

About

Any history buff here?

https://normhasanapi.herokuapp.com/

License:MIT License


Languages

Language:JavaScript 100.0%