Find Jobs
Hire Freelancers

Create new API endpoint for index of all media

$10-30 USD

已关闭
已发布大约 5 年前

$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 年前

想赚点钱吗?

在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
会员自2月 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)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。