heycatch / goshikimori

Реализация API v1/v2 и GraphQL для shikimori.one
https://shikimori.one/
MIT License
4 stars 1 forks source link

GET /api/animes/:id/roles #6

Closed heycatch closed 2 years ago

heycatch commented 2 years ago
[
  {
    "roles": [
      "Main"
    ],
    "roles_russian": [
      "Main"
    ],
    "character": {
      "id": 1,
      "name": "character_1",
      "russian": "персонаж_1",
      "image": {
        "original": "/assets/globals/missing_original.jpg",
        "preview": "/assets/globals/missing_preview.jpg",
        "x96": "/assets/globals/missing_x96.jpg",
        "x48": "/assets/globals/missing_x48.jpg"
      },
      "url": "/characters/1-character-1"
    },
    "person": null
  }
]

Instead of Main on curl the heap of roles is issued. In golang we only get the last role. Find a way to pull the right positions from the Main.

heycatch commented 2 years ago

same goes for manga and ranobe

heycatch commented 2 years ago

duplicate