:wave: Hello, team! Can WireMock accept an OpenAP...
# help
s
👋 Hello, team! Can WireMock accept an OpenAPI schema in YAML format as input and function as a mock server for the frontend? And if so, how can this be done?
l
Out of the box WireMock OSS can not do this. There are some tools that will convert OpenAPI to WireMock stubs that might work for you but this will be a manual process. WireMock Cloud does this out of the box when you create a
REST
mock API. You can load an OpenAPI spec and the stubs will be created automatically for you. They will also be kept in sync when you update your OpenAPI. Also if you wanted to, it will update your OpenAPI when you update your stubs. Either will work depending on whether you go for a spec first approach or a prototyping approach where you create your mock first. A little more info here - https://www.wiremock.io/comparison