by kelseyfrog · 4y ago · 0 comments
bookHotelUri = listHotelResponse.data.urls[4];
Or listHotelResponse .data.urls.find(u=>u.action===‘book’).url
? listHotelResponse.data.urls.find(u=>u.rel===‘booking’).url
Web linking is defined in https://www.rfc-editor.org/rfc/rfc8288.html and that's the basis for using rel as well as a host of other attributes.