Postman

We share our Postman collections and environment configurations via Git.

Update API

Everyone that changes the API of one of the MICO Microservices should also update the Postman collections and export them to this directory. An easy way to do that is by using the Swagger UI, copy the API docs, and import it into Postman.

Example with mico-core:

  • Port forwarding to mico-core to be able to access the REST API: kubectl port-forward svc/mico-core -n mico-system 8080:8080
  • Open http://localhost:8080/v2/api-docs (Swagger-UI would be http://localhost:8080/swagger-ui.html)
  • Copy the complete JSON
  • Postman -> Import
  • Optional: Change the property “host”:”localhost:8080” to “host”:”{{host}}” so that Postman will use the host definition from the environment configuration
  • Export updated collection