Last active
July 25, 2019 10:05
-
-
Save rema7/0f632d26df3f49605884ba047070a9d0 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
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