Comments (13)
for mac,it is: export PATH=$PATH:/Users/{yourname}/.dotnet/tools
from httprepl.
Hi @metoly, could you post the command you used please?
from httprepl.
@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.
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.
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.
@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.
Interesting. Next two things to check:
- Take a look in your tools folder (probably
%userprofile%\.dotnet\tools\
) - do you see the dotnet-httprepl.exe shim in there? - is that folder (
%userprofile%\.dotnet\tools\
) on your PATH?
from httprepl.
@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.
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.
@tlmii Any guidance on passing query string parameters using httprepl?
from httprepl.
@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.
@tlmii Great thanks again.
from httprepl.
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.
- Press the
Windows
key. - Search for "Edit the system environment variables".
- Under the 'Advanced' tab, select the
Environment Variables...
button. - Under the 'System variables' table, double click on the 'Path' entry.
- Add a
New
entry. - Enter "C:Program Files\dotnet\tools\" without the quotation marks, and don't forget the trailing slash.
- Press
OK
. - 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)
- Add set editor command
- [Mac OS] Cannot set up default editor HOT 9
- Support EDITOR and VISUAL environment variables where applicable
- Several characters are count twice HOT 7
- Support for NTLM digests for Authorization
- Cannot find open api model error message
- Default branch rename to main HOT 1
- Support cd.. (without space)
- Support URL versioning
- sg g g sgv vfvfff
- Unable to find an OpenAPI description HOT 6
- httprepl : The term 'httprepl' is not recognized as the name of a cmdlet, function, script file, or operable program. HOT 2
- Unable to install HOT 4
- Microsoft.dotnet-httprepl 6.0.0 is not compatible with net6.0 HOT 1
- FileNotFoundException when using `post -h Content-Type=application/json` HOT 1
- Response shown in console doesn't show raw Json text
- Waiting on VS Code as editor causes console spew from VS Code that is irrelevant to HttpRepl HOT 1
- Cannot run Microsoft.dotnet-httprepl 6.0.0 with dotnet 7.0 (at Ubuntu 22.04) HOT 3
- Allow setting headers on startup
- HttpRepl does not support .NET 8 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httprepl.