postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.85k stars 839 forks source link

Generate postman collection from asp.net core #8077

Open arisliang opened 4 years ago

arisliang commented 4 years ago

We have an asp.net core project and using postman. We like it both. However, in order to test it in postman, we have to manually create the postman requests to call the web API.

Is there a way to scan through the web API, and create / update them in postman automatically?

arisliang commented 4 years ago

PS, we're using a paid version of postman, if that helps.

abhijitkane commented 4 years ago

@arisliang Not yet. Would love to know more about your workflow, though. Is any of the code publicly available? Feel free to reach out on help@getpostman.com as well.

STeeL835 commented 2 years ago

We get around this by using NSwag (or Swashbuckle, but we need to generate C#/TS clients too) to generate OpenAPI spec, that we can later use to generate the collection.

The problem here is that Postman is built around editing the api/collections in the app only, has forks, teams, apis, etc, when our reality is generation of spec/collection using our methods (NSwag in our case + combination of scripts to generate a collection with everything we need), programmatically, which is a much more flexible method to us.

These 2 worlds don't come together very good, because Postman