cancel
Showing results for 
Search instead for 
Did you mean: 

Rest service with body in form-data with key and value

I need to call a rest service in POST, they give me the postman json.

I always work with a body in raw format, but now the body is in form-data.

How can I translate this format in abap?

Below what I do normally:

  • I use the method /ui2/cl_json=>serialize
  • I use the method IF_REST_ENTITY->set_string_data( vf_body )
View Entire Topic
0 Kudos

Problem solved:

Body - raw

Insert the key filed with = before the json:

Example:

input_data={

"request": {

"subject": "",

"description": "",

"requester": {

"name": ""

}

}

}