Giter VIP home page Giter VIP logo

sagopa-api's Introduction

Sagopa API

THIS PROJECT IS NOT AFFILIATED WITH SAGOPA KAJMER! IT IS A FAN WORK.

Introduction

Yes, you read that right. This is an API I've written in Shuttle with Axum and Yew that returns quotes from Sagopa Kajmer's songs!

Why?

I am not a web developer, but sometimes I need to make some API calls, and that Lorem Ipsum is way too boring. As a huge fan of Sagopa Kajmer, I thought why not just create an API myself consisting of well-written quotes of him while learning awesome frameworks like Yew, Axum, and Shuttle.

How do you use it?

I am planning to leave several examples for some languages to use the API in the future, but basically, you just make a REST API call and you are good to go.

PS: You probably don't care about id, album_id, and song_id field. So, just ignore them!

Get a random quote

# Get a random quote
curl -X GET "https://sagopa-api.shuttleapp.rs/get/random/quote"

Response:

{
    "song_id": 2,
    "quote": "...",
    "id": 3
}

Get all quotes

# Get all quotes
curl -X GET "https://sagopa-api.shuttleapp.rs/get/quote"

Response:

[
    {
        "song_id": 2,
        "quote": "...",
        "id": 3
    },
    ...
]

See all the albums

# See all the albums
curl -X GET "https://sagopa-api.shuttleapp.rs/get/albums"

Response:

[
    {
        "name": "Kağıt Kesikleri",
        "id": 1
    }
]

See all the songs

# See all the songs
curl -X GET "https://sagopa-api.shuttleapp.rs/get/songs"

Response:

[
    {
        "album_id": 1,
        "name": "Halen",
        "id": 1
    },
    ...
]

Contributing?

You want to contribute? You're awesome! Well, if you want to contribute to the source code, you can explore the code, open issues, create PRs, whatever you want. If you want to contribute to the service by adding quotes, which I would really appreciate, the only thing you need to do is to listen to more, go to Sagopa API, and enter your quotes! Yep, that's pretty much all.

License

Of course, this project is MIT licensed. Use it as you wish.

Credits

Final Words

Currently, the API doesn't have so many quotes, I will add as I listen to more--if you want to make this process faster, why not you add some that you like? Thanks for visiting!

sagopa-api's People

Contributors

yunusey avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.