firecamp icon indicating copy to clipboard operation
firecamp copied to clipboard

feat: create Firecamp Echo Server compatible with Postman

Open Nishchit14 opened this issue 2 years ago • 6 comments

Description:

Firecamp currently has a minimal echo server that is compatible with Postman's echo server features and APIs. We should create a Firecamp Echo Server that implements the same endpoints and functionality as Postman's echo server so that we can maintain the highest level of compatibility for those users who're coming from the postman background.

This will allow Firecamp users to have parity with Postman when testing API clients and workflows. The Echo Server can be used to validate REST calls, auth mechanisms, and response handling. It will be the single source of truth for all services and tooling in Firecamp like API Testing, Monitoring, Collaboration, and Documentation while ensuring postman compatibility. It will make it easy for users to migrate to Firecamp for API testing and development will less friction.

Firecamp Echo Server https://github.com/firecamp-dev/firecamp/blob/main/packages/firecamp-echo-server/src/rest/rest.controller.ts

  1. pnpm i at packages/firecamp-echo-server
  2. pnpm start:dev to start the development server

Tech Stack NestJS & Typescript

Nishchit14 avatar Oct 09 '23 12:10 Nishchit14

I'd like to work on this.

To clarify, what still needs to be done? The methods that return yet to implement or is there more?

nkBrew avatar Oct 09 '23 14:10 nkBrew

@nkBrew yes, need to create echo apis those are marked as yet to implement. Also it would be same as postman echo server apis (expected request and response should be same as in pm echo server)

Nishchit14 avatar Oct 09 '23 20:10 Nishchit14

@nkBrew are you working on this issue? please share the draft PR so we can collaborate on it.

Nishchit14 avatar Oct 11 '23 05:10 Nishchit14

@Nishchit14 Yeah, sorry was working on it locally. Got most of the auth stuff done and cookies. https://github.com/nkBrew/firecamp/blame/EchoServer/packages/firecamp-echo-server/src/rest/rest.controller.ts Edit: Also I know there's some stuff to clean up. That's why I haven't submitted a PR 😄

nkBrew avatar Oct 11 '23 23:10 nkBrew

Thank you @nkBrew, I will start the PR review once the PR is ready. Appreciate your contribution 👏🎉

Nishchit14 avatar Oct 12 '23 15:10 Nishchit14

Gentle reminder @nkBrew

Nishchit14 avatar Oct 16 '23 10:10 Nishchit14