Create new API endpoint for index of all media -- 2

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.

Beceriler: API, Javascript, MySQL

Daha fazlasını gör: create solidworks api, create infowindow api, flash create animation api, jira rest api create issue, wordpress rest api tutorial, json api, jira rest api example, json api url, json api filter parameter, wordpress rest api endpoints, wordpress rest api authentication, create magento api, create xls api, create twitter api website, create twitter api, create map api sidebar categories, create mysql api, wordpress create template api, magento create custom api, create dodirectpayment api operation java

İşveren Hakkında:
( 170 değerlendirme ) ploiesti, Romania

Proje NO: #18719122



Hello Sir . i am web developer. I can develop this api. I can show you my previous api that i developed for payment gateway. Thanks.

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% USD
(0 Değerlendirme)

Bu iş için 7 freelancer ortalamada $24 teklif veriyor


Hello Sir, I am a full stack developer from Poland. I am interested to create new API endpoint for index of all media. I have 6+ years of experience in webdesign/development and Mobile Development (Android a Daha Fazla

$20 USD in 2 gün içinde
(13 Değerlendirme)

Hi, I am expert in API and MySQL with more than 9 years of experience. I can complete your task perfectly Kindly check some of my recent work - [login to view URL] [login to view URL] http://v Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(7 Değerlendirme)

i have four year experience in angualrjs nodejs python rest api , cakephp, laravel, mysql javascript, I have developed applications for the following industries: + Social Networking + Food delivery + Taxi Applications, Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

I worked on a lot of similar projects. I am available immediately. We can talk about the details if you want

$35 USD in 2 gün içinde
(0 Değerlendirme)

Hi, I'm a developer that it is looking to expand his portfolio with external clients. I have worked over 5 years in the videogame industry and mobile app development so I'm not a newbie. In most of my projects, I use A Daha Fazla

$20 USD in 3 gün içinde
(0 Değerlendirme)

Hello! My name's Nathan. I'm a Web & Software developer, specifying in PHP and Javascript, so this should be no problem for me! I'd love to take this job and I can deliver within 24h. If you'd like I can provide you Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(1 Yorum)