this post was submitted on 06 Jul 2023
134 points (100.0% liked)
Programming
17484 readers
115 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I completely stopped using all those clients. We now just store the requests alongside the code in an http file and use the built in IntelliJ HTTP Client to make the call. No need for a separate program, integrates with your code, you can save responses to make sure they don't change, it's all stored in git. There's a ton of benefits and not many downsides.
What is an HTTP file?
https://www.jetbrains.com/help/idea/exploring-http-syntax.html https://learn.microsoft.com/en-us/aspnet/core/test/http-files?view=aspnetcore-8.0
Once I learned about http files I never went back. It's so easy to share and use, I primarily use JetBrains but there are extensions for VSCode that do the same thing that I have used as well.
This also exists for VSCode by the way.
yeah looks like it's in visual studio too. https://learn.microsoft.com/en-us/aspnet/core/test/http-files?view=aspnetcore-8.0
any resources to get the hang of the IntelliJ Client? cause when I tried it I kind of hit a wall not knowing where to start
just create a new file of type HTTP Request, click on the
*Examples
dropdown in the top right, choose the type of thing you want to do, copy one of the examples, and then paste it into the.http
file you created. Then hit the play button! dead simple!anywhere on the project? hmm, that sounds pretty neat.
sorry for bugging you, but do you know if there is some way to import postman collections into this kind of a file? cause I have like 100 files in postman atm
edit: nvm, just tried it out and I can get from postman a HTTP "code" and simply paste it into .request fiel.
no worries. I'm just slow to respond. Got lots going on. Seems like you figured it out though? Do you want some more guidance?