IBM MQ REST API schemas¶
IBM does not ship a static OpenAPI file in the product download or on GitHub. The complete mqweb schema is generated at runtime by WebSphere Liberty’s API Discovery feature.
Files in this directory¶
| File | Source | Purpose |
|---|---|---|
mqsc-runcommand.schema.json |
IBM documentation (stable) | Request/response shapes for the /mqsc admin endpoint |
mqweb-swagger.json |
You generate this | Full Swagger 2.0 from your queue manager |
mqweb-swagger.json export target¶
Pin each committed export to the integration MQ image tag in
hack/mq-docker/docker-compose.yml
(currently icr.io/ibm-messaging/mq:9.4.5.1-r1, IBM MQ 9.4.5.1).
After fetching, record the image tag here so reviewers know which mqweb build the OpenAPI snapshot matches.
Obtain the complete Swagger schema¶
- Enable API discovery in
mqwebuser.xml:
<featureManager>
<feature>apiDiscovery-1.0</feature>
</featureManager>
-
Restart mqweb / the queue manager pod.
-
Run from the repository root:
MQWEB_USER=admin MQWEB_PASS=changeme \
./scripts/fetch-mqweb-swagger.sh https://localhost:9443 docs/schemas/mqweb-swagger.json
Or against the Docker integration MQ:
task mq:integration:up
task mq:integration:wait
task mq:swagger:fetch
- Commit
mqweb-swagger.jsonwith a note of the IBM MQ version it was exported from (see export target above).
Interactive explorer: https://host:port/ibm/api/explorer
Versioning¶
Pin the exported Swagger to your target MQ version. Re-fetch when upgrading queue managers. Target REST API v3 for new work (/ibmmq/rest/v3/...).