System Survilla platform uses GraphQL to access the API, which is an alternative for a more widespread REST model. GraphQL brings improvements in the form of greater clarity , typology, and a reduced number of queries. GraphQL is an application layer level query language. The server interprets the query string and returns a response with the data in the required format. It provides a comprehensive and clear description of the data in the API, giving client applications the ability to request exactly the data they need.and strict types. There are a lot of GraphQL client libraries for almost every programing language. Link: https://graphql.org/code/#language-support
GraphQL uses two types of operations. Query operations are used to read data. Mutations are used to change data. Individual query and mutation operations are sent in the POST endpoint request.
Each provider has its own URL.
GraphQL endpoint:
Code Block | ||
---|---|---|
| ||
https://system2.netrex.czprovider_URL/api/graphql.php |
The endpoint remains constant regardless of the operation being performed. More about GraphQL in this article. More about the transition from REST to GraphQL in this articleWhere provider_URL is special URL - different for each provider.
More about GraphQL is here https://graphql.org/learn/ .