THIS PROJECT IS NOT AFFILIATED WITH SAGOPA KAJMER! IT IS A FAN WORK.
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!
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.
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
curl -X GET "https://sagopa-api.shuttleapp.rs/get/random/quote"
Response:
{
"song_id": 2,
"quote": "...",
"id": 3
}
# Get all quotes
curl -X GET "https://sagopa-api.shuttleapp.rs/get/quote"
Response:
[
{
"song_id": 2,
"quote": "...",
"id": 3
},
...
]
# 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
curl -X GET "https://sagopa-api.shuttleapp.rs/get/songs"
Response:
[
{
"album_id": 1,
"name": "Halen",
"id": 1
},
...
]
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.
Of course, this project is MIT licensed. Use it as you wish.
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!