GitHub user yassroo81-debug added a comment to the discussion: Wanted: who's 
using dubbo

// مثال لكيفية طلب بيانات رحلة من وسيط (API)
app.get('/search-flights', async (req, res) => {
    const { origin, destination, date } = req.query;
    
    // استدعاء بيانات من Amadeus أو Duffel
    const response = await 
fetch(`https://api.amadeus.com/v2/shopping/flight-offers?originLocationCode=${origin}&destinationLocationCode=${destination}&departureDate=${date}`);
    const data = await response.json();
    
    res.json(data); // إرسال النتائج لواجهة موقعك
});

GitHub link: 
https://github.com/apache/dubbo/discussions/13842#discussioncomment-15561359

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to