You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`--waitFor` for the time to wait for test to finish (int + one of: milli, sec, min),
51
-
*`--keycloakClientId` for the Keycloak Realm Service Account ClientId,
52
-
*`--keycloakClientSecret` for the Keycloak Realm Service Account ClientSecret.
53
-
54
-
> Since `0.5.2` release, `microcks-cli` also works in unauthenticated mode, without Keycloak being deployed and configured with your Microcks instance. However, you still have to specify the Keycloak flags on the command even if you put random values there. For eg. `--keycloakClientId=foo --keycloakClientSecret=bar`.
|`--caCerts`| Comma-separated paths of CA cert files |
50
+
|`--keycloakClientId`| Keycloak Realm Service Account ClientId |
51
+
|`--keycloakClientSecret`| Keycloak Realm Service Account ClientSecret |
52
+
|`--microcksURL`| Microcks API URL |
82
53
83
-
Overriden test operations headers is a JSON strings where 1st level keys are operation name (eg. `GET /beer`) or `globals` for header applying to all the operations of the API. Headers are specified as an array of objects defining `key` and `values` properties.
84
54
85
-
Here's below an example of using some of this flags:
*`<specificationFile1[:primary],specificationFile2[:primary]>` : Comma separated list of API specs to import with flag telling if it's a primary artifact. Example: `'specs/my-openapi.yaml:true,specs/my-postmancollection.json:false'`
114
-
115
-
The flags:
116
67
117
-
*`--microcksURL` for the Microcks API endpoint,
118
-
*`--keycloakClientId` for the Keycloak Realm Service Account ClientId,
119
-
*`--keycloakClientSecret` for the Keycloak Realm Service Account ClientSecret.
120
-
121
-
> Since `0.5.2` release, `microcks-cli` also works in unauthenticated mode, without Keycloak being deployed and configured with your Microcks instance. However, you still have to specify the Keycloak flags on the command even if you put random values there. For eg. `--keycloakClientId=foo --keycloakClientSecret=bar`.
## `microcks import` – Import API Artifacts into Microcks
2
+
Uploads one or more API spec files (e.g., OpenAPI, AsyncAPI, Postman) to the Microcks server and optionally watches them for changes.
2
3
3
-
The `import` command in Microcks CLI is used to upload and register API specification artifacts (like OpenAPI, AsyncAPI, Postman collections, etc.) into a Microcks server.
The `import` command enables developers to push one or multiple API artifacts to a Microcks instance. It supports secure authentication via Keycloak and allows custom TLS configurations for secure communication.
## `microcks import-url` – Import API Artifacts from URL
2
+
Imports API specification files (OpenAPI, AsyncAPI, etc.) hosted at a remote URL into the Microcks server.
2
3
3
-
The `import-url` command in Microcks CLI is used to upload and register API specification artifacts(like OpenAPI, AsyncAPI, Postman collections, etc.) from URLs into a Microcks server.
4
-
5
-
📝 Description
6
-
7
-
The `import-url` command provides a convenient way to register API specifications (OpenAPI, AsyncAPI, Postman collections, etc.) hosted online without needing to download them manually. This is useful for CI/CD pipelines or importing frequently updated remote specs.
0 commit comments