GithubHelp home page GithubHelp logo

ywalia01 / dune-api Goto Github PK

View Code? Open in Web Editor NEW
53.0 1.0 10.0 6.17 MB

A simple API which provides you with book, character, movie and quotes JSON data

Home Page: https://dune-api.up.railway.app/quotes/1

JavaScript 100.00%
dune quotes api quotes-api

dune-api's Introduction

arrakis-header2

Dune API

A simple API which provides you with book, character, movie and quotes JSON data

Production host

https://the-dune-api.herokuapp.com/

API

GET /quotes

Get a random quote in this format:

https://the-dune-api.herokuapp.com/quotes

[
    {
        id: "14",
        quote: "Fear is the mind-killer."
    }
]

GET /quotes/{number}

Returns an array with {number} quotes e.g. GET /quotes/3.

https://the-dune-api.herokuapp.com/quotes/3

[
    {
        id: "10",
        "quote": "He who controls the spice controls the universe.",
    },
    {
        id: "3",
        "quote": "The mystery of life isn't a problem to solve, but a reality to experience.",
    },
    {
        id: "11",
        "quote": "Without change something sleeps inside us, and seldom awakens. The sleeper must awaken."
    }
]

GET /quotes/id/{id}

Get the corresponding quote from its id in this format:

https://the-dune-api.herokuapp.com/quotes/id/66

[
    {
        id: "66",
        "quote": "A man's flesh is his own; the water belongs to the tribe.",
    }
]

GET /books

Get a random book in this format:

https://the-dune-api.herokuapp.com/books

[
    {
        id: "17",
        title: "Sisterhood of Dune",
        year: "2012",
        author: ["Brian Herbert", "Kevin J. Anderson"],
        wiki_url: "https:/en.wikipedia.org/wiki/Sisterhood_of_Dune"
    }
]

GET /books/{number}

Returns an array with {number} books e.g. GET /books/3.

https://the-dune-api.herokuapp.com/books/3

[
    {
        id: "20",
        title: "Dune: The Duke of Caladan",
        year: "2020",
        author: ["Brian Herbert", "Kevin J. Anderson"],
        wiki_url: "https:/en.wikipedia.org/wiki/Dune:_The_Duke_of_Caladan"
    },
    {
        id: "15",
        title: "Paul of Dune",
        year: "2008",
        author: ["Brian Herbert", "Kevin J. Anderson"],
        wiki_url: "https:/en.wikipedia.org/wiki/Paul_of_Dune"
    },
    {
        id: "4",
        title: "God Emperor of Dune",
        year: "1981",
        author: "Frank Herbert",
        wiki_url: "https:/en.wikipedia.org/wiki/God_Emperor_of_Dune"
    }
]

GET /books/id/{id}

Get the corresponding book from its id in this format:

https://the-dune-api.herokuapp.com/books/id/1

[
    {
        id: "1",
        title: "Dune",
        year: "1965",
        author: "Frank Herbert",
        wiki_url: "https:/en.wikipedia.org/wiki/Dune_(novel)"
    }
]

Contributing

If you want to add some quotes, just add them in the models/quotes.js file and make a pull request.

Credits

Inspired by Breaking Bad Quotes.

dune-api's People

Contributors

steppico avatar ywalia01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dune-api's Issues

API not working

When going to the API website Heroku returns an application error, could you maybe look into it if you're still supporting this API?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.