-
hi, I have a problem trying to consume the microcks api in version 1.7.1, from docker compose (before mounting it in a production environment), trying to upload an api, the response is 201 but it doesn't create anything, I saw the log and something particular happens, when I try to upload the api from the web, upload correctly and show this log
but when I try from the api via postman, it shows me the status 201 of created but nothing uploads, only shows:
this is the request
We really don't know what we are doing wrong, since even in keycloak the microcks-serviceaccount client in the microcks realm has the role microcks-app:manager. We appreciate your help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @darespa12! It looks like the logs above are coming from 2 different endpoints:
Change your curl to |
Beta Was this translation helpful? Give feedback.
Hey @darespa12!
It looks like the logs above are coming from 2 different endpoints:
/api/artifact/upload
for the first one. It expects artifact files like OpenAPI specs, AsyncAPI specs, Postman Collection, etc.../api/import
for the second one. It expects snapshots files previously retrieved using the/api/export
endpoint. See repository snapshotsChange your curl to
curl --location 'http://localhost:8080/api/artifact/upload'
and it should fix the issue.