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
postman snippet
how send data via postman , , nice know how send web api http://localhost:42822/api/manifest/verifychain/


Comments
Post a Comment