Replies: 1 comment 2 replies
-
Hey @asankas! Some endpoints exist at the moment but are not documented as they were not that stable. Now, as they are used more and more by CLI, Testcontainers module or CI plugins, they'll be documented in future releases.
Or you can use the CLI that does the same thing for you ;-) Regarding API authentication, please check https://microcks.io/documentation/automating/service-account/#using-service-account to see how to use the service-account client ID and secrets to retrieve a token that will then allow you to interact with the API. Take care: the default service account doesn't allow you to import artifacts (as mentioned here). You'll have to extend its privileges or create a new one. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I would like to know whether there are APIs (https://microcks.io/documentation/automating/api/) exposed by microcks which can be used in programatically upload api specification to generate mocks. I was trying some APIs mentioned in above link and ended up with 401 response. I would like to know what kind of authorisation should be provided when accessing those APIs (Note: I was trying with Basic Auth with both 'microcks-app' and 'microcks-serviceaccount' client IDs with corresponding client secrets from keycloak). Appreciate if anyone from the community can provide more details on how to use those microcks own APIs.
Regards,
Asanka.
Beta Was this translation helpful? Give feedback.
All reactions