Updated examples

This commit is contained in:
2024-04-30 00:41:28 +02:00
parent 326f683e64
commit db424f620d
2 changed files with 84 additions and 23 deletions

View File

@@ -1,20 +1,24 @@
### GET /ibmmq/rest/v1/admin/qmgr/{qmgrName}/queue
## GET /ibmmq/rest/v1/admin/qmgr/{qmgrName}/queue
```bash
# Get all queues
curl -X GET \
--insecure --header 'Accept: application/json' \
-u admin:passw0rd \
'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue'
curl -X GET 'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue' \
--insecure \
--header 'Accept: application/json' \
-u admin:passw0rd
```
## GET /ibmmq/rest/v1/admin/qmgr/{qmgrName}/queue?name={queue name or wildcard}
```bash
# Get all DEV* queues
curl -X GET \
--insecure --header 'Accept: application/json' \
-u admin:passw0rd \
'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue?name=DEV*'
curl -X GET 'https://localhost:9443/ibmmq/rest/v1/admin/qmgr/QM1/queue?name=DEV*' \
--insecure \
--header 'Accept: application/json' \
-u admin:passw0rd
```
## Expected output
### Search for all queues, or queues that does exist.
### A search for all queues, or queues that does exist.
Status: 200 OK
```json
{
@@ -39,7 +43,7 @@ Status: 200 OK
}
```
### Search for queue that doesn't exist
### A search for queue that doesn't exist
Status: 200 OK
```json
{