Skip to content

Instantly share code, notes, and snippets.

@rema7
Last active July 25, 2019 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rema7/0f632d26df3f49605884ba047070a9d0 to your computer and use it in GitHub Desktop.
Save rema7/0f632d26df3f49605884ba047070a9d0 to your computer and use it in GitHub Desktop.
Without auth:
GET localhost:9999/api/languages
[
{
"id": 3,
"code": "ru",
"name": "Russian"
},
{
"id": 4,
"code": "en",
"name": "English"
}
]
with auth:
Headers:
Authorization: {device_token}
Locale: {language_id}
GET localhost:9999/api/offer
{
"text": "Country: Russian Offer: Russian"
}
GET localhost:9999/api/playlists
[
{
"id": 1,
"name": "Демо1"
}
]
GET localhost:9999/api/playlists/1
[
{
"id": 1,
"name": "Металика исполняет Кино",
"description": "Группа металика Кино",
"content_type": "3d-ver",
"vr_type": "180",
"rating": "18",
"source": "youtube",
"is_downloadable": false,
"url": "diRtRhcaUNI",
"thumbnails": {
"small": "https://s3.eu-central-1.amazonaws.com/vrways.world/assets/videos/images/uFR6bu3IOR.jpeg",
"large": "https://s3.eu-central-1.amazonaws.com/vrways.world/assets/videos/images/UdXjJAaODQ.png"
}
}
]
GET localhost:9999/api/device
{
"id": 1,
"device_id": "demo_device1",
"hotel": {
"name": "Marriott",
"location": "Russia",
"dealer": "dealer@vrways.world"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment