Skip to content

Documentation and test artifacts

Every OSB project includes documentation in {Project}/Docs/ unless the plan turns it off (documentation: false, or "no documentation" in the chat).

The documents are built from the generated proxies, pipelines, business services, WSDLs, WADLs and schemas, so they describe the implementation exactly as generated. Header parameters, security schemes and field descriptions, which the generated contracts do not carry, come from the source specifications. Nothing is invented: when the source has no description of an operation, the document says TODO: Add operation details here.

File One per Audience
{Proxy}-ICD.docx exposed service Consumers and integration partners: the Interface Control Document
{Proxy}-consumer-guide.docx exposed service Developers calling the service: ready-to-send examples
{Proxy}-openapi.json REST exposed service API tooling, gateways, Postman
{Project}-technical-design.docx project The integration team: architecture, routing, mappings, deployment
{Project}.postman_collection.json and .postman_environment.json project Testing every operation from Postman
{Project}-soapui-project.xml project, when a proxy uses SOAP Testing SOAP operations from SoapUI

Interface Control Document

The ICD is filled into your organisation's Word template (template/docs/ICD-template.docx by default, or FORGE_ICD_TEMPLATE). The template's cover page, headers, footers, styles, numbering and tables are kept; only the content is replaced, and the reviewer comments that explain each section are removed.

Template section Filled with
Title A descriptive name from the proxy, for example PersonTravel → Person Travel Service
Revision history The generation date
Introduction What the service is and what the document covers
WS Authentication (SOAP) / Authentication (REST) How clients authenticate: a WS-Security UsernameToken header example when the proxy processes WS-Security, and every HTTP header the service forwards to the backend, with its description, whether it is required and which operations use it
Data Specification One section per operation: description, input parameter table, request schema, output parameter table, response schema
End Points The proxy endpoint on each environment of FORGE_DOCS_ENVIRONMENTS
References and attachments The WSDL (SOAP) or OpenAPI specification (REST), the schema files (SOAP only), and the consumer guide with the SoapUI project or Postman collection

Parameter tables list every field of the generated request or response element with hierarchical numbering (1, 1.1, 1.2.1), indentation for nested structures, the data type (List -> Type for repeating fields), whether the field is required, and its description from the source.

Schemas. For SOAP services the request and response sections show the XSD definitions the message needs: the element first, then every type it references. For REST services they show a JSON example payload.

Table of contents

The template's table of contents is marked for update. Word refreshes it when the document is opened (confirm the prompt); other editors may need Update field.

Consumer guide

The consumer guide uses the same template styles and cover page. For each exposed service it contains:

  • Connection details: the endpoint per environment, the protocol, the contract and the testing files.
  • Authentication: the same facts as the ICD, with the WS-Security header example and a table of the headers to send.
  • One section per operation:
    • SOAP: the endpoint, the SOAP action, the HTTP headers (including Content-Type with the action for SOAP 1.2, or SOAPAction for SOAP 1.1), and a complete SOAP envelope with the WS-Security header, ready to paste into SoapUI;
    • REST: the method and full URL, the headers and a JSON body, in a form that maps directly to a Postman request;
    • an example response and notes: optional fields, the SOAP faults or HTTP status codes, and the Errors list when the response has one.
  • Testing tools: how to import the generated SoapUI project or Postman collection.

OpenAPI specification

Every REST exposed service gets {Proxy}-openapi.json, an OpenAPI 3.0.3 description of the API the proxy exposes:

  • servers lists the proxy endpoint on each documentation environment;
  • the paths are the proxy's resources, with header parameters from the source;
  • security schemes (HTTP Basic, Bearer, API key) are declared once and applied to the operations that use them, which matters when a service combines operations of different backends.

The file validates against the OpenAPI 3.0 specification and can be imported into Postman, API gateways and code generators.

Technical design

The technical design document is for the team that maintains the integration. It has ten sections: overview, architecture and message flow, proxy services, pipelines (with a table per routing table), business services, operations with field mappings and example messages, security, backend integration, testing, and deployment, followed by a list of every generated file. FORGE_DOCX_TEMPLATE applies a corporate template's styles.

Postman and SoapUI

  • The Postman collection has one folder per proxy and one request per operation, with an example response. The environment defines osb_url (FORGE_DOCS_OSB_URL).
  • The SoapUI project has one interface per SOAP proxy, with the WSDL and every schema it imports embedded, and a sample request per operation.

Settings

Setting Effect
FORGE_ICD_TEMPLATE ICD and consumer guide template; defaults to template/docs/ICD-template.docx
FORGE_DOCS_ENVIRONMENTS Environments for endpoint tables and OpenAPI servers, for example Staging=https://esb-stg.example.com,Production=https://esb.example.com; defaults to one Default environment at FORGE_DOCS_OSB_URL
FORGE_DOCS_OSB_URL OSB server for Postman and SoapUI, and the default environment
FORGE_DOCX_TEMPLATE Corporate template for the technical design

If documentation fails, the OSB project is still delivered and the run reports a DOCUMENTATION_FAILED issue.