OpenAPI Import and Safe Updates
When a contract already exists as an OpenAPI document, its operations do not need to be created by hand. Import a specification into the order-processing component, inspect request and response examples, and safely reimport it.
From a Manual Contract to a Specification
The registry already contains a manually created interface. It remains intact; the import adds the operations from the file to the selected component.
Select Import, choose REST interfaces, and continue to the settings.
Select the component, choose API Description File, and upload the JSON specification.
The registry now contains operations for creating, reading, and cancelling an order.
Examples and Manual Refinement
Request and response examples from the specification are available directly in the registry.
An imported description can still be refined according to team conventions.
Reimporting the same file creates no duplicates and preserves the manual clarification. Operations introduced in a later specification are added to the same registry.
Next lesson: Interface Visibility Levels.
Previous lesson: Internal Actions and Alternative Outcomes.