Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

# Rap-Name-Api

This is an api made by leon noel with the 100Devs team to get information on rappers using just their name.

**Link to project:** https://rapper-api-100devs-class39.herokuapp.com/api/rapper-name

## How It's Made:

**Tech used:** Express.js

Using express.js we created a route to get request, using the parameter as argument to send corresponding response back to the request point.

## Optimizations

Added CORS to make Api usable from client side and not just server side, without hosting one can use our Api.

## Usage

```

fetch('https://rapper-api-100devs-class39.herokuapp.com/api/rapper-name')//replace rapper-name with rapper's name

.then(response => response.json())

.then(data => console.log(data))//Do whatever you want with data;

```
## Want to contribute
clone repository

`$ git clone https://github.com/100devs/rap-names-api`

install dependencies from package.json

`$ npm install https://github.com/100devs/rap-names-api`


`npm install <100devs>/<rap-names-api>`


## Test Result:
![Screenshot_20220603-030319](https://user-images.githubusercontent.com/69097602/171774385-5276465b-3ce8-422d-b431-13ca1fb21d2d.png)