Giter Site home page Giter Site logo

[feature] import curl about vscode-httpyac HOT 2 CLOSED

maicss avatar maicss commented on June 8, 2024 1
[feature] import curl

from vscode-httpyac.

Comments (2)

AnWeber avatar AnWeber commented on June 8, 2024 2

@myfonj Export Feature is already supported. You can use command httpyac.generateCodeSelectLanguage (default output curl ito clipboard) or httpyac.generateCode to select generated language.

I don't quite see the use case for import. curl can actually already be run anyway and the added value with import is low. I actually want/need to write an OpenAPI import sometime soon, so this feature may fall out as a byproduct, But I had already discussed it away once. Gladly but PR integrable. I can also help. Alternatively, I would refer to this page.: https://reqbin.com/req/c-w7oitglz/convert-curl-to-http-request

from vscode-httpyac.

myfonj avatar myfonj commented on June 8, 2024

I'd also highly appreciate the other way round (export): copy request as curl command
I.e. all effective request data (including those from resolved refs) and serialized them all one compact chunk of curl -X .. -H .. -H .. -d .... that one could immediately try in terminal or share with folks that have not httpYac available.

from vscode-httpyac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.