In the previous video, we had left off showcasing the Web frontend application, pulling data from the Django based middleware application.
I had shown pulling data from the GraphQL API at http://0.0.0.0:8080/graphql.
The mobile apps perform the same GraphQL queries to get data from the middlware.
The iOS and Android apps make the following API calls:
query BootList
query NetworkList
query StorageList
query ComputeList
query UXList
query FeedbackList
query UserList
query SiteList
Demo the Android mobile application pulling data from the middleware application.
It performed a WorkflowList query:
query WorkflowList{
workflows {
cursor
hasMore
workflows {
id
name
description
}
}
}
It write the response data to log
We confirmed the response data with logcat.
Demo the iOS mobile application pulling data from the middleware application.
It performed a WorkflowList query:
query WorkflowList{
workflows {
cursor
hasMore
workflows {
id
name
description
}
}
}
It write the response data to log
We confirmed the response data in log file.
Emphasize all three frontends use Apollo clients to communicate to GraphQL API.