Giter VIP home page Giter VIP logo

Comments (13)

 avatar commented on August 20, 2024 1

for mac,it is: export PATH=$PATH:/Users/{yourname}/.dotnet/tools

from httprepl.

mlorbetske avatar mlorbetske commented on August 20, 2024

Hi @metoly, could you post the command you used please?

from httprepl.

tlmii avatar tlmii commented on August 20, 2024

@metoly Going to close this for now since there's no more details and I'm guessing it won't be relevant anymore after we publish the new packages to nuget. Feel free to reopen if you disagree or have more information.

from httprepl.

bigswede74 avatar bigswede74 commented on August 20, 2024

I have httprepl installed but I cant invoke the command. Am I missing a path variable?

'dotnet-httprepl' is not recognized as an internal or external command.

from httprepl.

tlmii avatar tlmii commented on August 20, 2024

Yes, it should be on your path after you've installed it, if you installed it globally. From a command line, run:

dotnet tool list --global

Does it list the package and command?

from httprepl.

bigswede74 avatar bigswede74 commented on August 20, 2024

@tlmii Yes when I run that command it shows as installed.

dotnet tool list -g
Package Id                     Version                    Commands
-------------------------------------------------------------------------
microsoft.dotnet-httprepl      3.0.0-preview.19370.1      dotnet-httprepl

from httprepl.

tlmii avatar tlmii commented on August 20, 2024

Interesting. Next two things to check:

  1. Take a look in your tools folder (probably %userprofile%\.dotnet\tools\) - do you see the dotnet-httprepl.exe shim in there?
  2. is that folder (%userprofile%\.dotnet\tools\) on your PATH?

from httprepl.

bigswede74 avatar bigswede74 commented on August 20, 2024

@tlmii it was the PATH variable was missing, I'm not sure what happened but the install did not add it.
Thanks for the help

from httprepl.

tlmii avatar tlmii commented on August 20, 2024

Odd. That's done by the SDK itself, not the tool. From the docs:

These locations are added to the user's path when the SDK is first run, so Global Tools installed there can be called directly.

I guess maybe something got gummed up with your sdk install? Glad you've got it working now.

from httprepl.

bigswede74 avatar bigswede74 commented on August 20, 2024

@tlmii Any guidance on passing query string parameters using httprepl?

from httprepl.

tlmii avatar tlmii commented on August 20, 2024

@bigswede74 You can do it by just adding it to whatever call you're making. so for instance:

set base https://petstore.swagger.io/v2/
cd pet
cd 5
get ?myquerystring=5

Note of course that, in the example here, the querystring doesn't actually do anything. But it is passed to the server as expected. Same thing should work for POST, etc.

Since the tool was written with REST APIs in mind, the directory structure concept doesn't really lend itself well to APIs that require querystrings rather than having the parameters be part of the path. But it will work.

If you have any follow up questions, please open a new issue so we can track it properly.

from httprepl.

bigswede74 avatar bigswede74 commented on August 20, 2024

@tlmii Great thanks again.

from httprepl.

geoffpalomino avatar geoffpalomino commented on August 20, 2024

Fix for:
'httprepl' is not recognized as an internal or external command, operable program or batch file.
and
httprepl: The term 'httprepl' is not recognized as the name of a cmdlet, function, script file, or operable program.
despite running dotnet tool list --global and verifying that the package is installed.

  1. Press the Windows key.
  2. Search for "Edit the system environment variables".
  3. Under the 'Advanced' tab, select the Environment Variables... button.
  4. Under the 'System variables' table, double click on the 'Path' entry.
  5. Add a New entry.
  6. Enter "C:Program Files\dotnet\tools\" without the quotation marks, and don't forget the trailing slash.
  7. Press OK.
  8. Restart your terminal client.

At least for me, this allowed the terminal to recognize the httprepl command. Hope this helps!

from httprepl.

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.