{ "info": { "_postman_id": "7ae3acae-f6e6-41ec-9ca8-193966dd169a", "name": "Bottle API Backend", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Auth", "item": [ { "name": "Login", "event": [ { "listen": "test", "script": { "exec": [ "var data = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"token\", data.data.accessToken);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "", "type": "text", "value": "", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"code\": \"1111\",\n \"token\": \"2PoXDHCUk5kvFt4mMk7bZ0hQa42KvwpGQvIui9AtbapCUqzrAxHBrONx7LA324rY\",\n \"deviceId\": \"ios123\",\n \"deviceType\": \"ios\"\n}" }, "url": { "raw": "{{hostUrl}}/api/auth/login", "host": [ "{{hostUrl}}" ], "path": [ "api", "auth", "login" ] } }, "response": [] }, { "name": "Registration", "event": [ { "listen": "test", "script": { "exec": [ "var data = JSON.parse(responseBody);", "postman.setEnvironmentVariable(\"token\", data.data.accessToken);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer 1234", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"smsCode\": \"1111\",\n \"smsSessionToken\": \"rtfd108nztIMYszFv51AmdKXbpkrYRObD5ob7bnhxvWotaAGorDFweZXcYIBn4JM\",\n \"deviceId\": \"diam123\",\n \"deviceType\": \"ios\",\n \"name\": \"Dima TEST NEW\",\n \"nickname\": \"dima_test_new\",\n \"email\": \"dima_test_new@gmail.com\",\n \"birth_date\": \"1993-09-22\",\n \"timezone\": \"Europe/Moscow\",\n \"lang\": \"RU\",\n \"gender\": \"male\",\n \"country_id\": 1,\n \"bottle_languages\": [\"RU\", \"EN\"]\n}" }, "url": { "raw": "{{hostUrl}}/api/auth/registration", "host": [ "{{hostUrl}}" ], "path": [ "api", "auth", "registration" ] }, "description": "куаукаукаукаук" }, "response": [] }, { "name": "Registration [formData]", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" } ], "body": { "mode": "formdata", "formdata": [ { "key": "smsCode", "value": "1111", "type": "text" }, { "key": "smsSessionToken", "value": "XBJW6XIErqT60oAkd3xvHNWa40APUHaHvklngux0SIEpTsnZ7pyhD3K8yu60k0Dm", "type": "text" }, { "key": "name", "value": "test11" }, { "key": "email", "value": "test111@gmail.com" }, { "key": "birth_date", "value": "1993-09-22" }, { "key": "gender", "value": "male" }, { "key": "lang", "value": "RU" }, { "key": "timezone", "value": "Europe/Moscow" }, { "key": "country_id", "value": "1" }, { "key": "uploadImage", "type": "file", "src": "/Users/dmitry/Pictures/gory_zima_sneg_118389_3840x2160.jpg" }, { "key": "bottle_languages[]", "value": "RU", "type": "text" }, { "key": "bottle_languages[]", "value": "FR", "type": "text" }, { "key": "deviceId", "value": "123", "type": "text" }, { "key": "deviceType", "value": "ios", "type": "text" }, { "key": "nickname", "value": "test111", "type": "text" } ] }, "url": { "raw": "{{hostUrl}}/api/auth/registration", "host": [ "{{hostUrl}}" ], "path": [ "api", "auth", "registration" ] } }, "response": [] }, { "name": "Logout", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{hostUrl}}/api/auth/logout", "host": [ "{{hostUrl}}" ], "path": [ "api", "auth", "logout" ] } }, "response": [] }, { "name": "Send sms code", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json;charset=utf-8" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Content-Language", "value": "RU", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"phone\": \"+7 (965) 603-69-53\",\n \"type\": \"registration\"\n}" }, "url": { "raw": "{{hostUrl}}/api/auth/send-sms-code", "host": [ "{{hostUrl}}" ], "path": [ "api", "auth", "send-sms-code" ] } }, "response": [] }, { "name": "Validation sms code", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"smsSessionToken\": \"aEZJ1cZh4iJgIt8pL3Gdo93NlW3vrH0aIs2q9MURJEc9znWGyPihD08vja396Oc3\",\n \"smsCode\": \"1111\"\n}" }, "url": { "raw": "{{hostUrl}}/api/auth/validation-sms-code", "host": [ "{{hostUrl}}" ], "path": [ "api", "auth", "validation-sms-code" ] } }, "response": [] } ] }, { "name": "User", "item": [ { "name": "Info", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{hostUrl}}/api/user/info", "host": [ "{{hostUrl}}" ], "path": [ "api", "user", "info" ] } }, "response": [] }, { "name": "Update", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" }, { "key": "Content-Language", "value": "EN", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Dimas new \",\n \"email\": \"dima_test@gmail.com\",\n \"nickname\": \"dima_test\",\n \"birth_date\": \"1993-09-22\",\n \"timezone\": \"Europe/Moscow\",\n \"lang\": \"RU\",\n \"gender\": \"male\",\n \"country_id\": 1,\n \"bottle_languages\": [\"EN\", \"RU\"]\n}" }, "url": { "raw": "{{hostUrl}}/api/user/update", "host": [ "{{hostUrl}}" ], "path": [ "api", "user", "update" ] } }, "response": [] }, { "name": "Update [formData]", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" }, { "key": "Content-Language", "value": "en", "type": "text" } ], "body": { "mode": "formdata", "formdata": [ { "key": "name", "value": "Dimas" }, { "key": "nickname", "value": "dima_test", "type": "text" }, { "key": "email", "value": "dima_test@gmail.com" }, { "key": "birth_date", "value": "1993-09-22" }, { "key": "gender", "value": "male" }, { "key": "lang", "value": "RU" }, { "key": "timezone", "value": "Europe/Moscow" }, { "key": "country_id", "value": "1" }, { "key": "uploadImage", "type": "file", "src": "/Users/dmitry/Pictures/api-doc.json" }, { "key": "bottle_languages[]", "value": "RU", "type": "text" }, { "key": "bottle_languages[]", "value": "FR", "type": "text" } ] }, "url": { "raw": "{{hostUrl}}/api/user/update", "host": [ "{{hostUrl}}" ], "path": [ "api", "user", "update" ] } }, "response": [] }, { "name": "Notification settings", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" }, { "key": "Content-Language", "value": "EN", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"newMessage\": true,\n \"timerUpdate\": true,\n \"bottleOpen\": true,\n \"toComplaints\": true,\n \"offSound\": false\n}" }, "url": { "raw": "{{hostUrl}}/api/user/notification-settings", "host": [ "{{hostUrl}}" ], "path": [ "api", "user", "notification-settings" ] } }, "response": [] }, { "name": "Save push token", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" }, { "key": "Content-Language", "value": "EN", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"122-123\"\n}" }, "url": { "raw": "{{hostUrl}}/api/user/save-push-token", "host": [ "{{hostUrl}}" ], "path": [ "api", "user", "save-push-token" ] } }, "response": [] }, { "name": "Send test user", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" }, { "key": "Content-Language", "value": "EN", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"token\": \"122-123\"\n}" }, "url": { "raw": "{{hostUrl}}/api/user/send-test-push", "host": [ "{{hostUrl}}" ], "path": [ "api", "user", "send-test-push" ] } }, "response": [] } ] }, { "name": "Complains", "item": [ { "name": "Chat add", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"toUserId\": 2,\n \"reason\": \"spam\",\n \"message\": null\n}" }, "url": { "raw": "{{hostUrl}}/api/complaints/chat/23/add", "host": [ "{{hostUrl}}" ], "path": [ "api", "complaints", "chat", "23", "add" ] } }, "response": [] }, { "name": "User", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"toUserId\": 5,\n \"reason\": \"spam\",\n \"message\": null\n}" }, "url": { "raw": "{{hostUrl}}/api/complaints/user/add", "host": [ "{{hostUrl}}" ], "path": [ "api", "complaints", "user", "add" ] } }, "response": [] } ] }, { "name": "Geo", "item": [ { "name": "Search country", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{hostUrl}}/api/geo/search-countries?query=Taiwan", "host": [ "{{hostUrl}}" ], "path": [ "api", "geo", "search-countries" ], "query": [ { "key": "query", "value": "Taiwan" } ] } }, "response": [] } ] }, { "name": "Language", "item": [ { "name": "app langs", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{hostUrl}}/api/language/app-languages-list", "host": [ "{{hostUrl}}" ], "path": [ "api", "language", "app-languages-list" ] } }, "response": [] }, { "name": "app langs messages", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{hostUrl}}/api/language/app-languages-messages/RU", "host": [ "{{hostUrl}}" ], "path": [ "api", "language", "app-languages-messages", "RU" ] } }, "response": [] }, { "name": "add langs argreements", "request": { "method": "GET", "header": [], "url": { "raw": "{{hostUrl}}/api/language/app-languages-agreements/EN", "host": [ "{{hostUrl}}" ], "path": [ "api", "language", "app-languages-agreements", "EN" ] } }, "response": [] }, { "name": "add langs privacy policy", "request": { "method": "GET", "header": [], "url": { "raw": "{{hostUrl}}/api/language/app-languages-privacy-policy/RU", "host": [ "{{hostUrl}}" ], "path": [ "api", "language", "app-languages-privacy-policy", "RU" ] } }, "response": [] } ] }, { "name": "Chats", "item": [ { "name": "Add message in Chat", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" } ], "body": { "mode": "raw", "raw": "{\n \"body\": \"11\",\n \"quoteMessageId\": null\n}" }, "url": { "raw": "{{hostUrl}}/api/chats/add-message/41", "host": [ "{{hostUrl}}" ], "path": [ "api", "chats", "add-message", "41" ] } }, "response": [] }, { "name": "Add message in Chat [formData]", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" } ], "body": { "mode": "formdata", "formdata": [ { "key": "body", "value": "Hello ?", "type": "text" }, { "key": "quoteMessageId", "value": "75", "type": "text", "disabled": true }, { "key": "attachImage", "type": "file", "src": "/Users/dmitry/Pictures/oN03RKdu3eU.jpg" } ] }, "url": { "raw": "{{hostUrl}}/api/chats/add-message/41", "host": [ "{{hostUrl}}" ], "path": [ "api", "chats", "add-message", "41" ] } }, "response": [] }, { "name": "List", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{hostUrl}}/api/chats/list?offset=0&limit=100", "host": [ "{{hostUrl}}" ], "path": [ "api", "chats", "list" ], "query": [ { "key": "offset", "value": "0" }, { "key": "limit", "value": "100" } ] } }, "response": [] }, { "name": "Chat details", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{hostUrl}}/api/chats/chat-details/1", "host": [ "{{hostUrl}}" ], "path": [ "api", "chats", "chat-details", "1" ] }, "description": "Пагинация на основе (offset_id)\noffset_id и add_offset как offsetFromID(offset_id) + add_offset, где offsetFromID(offset_id)- количество результатов от начала списка до результата с идентификатором offset_id включительно.\n\nПримеры использования:\n\nЗагрузка 20 сообщений старше сообщения с идентификатором offset_id:\n({offset_id: offset_id, add_offset: 0, limit: 20})\n\nЗагрузка 20 сообщений, новее сообщения с ID offset_id:\n({offset_id: offset_id, add_offset: -20, ограничение: 20})\n\n" }, "response": [] }, { "name": "Chat users", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{hostUrl}}/api/chats/chat-users/1", "host": [ "{{hostUrl}}" ], "path": [ "api", "chats", "chat-users", "1" ] }, "description": "Пагинация на основе (offset_id)\noffset_id и add_offset как offsetFromID(offset_id) + add_offset, где offsetFromID(offset_id)- количество результатов от начала списка до результата с идентификатором offset_id включительно.\n\nПримеры использования:\n\nЗагрузка 20 сообщений старше сообщения с идентификатором offset_id:\n({offset_id: offset_id, add_offset: 0, limit: 20})\n\nЗагрузка 20 сообщений, новее сообщения с ID offset_id:\n({offset_id: offset_id, add_offset: -20, ограничение: 20})\n\n" }, "response": [] }, { "name": "Chat messages", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{hostUrl}}/api/chats/chat-messages/1?offset_id=10&limit=20&add_offset=0", "host": [ "{{hostUrl}}" ], "path": [ "api", "chats", "chat-messages", "1" ], "query": [ { "key": "offset_id", "value": "10" }, { "key": "limit", "value": "20" }, { "key": "add_offset", "value": "0" } ] }, "description": "Пагинация на основе (offset_id)\noffset_id и add_offset как offsetFromID(offset_id) + add_offset, где offsetFromID(offset_id)- количество результатов от начала списка до результата с идентификатором offset_id включительно.\n\nПримеры использования:\n\nЗагрузка 20 сообщений старше сообщения с идентификатором offset_id:\n({offset_id: offset_id, add_offset: 0, limit: 20})\n\nЗагрузка 20 сообщений, новее сообщения с ID offset_id:\n({offset_id: offset_id, add_offset: -20, ограничение: 20})\n\n" }, "response": [] }, { "name": "Leave", "request": { "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" }, { "key": "Accept", "type": "text", "value": "application/json" }, { "key": "Authorization", "type": "text", "value": "Bearer {{token}}" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{hostUrl}}/api/chats/leave/2", "host": [ "{{hostUrl}}" ], "path": [ "api", "chats", "leave", "2" ] }, "description": "Пагинация на основе (offset_id)\noffset_id и add_offset как offsetFromID(offset_id) + add_offset, где offsetFromID(offset_id)- количество результатов от начала списка до результата с идентификатором offset_id включительно.\n\nПримеры использования:\n\nЗагрузка 20 сообщений старше сообщения с идентификатором offset_id:\n({offset_id: offset_id, add_offset: 0, limit: 20})\n\nЗагрузка 20 сообщений, новее сообщения с ID offset_id:\n({offset_id: offset_id, add_offset: -20, ограничение: 20})\n\n" }, "response": [] } ] }, { "name": "Bottle", "item": [ { "name": "Brand", "item": [ { "name": "Accept", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"bottleID\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{hostUrl}}/api/bottle/brand/accepted", "host": [ "{{hostUrl}}" ], "path": [ "api", "bottle", "brand", "accepted" ] } }, "response": [] }, { "name": "Link", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"bottleID\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{hostUrl}}/api/bottle/brand/link", "host": [ "{{hostUrl}}" ], "path": [ "api", "bottle", "brand", "link" ] } }, "response": [] } ] }, { "name": "Add", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"smile_title\": \"smile string\",\n \"message\": \"message string\",\n \"is_random\": false,\n \"type\": \"default\",\n \"user_count\": 1,\n \"gender\": \"female\",\n \"country_id\": 1,\n \"min_age\": 20,\n \"max_age\": 40\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{hostUrl}}/api/bottle/add", "host": [ "{{hostUrl}}" ], "path": [ "api", "bottle", "add" ] } }, "response": [] }, { "name": "Add [formData]", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "formdata", "formdata": [ { "key": "country_id", "value": "1", "type": "text" }, { "key": "uploadImage", "type": "file", "src": "/Users/dmitry/Pictures/norvegiya-5120x2880-lofotenskie-ostrova-16595.jpg" }, { "key": "min_age", "value": "20", "type": "text" }, { "key": "max_age", "value": "40", "type": "text" }, { "key": "smile_title", "value": "smile string", "type": "text" }, { "key": "message", "value": "message string", "type": "text" }, { "key": "gender", "value": "female", "type": "text" }, { "key": "type", "value": "default", "type": "text" }, { "key": "is_random", "value": "0", "type": "text" }, { "key": "user_count", "value": "1", "type": "text" } ] }, "url": { "raw": "{{hostUrl}}/api/bottle/add", "host": [ "{{hostUrl}}" ], "path": [ "api", "bottle", "add" ] } }, "response": [] }, { "name": "Details", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{hostUrl}}/api/bottle/details/1", "host": [ "{{hostUrl}}" ], "path": [ "api", "bottle", "details", "1" ] } }, "response": [] }, { "name": "List for user", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{hostUrl}}/api/bottle/list-for-user", "host": [ "{{hostUrl}}" ], "path": [ "api", "bottle", "list-for-user" ] } }, "response": [] }, { "name": "Reset assigned bottles", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"bottleID\":1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{hostUrl}}/api/bottle/reset-assigned-bottles", "host": [ "{{hostUrl}}" ], "path": [ "api", "bottle", "reset-assigned-bottles" ] } }, "response": [] }, { "name": "Decline", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"bottleID\": 6\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{hostUrl}}/api/bottle/declined", "host": [ "{{hostUrl}}" ], "path": [ "api", "bottle", "declined" ] } }, "response": [] }, { "name": "Accept", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"bottleID\": 2,\n \"setColor\": \"#ff0000\" \n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{hostUrl}}/api/bottle/accepted", "host": [ "{{hostUrl}}" ], "path": [ "api", "bottle", "accepted" ] } }, "response": [] }, { "name": "Get add lock info", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{token}}", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"smile_title\": \"smile string\",\n \"message\": \"message string\",\n \"is_random\": false,\n \"type\": \"default\",\n \"user_count\": 1,\n \"gender\": \"female\",\n \"country_id\": 1,\n \"min_age\": 20,\n \"max_age\": 40\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{hostUrl}}/api/bottle/get-add-lock-info", "host": [ "{{hostUrl}}" ], "path": [ "api", "bottle", "get-add-lock-info" ] } }, "response": [] } ] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "key": "token", "value": "" }, { "key": "hostUrl", "value": "" } ] }