• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSON REST Client program  RSS feed

 
Eshwin Sukhdeve
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have a POST REST API witch returns the JSON object array.

URL:- /inbox/msg/tag/list

Header Parameter :- user id, password

Response :-

Format:
{
"responseCode":"<response_code>",
"responseMsg":"<response_message>",
"data": [
{
"messageID": "<message_ID>",
"orgID": "<org_id>"
"contentType: "<content_type>",
"filesize": "<file_size>",
"checksum": "<checksum>"
},
{
"messageID": "<message_ID>",
"orgID": "<org_ID>"
"contentType: "<content_type>",
"filesize": "<file_size>",
"checksum":"<checksum>"
},
..
]
}


when I hit the above mentioned url with header parameter .
I get the above response .


I just want how to write the client program for this ,bcse I dont have idea how to mention the header parameter in client java program.

can anyone please help me on this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!