Загрузка...

Demo | Amplify Fusion Hello GraphQL

For more information see the Axway Amplify Fusion documentation, https://docs.axway.com/bundle/amplify_integration/page/docs/index.html

This video demonstrates how to use Axway Amplify Fusion’s GraphQL connector to build and test a GraphQL integration. You'll see a full walkthrough — creating a test integration and setting up the connector, configuring a query, running tests, and interpreting the API response.

What you'll learn in this video:
🚀 How to configure the GraphQL connector in Amplify Fusion
🔍 How to build and test a query with input/output fields and pagination
📊 How to interpret API responses and monitor the integration’s behavior

This video is part of a series showcasing how easy it is to build integrations with minimal setup inside Axway Amplify Fusion. Watch the full series here https://www.youtube.com/playlist?list=PLSlCpG9zsECp6eGdEr4rH2Ig86b0g14U-

[Full video transcript]

Hi. In this video, we'll take a look at Axway’s Amplify Fusions GraphQL connector, and we will make a GraphQL call to the “SpaceX” GraphQL API. So you can go to this URL. It's on “apollographql.com”. And you can read about it. And you can run the “Explorer” and make some calls yourself, but I'm going to go into our project our “GettingStarted” project and let's create a test integration. “Hello GraphQL”

All right. We'll do... typically do, we run a test integration with a scheduler. So we can use the test button to trigger it. We're not going to activate this. So this is okay. And let's add a GraphQL component. And you'll see there's two types of calls you can make a “Query” or “Mutation”, flick a reader or an update. We'll do a query. Do something simple.

And let's, “Get SpaceX Capsules” And let's expand the configuration panel here. And we'll need a connector which we don't have. And that's where the “Explorer” is going to help. Or at least the website's going to help because all the calls are made against this URL. So I'll copy that and let's add a connector “SpaceX GraphQL”. And the service route is the URL I just copied. And there's no authentication. But if you had any, you would configure it here. And let's do an update and let's run a quick test and I should pass. Okay.

Click refresh and grab our connector. So we also need a plug. We've seen plugs before when we did the database connector.

So the GraphQL connector requires a plug as well. And, just so you know, this is the call I'm going to be making. This isn’t postman, but I'm going to get... I'll get more information, but I'm going to get capsules. I'm doing a query of capsules. So let's add a plug and let's call this “SpaceX Get Capsules”.

Space capsules, that is. And we click the “Configure” button, we select our connector and we want to do a query. And then we can see all the services that are available.

And “capsules” is one of them. And you can see there's some input fields and some output fields. These are related to pagination. And let's just do a limit of the first, I don't know, ten.

Well, let's use a limit when I call it I’ll specify tab. And let's grab “id”, “landings”, “original_launch” “reuse_count”, “status”, and “type”, and we don't need the rest of this let’s just grab some information. And let's save. And we can also test this real quickly.

Plugs can be tested, and I only have one input. So let's say “5”. Let's test it. And then you can see, the five capsules and some pagination information here below.

All right. Let's close this. Let's refresh and let's see how the component acts. “capsules”, there's our “limit” and we can see what our output is the “success”, “statusCode”, “responseHeaders”. And here is the response.

There's my data. Okay. Let's hard code a limit of “100”. Let's save that and let's run by clicking the “Test” button. And I'm in the Monitor and I'm looking at my transaction. There's the scheduler. There is my GraphQL query component.

And if I click on that I should see my response. There's a “200”. And if I look at my data I have no errors, there are capsules. And I guess there was only 25 and I asked for 100. Maybe it's a hard code. Maybe it's a limit from the back end to only get 25 at a time or there are only 25 capsules because I did put a limit of 100.

And there you go. So in this example, we took a look, Axway Amplify Fusion's GraphQL connector, and we made a call to the “SpaceX” GraphQL API.

Thank you.

#AxwayAmplify #GraphQLIntegration #APITutorial

Видео Demo | Amplify Fusion Hello GraphQL канала Axway Amplify
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять