How to send json with byte array to web api / postman -


i'm wanting able send both 1. web api 2. postman web api

i can simple calls web api , use postman, i'm not understanding being able send byte array.

with postman, know put

this web api signature

[route("api/manifest/verifychain/")] [responsetype(typeof (verifymanifestchainresponse))] public ihttpactionresult putverifymanifestchain([frombody] verifymanifestchainrequest message) {    //..... } 

the request class

public class verifymanifestchainrequest {     public byte[] calculatedmeasurement { get; set; }     public string deviceid { get; set; } } 

should sending postman json in raw format in body?

{    "calculatedmeasurement": ?????,    "deviceid": "00022b9a000000010001" } 

i know when web page calls web api see in watch

enter image description here

postman snippet

enter image description here

how send data via postman , , nice know how send web api http://localhost:42822/api/manifest/verifychain/


Comments

Popular posts from this blog

php - isset function not working properly -

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -