Reputation: 184
I want to consume the jikanapi api, reviewing the documentation says that with this url I can get an anime by id. and when copying the url in the browser I get the following.
{
"status": 404,
"type": "HttpException",
"message": "Not Found",
"error": null
}
It must be because I didn't pass an ID but I don't really know how to do it. although in the demo you don't pass any id and you get a response.
Upvotes: 1
Views: 225
Reputation: 321
Looks like you are doing a wrong GET request.
I tried the following URLs and all worked:
https://api.jikan.moe/v4/anime --> gives full list
https://api.jikan.moe/v4/anime/{id}/full --> gives full description. change "{id}" to your id example: /v4/anime/1/full
in flutter you can concatinate the url into a single string if you want to apply filters before sending the GET request.
Example:
int myId = 1;
String myURL = "https://api.jikan.moe/v4/anime/${myId}/full";
Upvotes: 2