10 Essential Concepts to Master the Sage Active Public API
Explore the foundational elements of the Sage Active Public API in this concise guide. From authentication to data handling, learn the key concepts and best practices that will enhance your API integration and usage. This video provides a clear overview of the essential aspects needed for effective API implementation and management.
The error management system in the public API provides feedback on various types of issues encountered during requests.
Errors can be grouped into business logic errors, validation errors, or authorization-related errors.
When working with GraphQL, specifically Hot Chocolate, in the context of Sage Active Public API V2, it’s essential to understand the role and naming convention of Data Transfer Objects (DTOs).
These DTOs facilitate data exchange between client and server and play a critical role in mutations and queries.
In GraphQL, particularly with Hot Chocolate, updating records involves a precise and efficient approach. Let’s explore how modifications and deletions of sub-resources are achieved using the requestedAction field..
GraphQL queries offer flexibility and customization to users, allowing them to define their own queries.
However, this advantage can also be a potential drawback, as users may execute queries that consume significant resources.
To prevent overloading the GraphQL engine with excessively complex and resource-intensive queries, a complexity limit is enforced on the public GraphQL API
User management enables the definition of users, their roles, and their access to businesses (known as organizations in the API context).
The public API considers these roles to authorize or deny access to data based on the current user’s roles.
GraphQL Hot Chocolate DataLoaders offer a powerful solution for efficiently fetching data in GraphQL applications.
By leveraging DataLoaders, developers can significantly reduce the number of database calls, thus minimizing the response time and improving the overall performance of the API.
AggregationsNEWNew Feature Recently Added. (Introduced in the last version as well as in the previous version)
GraphQL aggregations allow you to compute summarized values over a dataset, such as totals, counts, averages, and grouped values. They provide an efficient way to retrieve structured financial or business insights without requiring extensive data processing on the client side.