SOAP API
In this example you are going to create a soapApi
blueprint that ingests all paths in your SOAP API definition files using a combination of Port's API and webhook functionality.
To ingest the API paths to Port, a script that sends information about the API definition according to the webhook configuration is used.
Prerequisites
Create the following blueprint definition and webhook configuration:
SOAP blueprint
{
"identifier": "soapApi",
"description": "This blueprint represents a SOAP API in our software catalog",
"title": "SOAP API",
"icon": "ApiDoc",
"schema": {
"properties": {
"url": {
"type": "string",
"title": "API URL",
"format": "url"
},
"attributes": {
"type": "object",
"title": "Attributes"
},
"parameters": {
"type": "object",
"title": "Parameters"
},
"response": {
"type": "object",
"title": "Response"
}
},
"required": []
},
"mirrorProperties": {},
"calculationProperties": {},
"relations": {}
}
Package webhook configuration
{
"identifier": "soapApiMapper",
"title": "SOAP API Mapper",
"description": "A webhook configuration to ingest SOAP API paths from a file",
"icon": "ApiDoc",
"mappings": [
{
"blueprint": "soapApi",
"itemsToParse": ".body.paths",
"entity": {
"identifier": ".item.path_name",
"title": ".item.path_name",
"properties": {
"url": ".item.url",
"attributes": ".item.attributes",
"parameters": ".item.parameters",
"response": ".item.response"
}
}
}
],
"enabled": true,
"security": {}
}