Closed Nishchit14 closed 1 year ago
Hey @Nishchit14 would like to contribute , though I have not much knowledge about the above issue.
The business logic of this feature is around HAR and Firecamp API Request transformation. Firecamp Rest Request and HAR both have JSON format. We need to create two transformer functions
packages/*
, folder name firecamp-har
and package name in package.json with @firecamp/firecamp-har
, you can copy the existing package to start with typescript boilerplatefor any kind of help feel free to ask on Discord's contribution channel.
HAR JSON: https://gist.github.com/igrigorik/3495174 https://github.com/javieraviles/Har2Postman/blob/master/test/0.1.0/input.json TS: https://www.npmjs.com/package/@types/har-format
Firecamp JOSN: https://github.com/firecamp-dev/firecamp/blob/d43e50d017d381cfb05ac5408a90d23c935fafc5/packages/firecamp-cli/test/data/restEchoServer.firecamp_collection.json#L124-L190 TS: https://github.com/firecamp-dev/firecamp/blob/main/packages/firecamp-types/src/requests/rest/request.ts#L17C25-L17C25
@note: only transform request to request, do not consider whole collection transformation as of now.
cc: @RISHIKESHk07
@Nishchit14 are you asking to implement a toll to convert a har to fire format and vice verse?
@jatingodnani yes, format conversion from HAR to Firecamp and Firecamp to HAR.
@Nishchit14 where to implement this
@jatingodnani please read this https://github.com/firecamp-dev/firecamp/issues/115#issuecomment-1767796283, specific this section Getting started steps would be
@Nishchit14 can you pls tell me is this correct?or i am missing something
@Nishchit14 check this above
@jatingodnani Refer this https://github.com/firecamp-dev/firecamp/pull/120#issuecomment-1770504239
I appreciate your efforts to understand this issue. I need some time to prepare a minimum package so you can start. also the HAR <=> Firecamp comparison looks good at first sight but I prefer to have json in PR so I can review it properly.
@Nishchit14 can you pls checkk and review is it correct conversion
@jatingodnani yes, it looks correct.
@Nishchit14 i am ready to take this issue.
Description:
Firecamp currently does not have the ability to transform HTTP request/response data between the HAR (HTTP Archive) format and Firecamp's internal request format.
This feature request is to implement bidirectional conversion:
This will allow:
The implementation should include:
This feature will enable better interoperability with external tools for importing and exporting HTTP request data.
Resources