Skip to content

Fun little novel API to have fun and try stuff out

License

Notifications You must be signed in to change notification settings

Alexever17/novelsAPI

Repository files navigation

Alexever17's Novel Ratings API

This is the API to get all the data for the novel webpage

DISCONTINUED

Because of some issues this project isnt longer live.

Installing

Just fork it and get it on your machine. Then just go "npm install" in the folder

DOC

GET REQUEST

Getting all the database

https://alexever17.herokuapp.com/api/novels

Get a specific novel

https://alexever17.herokuapp.com/api/novel/5ad27708ed35670004feb933
just change the last part after /novel for a different one, you can find the id in the full version of the database

Country of origin

https://alexever17.herokuapp.com/api/novels/origin/chinese
finding only novels with chinese origin
https://alexever17.herokuapp.com/api/novels/origin/japanese
finding only novels with japanese origin
https://alexever17.herokuapp.com/api/novels/origin/korean
finding only novels with korean origin

Ranking

https://alexever17.herokuapp.com/api/novels/ranking/3
You can get a query containing only the novels with this specific Ranking
possible input after ranking/ is 1 to 10

Dropped Novels

https://alexever17.herokuapp.com/api/novels/dropped
You can also just query the novels which were dropped

Sorting

Sorting can be aplied to every get request except for the one where you retrieve a single novel
just change the link before the ?

examples:
https://alexever17.herokuapp.com/api/novels?sort=1
Sort all novels by the ranking --> 10 to 1
https://alexever17.herokuapp.com/api/novels?sort=2
Sort all novels by the ranking --> 1 to 10
https://alexever17.herokuapp.com/api/novels?sort=3
Sorting alphabetically
https://alexever17.herokuapp.com/api/novels?sort=4
Sorting reverse alphabetically

Other REQUEST

Please do not use it.

Data Format inside the data base:


an example:
{
"_id" : ObjectId("5ad27708ed35670004feb933"),
"description" : "“What I want, the Heavens shall not lack! ” “What I don’t want, had better not exist in the Heavens!” ",
"origin" : "chinese",
"name" : "I Shall Seal the Heavens",
"ranking" : 2,
"url" : "https://www.novelupdates.com/series/i-shall-seal-the-heavens/",
"picSource" : "https://cdn.novelupdates.com/images/2015/06/15_ISSTH.jpg",
"dropped" : false,
"dataAdded" : "28.05.2018",
"__v" : 0
}

Built With

Contributing

Just feel free to make Pull request however you see fit. Feel free to contact me for question.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Fun little novel API to have fun and try stuff out

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published