Edit in GitHubLog an issue

Source handlers

Source handlers allow you to define sources, such as APIs, that provide data to your mesh. Each handler in your mesh corresponds to an API or other source that you can specify. API Mesh for Adobe Developer App Builder currently supports the following handlers:

Whenever a schema is modified, you must update your mesh to allow API Mesh to cache any changes.

The following example contains a basic mesh file with an OpenAPI source handler.

Copied to your clipboard
{
"meshConfig": {
"sources": [
{
"name": "CommerceREST",
"handler": {
"openapi": {
"source": "your_Commerce_API"
}
},
}
]
},
}

Handlers are located in the sources section of the mesh file. Each source will need a name, a handler, and other key-value pairs that correspond to the handler type. In the previous example, the openapi handler only requires a source.

  • name - an alphanumeric name to distinguish between other handlers
  • handler- the type of handler you want to use, for example openapi
  • Handler specific data - the key-value pairs that correspond to your specified handler

Reference local files in handlers

You can reference local files as sources in handlers using the following format:

Copied to your clipboard
{
"meshConfig": {
"sources": [
{
"name": "CommerceREST",
"handler": {
"openapi": {
"source": "your_Commerce_API"
}
}
},
{
"name": "CommerceRESTV2",
"handler": {
"openapi": {
"source": "./CommerceRestV2.json"
}
}
}
],
"files": [
{
"path": "./CommerceRestV2.json",
"content": <LOCAL_FILE_CONTENT>
}
]
}
}

Package versions

The following table specifies the GraphQL Mesh versions of each handler supported by API Mesh for Adobe Developer App Builder:

Handler Package NameVersion
0.33.39
0.34.13
0.35.38
0.14.25
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.