postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.82k stars 838 forks source link

Add MsgPack support #4552

Open cd21h opened 6 years ago

cd21h commented 6 years ago

Is your feature request related to a problem? Please describe. New feature MsgPack encoding support Msgpack: https://msgpack.org/

Describe the solution you'd like

MsgPack responses

Response should be presented in

See // see https://github.com/msgpack/msgpack/blob/master/spec.md#type-system for type references Also should be an option to save as test

Request

Request should be accepted in:

nilskp commented 5 years ago

Any progress on this?

ivanh03 commented 5 years ago

it would be really useful

katia-kozlova commented 5 years ago

Any changes here?

brihaspati commented 5 years ago

One solution is to use the msgpack-lite to decode the response

Steps

  1. Copy the minified msgpack-lite js into a postman global variable
  2. inside the test function, use eval to get the msgpack
  3. responseBody is in encoded format, so normally it doesn't help much. So use pm.response.stream to get the response in a Buffer type which is then used to feed into the decode function of msgpack.
  4. Use the decoded response, or use postman console to see the same

    pm.test("decode message pack", function() {
    eval(postman.getGlobalVariable("msgpack-code"));
    
    var bufferData = pm.response.stream;
    var customCodec = msgpack.createCodec();
    var response = msgpack.decode(bufferData, { codec: customCodec });
    console.log(response); //response is now decoded. Use postman console to see it
    });
iambudi commented 4 years ago

Any update about this feature?

andrei-dascalu commented 2 years ago

I'm also wondering about any movement on this?

enghitalo commented 2 years ago

Ping

hejjzaeN commented 1 year ago

up

JawadAhbab commented 1 year ago

Pong?

usrtax commented 1 year ago

up

NVD-R commented 1 year ago

ping?

igor-sadchenko commented 1 year ago

Any updates here?

yairvillarp commented 1 year ago

any news here???

jasonchanapi commented 1 year ago

Any update about this feature?

A software supports MessagePack

There's a new software called Apidog that makes working with MessagePack a breeze. It's a visual API tool that handles all the encoding/decoding behind the scenes, turning MessagePack data into human and machine-readable JSON. I gave it a try and found Apidog super beginner-friendly for dealing with MessagePack APIs.

  1. Open Apidog, select an existing API or create a new one. Go to the Body tab and choose "msgpack". image

  2. Enter data in JSON format. Apidog will auto-encode it to MsgPack when sending it to the server.

  3. Get the response right away. Apidog decodes the MsgPack data into convenient JSON. image

radixdev commented 5 months ago

Any way to open source this contribution from the community?

roshkins commented 4 months ago

Any way to get Postman or ApiDog to use messagepack in a websocket connection?