boyney123 / mockit

A tool to quickly mock out end points, setup delays and more...
https://mockit.netlify.com/
MIT License
1.58k stars 84 forks source link

Support OpenAPI Specifications for Mocking #5

Open Shelnutt2 opened 5 years ago

Shelnutt2 commented 5 years ago

What you did: See of opeanpi/swagger specs were supported.

What happened: OpenAPI v2 (Swagger) and OpenAPI v3 are not supported.

Problem description:

Suggested solution:

Add support for serving openapi v2 (swagger) and openapi v3 specifications. A lot of people already use openapi v2/3 to document and provide examples for their apis. There is a lack of good mocking tools around openapi, it'd be great if mockit supported serving an openapi specification. Supporting both versions of the OpenAPI format (v2/v3) would be ideal as a large amount of tooling and specs already exist around v2 (formerly swagger).

daKmoR commented 5 years ago

I'm curious how would such an integration look like?

also what would be different compared to Prism?

boyney123 commented 5 years ago

Thanks @Shelnutt2 , this sounds like a great idea! I have no idea how I could go about doing this, but I will spend some time thinking about it.

Does anybody have any thoughts on how this could work?

@Shelnutt2 what would you expect as a user?