1. Write the public contract
Createorders.yaml:
product and quantity hard request-to-response postconditions. Simile may
generate the order ID, while the response must preserve the values supplied by the caller.
2. Compose the service
CreateSimfile beside the contract:
Simfile names the runnable service, selects its contract,
and sets its local listener.
3. Verify one operation
Describe the assembled service, then executecreateOrder directly:
run validates the request, constructs a reachable response, proves the declared relation, and
prints the response payload. Add --verbose to see the normalized request, selected outcome, and
response metadata.
4. Register and start
Registration compiles the service into an immutable local revision:5. Run an application test
Let Simile own the emulator’s lifetime during a test:SIMILE_BASE_URL, runs the
test command, returns its exit status, and shuts the service down.
Continue
- Use a service explains registration, setup, profiles, updates, and removal.
- Define a service is the complete provider authoring workflow.
- Contract sources and HCL covers OpenAPI, Smithy, semantic TypeScript, and optional public behavior.
- Local testing and CI testing cover application test environments.