Last active
January 30, 2020 11:23
-
-
Save viartemev/4262eb9251718dba109431ab7b6fe6dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.1 | |
servers: | |
- url: 'https://mobile.sport24.ru/v1' | |
info: | |
description: >- | |
Sport24 Mobile API | |
version: 1.0.0 | |
title: Sport24 Mobile API | |
contact: | |
name: Sport24 Tech | |
url: 'https://sport24.ru' | |
email: vjatcheslav.artemyev@sport24.ru | |
tags: | |
- name: metadata | |
description: Service info | |
paths: | |
/version: | |
get: | |
tags: | |
- metadata | |
summary: 'A version of application' | |
responses: | |
'200': | |
description: Returns a version | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Version' | |
/playlists: | |
get: | |
tags: | |
- playlist | |
summary: List of all playlists | |
responses: | |
'200': | |
description: Returns all playlists | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/Playlists" | |
components: | |
schemas: | |
Version: | |
type: object | |
properties: | |
version: | |
type: string | |
example: v1.1.1 | |
Playlist: | |
type: object | |
properties: | |
id: | |
type: string | |
example: 123e4567-e89b-12d3-a456-426655440000 | |
name: | |
type: string | |
example: NHL | |
icon: | |
type: string | |
example: http://www.grafile.com/wp-content/uploads/2019/06/Pr_NHL.png | |
order: | |
type: integer | |
format: int32 | |
example: 0 | |
PlaylistItems: | |
type: array | |
items: | |
$ref: "#/components/schemas/Playlist" | |
Playlists: | |
type: object | |
properties: | |
items: | |
$ref: "#/components/schemas/PlaylistItems" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment