Modules > REST API and GraphQL
 
 
REST API and GraphQL
 
REST API Documentation
GraphQL endpoints
Synchronous versus Asynchronous
Version of the endpoint
GraphQL and Data Confidentiality (CRUD)
Query
Mutation
Managing permission
Selecting the data language with the REST API
Querying data in the current data language
Querying data in a selected data language
Changing the current data language
Changing the data language for a given user
Getting the list of available data languages
Adding data languages and seeing them in the API
Basic Auth vs API Key
Basic Auth
API Key
Multi or Single Mode
Querying/Creating/Updating/Deleting with GraphQL
Basic queries
Basic mutations
Creating custom schema (SDL/JSON) / custom endpoint
How it works ?
Step 1: Create your metamodel to expose in the REST API
Step 2: Configure the generator
Step 3: Run the generator
Pagination in REST API with GraphQL
First elements with Skip or After
Last elements with Skip and Before
Pagination and Sort
Filtering data (where condition) in REST API with GraphQL
How to make a filter?
How to combine filters?
Type of filters by types of fields
Mutation: Absolute/External/Temporary - Identifier
Making a Query
Making a Mutation
Asynchronous versus Synchronous Web service call
What does the endpoint return? 
Calling the API in asynchronous way 
How the endpoint is called?
Which is the best option?
Diagram API: dowloading a diagram by REST API
Use case
Attachment API: Uploading or Downloading Business Document
Use case
Downloading an attachment (Business Document)
Uploading an attachment (Business Document)
Getting GraphQL Schema as a file (SDL schema file)
In GraphiQL
In Postman
ID Converter From HexaIdAbs to Absolute identifier
Using Postman to call the REST API