bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Support Import of curl and openapi files

Open ChristophSchwenk opened this issue 2 years ago • 12 comments

Please support the import of curl statements to easily copy paste any request from the Browser (copy as curl) to Bruno. Also the feature to import openapi files would be very nice.

ChristophSchwenk avatar Sep 14 '23 08:09 ChristophSchwenk

+1 for OpenAPI import and the ability to create collection from OpenAPI json the way we can in Postman.

kalinstaykov avatar Oct 03 '23 06:10 kalinstaykov

This is duplicate of #81

SergeAx avatar Oct 03 '23 08:10 SergeAx

The ability to read an OpenAPI spec from a URL would be great. Our build process autogenerates OpenAPI specs and makes them publicly available. If Bruno could read the spec from the URL into a collection that would be pretty cool.

liegeandlief avatar Oct 04 '23 16:10 liegeandlief

@not-known-person is that update going to be supporting both importing OpenAPI specs and cURL, or just cURL as the demo shows?

jamfor999 avatar Oct 06 '23 15:10 jamfor999

Yikes I thought feature requests would be in Discussions so posted a duplicate there just now: https://github.com/usebruno/bruno/discussions/547

answerquest avatar Oct 12 '23 02:10 answerquest

I regret to inform you that, due to certain personal commitments, I am currently unable to dedicate my efforts to the development of this feature. I trust that my fellow team members will take the initiative to work on and eventually release this feature in future updates.

AyushNigam-1 avatar Oct 12 '23 04:10 AyushNigam-1

@not-known-person Is there any branch with your latest draft?

ChristophSchwenk avatar Oct 12 '23 06:10 ChristophSchwenk

@ChristophSchwenk Yes !

AyushNigam-1 avatar Oct 13 '23 12:10 AyushNigam-1

@ChristophSchwenk et. al. Not sure if we have one for the OpenAPI specs but the cURL import feature is getting tracked here ➡️ https://github.com/usebruno/bruno/issues/338. Can we please redirect the pertaining discussions to the linked issue to reduce dupes?

snippetkid avatar Oct 16 '23 10:10 snippetkid

Curl Import functionality is now available in 1.1.0 🎉

helloanoop avatar Nov 03 '23 16:11 helloanoop

@helloanoop Nice job thanks for implementing this! I just had a look and found that POST requests are imported as GET requests (wrong method set in bruno) and they are missing the body. PATCH requests are also imported without payload body.

ChristophSchwenk avatar Nov 06 '23 08:11 ChristophSchwenk

Bump, important feature

vazome avatar Aug 09 '24 13:08 vazome

Bruno now supports importing cURL as well as openapi v3.0 files. Closing this issue. Support for openapi v2 itself is tracked here - https://github.com/usebruno/bruno/issues/81

helloanoop avatar Dec 01 '24 08:12 helloanoop