Find Jobs
Hire Freelancers

Create new API endpoint for index of all media

$10-30 USD

Закрито
Опублікований about 5 years ago

$10-30 USD

Оплачується при отриманні
Create new API endpoint for index of all media The route should be: GET /connect-app/contact-media The returned payload should be a list of documents with a resident_id, message_id, and content_type fields. These three fields are what is required to call the recently created route to get media. To get this information, use the email in the email header to search for all residents with a contact that has that email address. Then use the “media_messages_by_resident_id” view to get the resident_id, message_id, and content_type information for each media message. Finally, return the list of documents retrieved from the view. Make sure that the final format of the payload looks like this: [ { "content_type": "image/jpeg", "message_id": "5c6cc6ba540431014f2d4dd747e98099", "resident_id": "008de87b-dd86-0737-93ec-96db1e2e2127" }, { "content_type": "image/jpeg", "message_id": "6e891a924c95cc71be97c099b654b142", "resident_id": "008de87b-dd86-0737-93ec-96db1e2e2127" }, { "content_type": "video/3gpp", "message_id": "e6d9a1e5d9933d8c566e6335d475788c", "resident_id": "02d2db5a-1a4d-2245-2018-be18d4614891" } ] Here is an example of the view request in QA. The authorization is just the olympusqa credentials using basic auth. curl -X GET \ '[login to view URL][%2202d2db5a-1a4d-2245-2018-be18d4614891%22,%22008de87b-dd86-0737-93ec-96db1e2e2127%22]' \ -H 'Authorization: Basic b2x5bXB1c3FhOiR6Kko3UVpXQDM4NkJxOEJrY3I3' The SyncGatewayService in Connect-API already has a getView function that you can use. [login to view URL] is an example of calling a view. You will need to pass the “keys” (plural) query parameter instead of “key” as this example uses. Set the “keys” parameter to the list of resident IDs.
ID проекту: 18707482

Про проект

2 пропозицій(-ї)
Дистанційний проект
Активність 5 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
2 фрілансерів(-и) готові виконати цю роботу у середньому за $23 USD
Аватарка користувача
Hello! I'm interesting your project very well and full time developer. I have great skill in design and php. My price and period is negotiable. Employee’s satisfy is my happiness ! Let's go ahead with me ! My Skills: Responsive Website design PHP, CakePHP, Laravel, Codeigniter, Symphony, Wordpress HTML/CSS/JavaScript/jQuery/Bootstrap/AngularJS/Vuejs/SASS MySQL/MSSQL/PostgreSQL/SQLite/Oracle
$25 USD за 1 день
4,5 (82 відгуки(-ів))
6,4
6,4
Аватарка користувача
I have worked as API test automation engineer, and i have sound knowledge of API testing. And i can deliver the quality of product.
$20 USD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор ROMANIA
ploiesti, Romania
4,9
170
На сайті з лют. 11, 2013

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.