GET https://api.i-as.dev/api/tebakgambar
The API returns a JSON array containing a list of images with their corresponding answers.
[
{
"id": "slug",
"image": "url_img",
"jawaban": "string"
},
// More data
]
POST https://api.i-as.dev/api/tebakgambar/play/{id}
The request body should contain a JSON object with the following structure:
{
"jawaban_pemain": "string"
}
{
"id": "slug",
"jawaban": "string",
"jawaban_pemain": "string",
"status": true,
"pesan": "string"
}
{
"id": "slug",
"jawaban": "string",
"jawaban_pemain": "string",
"status": false,
"pesan": "string"
}
true
) or incorrect (false
).POST https://api.i-as.dev/api/tebakgambar/play/slug
Body:
{
"jawaban_pemain": "correct answer"
}
{
"id": "slug",
"jawaban": "cat",
"jawaban_pemain": "cat",
"status": true,
"pesan": "Correct answer!"
}
POST https://api.i-as.dev/api/tebakgambar/play/slug
Body:
{
"jawaban_pemain": "wrong answer"
}
{
"id": "slug",
"jawaban": "cat",
"jawaban_pemain": "dog",
"status": false,
"pesan": "Incorrect answer, try again!"
}
This API allows users to guess answers for image-based puzzles. You can retrieve a list of puzzles, submit answers, and get feedback on whether the answer was correct or incorrect.