Julien-cpsn / ATAC

A simple API client (postman like) in your terminal
https://atac.julien-cpsn.com/
MIT License
2.02k stars 86 forks source link

Feature request: parse .http files/directories #109

Open franksl opened 2 months ago

franksl commented 2 months ago

Hi, To avoid the use of non standard collection files I started using .http files that become very useful in neovim with the rest.nvim or kulala packages. I think it would be very useful to be able to launch ATAC by passing the path to a directory containing .http files and showing them as a collection. Thanks, Frank

Julien-cpsn commented 2 months ago

Hello,

For now, such a thing is not planned. Although, I am not closed to this idea. Can you please show me what your http file looks like?

Have a great day

Julien

franksl commented 2 months ago

Hi, You can find some specifications here: https://learn.microsoft.com/en-us/aspnet/core/test/http-files?view=aspnetcore-8.0#http-file-syntax. It is basically a plain text file where you put the kind of request, headers and payload in a way similar to how they are sent through the http protocol. Frank

ccoVeille commented 2 months ago

tree-sitter-http is also a good source of thruth

Julien-cpsn commented 2 months ago

The import of those files is planned. Exporting toward this file format is also planned (and almost finished). So maybe you can use it this way:

Is that ok for you?

(As said, the import/export of .http is not fully ready yet)

franksl commented 2 months ago

I think that would be good in order to keep my http files, thanks!