{"openapi":"3.0.0","info":{"version":"0.0.1","title":"37callアプリAPI"},"servers":[{"url":"http://localhost:3000"}],"paths":{"/api/artists/list":{"get":{"summary":"トップページ表示するアーティストリストを取得","operationId":"getArtistLists","tags":["artist"],"responses":{"200":{"description":"取得成功","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"success"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ArtistList"}}}}}}}}}}},"components":{"schemas":{"ArtistList":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"status":{"type":"string","enum":["draft","published"]},"priority":{"type":"integer"},"listable_id":{"type":"integer","format":"int64"},"listable_type":{"type":"string"},"listable":{"oneOf":[{"$ref":"#/components/schemas/ArtistGroup"},{"$ref":"#/components/schemas/Artist"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"Artist":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"artist_group_id":{"type":"integer","format":"int64"},"user_id":{"type":"integer","format":"int64"},"name":{"type":"string"},"price":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ArtistGroup":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"Error":{"type":"object","properties":{"status":{"type":"string"},"message":{"type":"string"}}}}}}