Edit in GitHubLog an issue

Handlers

Source handlers allow you to define sources that provide data to your mesh. The following table specifies the 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

The source handlers topic provides more information about handlers in the context of API Mesh.

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.

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>
}
]
}
}

Next steps

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.