{"openapi":"3.0.0","info":{"description":"5GチャンネルAPI \nコンテンツ登録・更新・削除\n","version":"1.0.0","title":"5GチャンネルAPI"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/able_torige/5GApp_API/1.0.0"},{"description":"API","url":"https://localhost/v1"}],"tags":[{"name":"content","description":"Operations about Content"}],"security":[{"api_key":[]}],"paths":{"/content":{"post":{"tags":["content"],"summary":"コンテンツ情報を追加する","description":"コンテンツ情報を追加する.","operationId":"addContent","responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Content_response"}}}},"400":{"description":"Invalid request body supplied"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Content"}}},"description":"Created content object","required":true}}},"/content/{content_id}":{"get":{"tags":["content"],"summary":"コンテンツIDよりコンテンツ情報を取得する","operationId":"getContent","parameters":[{"name":"content_id","in":"path","description":"","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Get_Content_response"}}}},"400":{"description":"Invalid content_id supplied"},"404":{"description":"Content not found"}}},"put":{"tags":["content"],"summary":"コンテンツ情報を更新する","description":"指定したコンテンツIDのコンテンツ情報を更新する","operationId":"updateContent","parameters":[{"name":"content_id","in":"path","description":"","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Content_response"}}}},"400":{"description":"Invalid request body supplied"},"404":{"description":"Content not found"}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Content"}}},"description":"Updated Content object","required":true}},"delete":{"tags":["content"],"summary":"コンテンツを削除する","description":"指定したコンテンツIDのコンテンツ情報を削除する","operationId":"deleteContent","parameters":[{"name":"content_id","in":"path","description":"削除するコンテンツID","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Content_response"}}}},"400":{"description":"Invalid content_id supplied"},"404":{"description":"Content not found"}}}}},"components":{"schemas":{"Content":{"type":"object","required":["name","start_publish_date","end_publish_date","player_id","video_contents_id"],"properties":{"id":{"type":"integer","format":"int64","description":"ID:自動付番","example":"653"},"name":{"type":"string","description":"コンテンツ名","example":"NO KICKS NO YAMAUCHI #12 【珠玉のDUNK LOW編】"},"description":{"type":"string","description":"動画紹介文","example":"スニーカー大好きな、かまいたち山内が特にかわいがっているスニーカーを紹介し、その愛をとことん語りつくす「スニーカー特化型番組」"},"copyright":{"type":"string","description":"コピーライト","example":""},"provider":{"type":"string","description":"提供元","example":"SACRA MUSIC"},"enable":{"type":"integer","description":"有効(0:無効,1:有効)","example":"1"},"other_contents":{"type":"integer","description":"外部コンテンツ(0:いいえ,1:外部コンテンツ)","example":"0"},"start_publish_date":{"type":"string","format":"date-time","description":"公開開始日"},"end_publish_date":{"type":"string","format":"date-time","description":"公開終了日"},"relation_1":{"type":"string","description":"関連動画1 (ver.2廃止)"},"relation_2":{"type":"string","description":"関連動画2(ver.2廃止)"},"v_thumbnail":{"type":"string","description":"縦型サムネイル(URL)"},"h_thumbnail":{"type":"string","description":"横型サムネイル(URL)"},"introduction_icon":{"type":"string","description":"チャンネル画面外部遷移アイコン"},"new_arrival_thumbnail":{"type":"string","description":"新着サムネイル(URL)"},"pr_top_background":{"type":"string","description":"チャンネル画面上背景(URL)"},"pr_bottom_background":{"type":"string","description":"チャンネル画面下背景(URL)"},"top_background":{"type":"string","description":"HOME画面TOP背景(URL)"},"external_url":{"type":"string","description":"個別再生ページURL"},"external_words":{"type":"string","description":"個別再生ページ文言"},"external_need_login":{"type":"integer","description":"個別再生ページauID認証(1:必要/0:不要)"},"external_show":{"type":"string","description":"外部遷移(0:一般コンテンツ,1:外部遷移先コンテンツ)"},"introduction_url":{"type":"string","description":"媒体紹介・作品まとめページURL"},"introduction_words":{"type":"string","description":"媒体紹介・作品まとめページ文言"},"introduction_need_login":{"type":"integer","description":"媒体紹介・作品まとめページau ID認証"},"introduction_show":{"type":"string","description":"媒体紹介・作品まとめページ外部遷移(方法)"},"player_id":{"type":"integer","description":"表示方法(1: 2D動画(KKS) 10: マルチアングル(2DA), 11: マルチアングル(2DL), 12: マルチアングル(Swipe)"},"is_vertical":{"type":"integer","description":"縦型動画(0:横型,1:縦型)"},"video_contents_id":{"type":"string","description":"ビデオ識別ID"},"video_thumbnail_seeking_url":{"type":"string","description":"ビデオサムネイルURL"},"video_dash_url":{"type":"string","description":"ビデオDASHURL"},"video_dash_resolutions":{"type":"string","description":"ビデオDASH解像度"},"video_hls_url":{"type":"string","description":"ビデオHLSURL"},"video_hls_resolutions":{"type":"string","description":"ビデオHLS解像度"},"video_duration":{"type":"string","example":"23:59:59","pattern":"^(2[0-3]|[01][0-9]):([0-5][0-9]):([0-5][0-9])$","description":"ビデオ再生時間"},"is_needlogin":{"type":"integer","example":1,"description":"ログイン必要"}},"xml":{"name":"Content"}},"Content_response":{"type":"object","required":["status_code"],"properties":{"status_code":{"type":"integer","description":"通常0, エラー時は<>0でmessageに理由を記載","example":"0"},"message":{"type":"string","description":"status_code<>0の時、エラーメッセージを記載","example":"(status_code<>0の時の例)該当コンテンツは削除されています"},"content_id":{"type":"integer","description":"成功したときのコンテンツID","example":"1234"}}},"Get_Content_response":{"type":"object","required":["status_code"],"properties":{"status_code":{"type":"integer","description":"通常0, エラー時は<>0でmessageに理由を記載","example":"0"},"message":{"type":"string","description":"status_code<>0の時、エラーメッセージを記載","example":"(status_code<>0の時の例)該当コンテンツは削除されています"},"content":{"$ref":"#/components/schemas/Content"}}}},"securitySchemes":{"api_key":{"type":"apiKey","name":"X_5G_CMS","in":"header"}}}}