![]() ![]() Click Next edit schema and select the Account tab from the left panel from next screen and perform the enable collaboration operation.Please note same client application must use here while applying the policy. Here we will set the authentication policy as Basic Auth because we have applied the same policies into this API at API manger section.Configure URL page should have configured with default selected values and click “ Next:Configure Security” button.Select the Account System API from the below listed API and click Next:Configure URL.Now time to deploy Account System API into Anypoint Datagraph.Both should have same response details data. Let’s validate the GraphQL response and actual API endpoint response. If all good, then we should get the valid response from the API. Write the GraphQL syntax into the middle section of page to fetch the data from the deployed customer API unified schema application.Next page will display GraphQL query language page. Enter the application name and keep rest field as blank and click the Next button.Select 2 nd radio button option from this window and click next.Once deployment done its status changed as Up to date.Now the Customer API is started to deploy on the Anypoint Datagraph.Now click to “ Next:Add to unified schema” button keeping other section as default selected. Press confirm button will display the updated detail here.Select customerId as primary key here and press confirm button.You will see option to define Primary key and Select Default Query method.Click on the “ Enable Collaboration” button. This Page has below yellow highlighted section.Click Customer tab from left yellow highlighted panel. We can make visible/hidden query method here.Anypoint Datagraph is smart enough to populate the details from RAML. Below page displays the schema details populated from the RAML specification.Note:- Please refer the API Manager snippet for the reference in below section. Since we have not applied any policies in API manager so we should select authentication policy as No Auth here and click “ Next preview Schema” button. Please refer Snippet 2 for the reference. Note:- These values populated from the API manager configuration which we set during the API manager configuration. Click “Next Configure Security” button now. Add/Edit API URL section will be enabled with default selected values. ![]() Click “ Confirm Selection ” button with default selected API version and Asset Version. ![]() Select Customer System API from the list and click “Next Configure URL”.This page has displayed all the discoverable API available on exchange. Go to the Anypoint Datagraph page using the main menu from the top left menu.And mentioned APIs below are also published on exchange.Assuming that following API’s deployed on sandbox environment with mentioned endpoint.Here are the steps below for enabling a datagraph endpoint in MuleSoft Customer API response schema has 6 attributes (customerId,Name,Age,phone,email,pincode and address) and they want to send separate response to mobile and web application. Mobile and Web application needs separate response data.Į.g.Here Anypoint Datagraph help us to send the aggregated response to the client application just through configuration only. So basically, developer don’t have to write code for parsing the data from these API’s. Now we wanted to send aggregated response from these API without writing any process/business orchestration layer. Let’s consider we have 3 system APIs(Ledger, Customer and Account API) available on exchange and deployed. ![]() To get the aggregated response from the Multiple APIs.Į.g.GraphQL also allows customer to request limited data they need. With the MuleSoft Anypoint Datagraph, Organizations will be able to utilize capabilities of graphql and reuse multiple APIs into single request. GraphQL was initially developed by facebook and released publicly in year 2015. MuleSoft Anypoint Datagraph is built on the top of GraphQL. Misc, Mulesoft New Offerings anypoint datagraph, Graphql, mulesoft Mulesoft Anypoint Data Graph ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |