57
Views
2
Comments
MultiPart /form-data  Exposing Rest API : Unsupported MediaType"
Application Type
Reactive
Platform Version
11.24.0 (Build 41209)

Hi Community,

I am currently consuming a REST API in my application. 

  • In Postman, the API is working, but after consuming it in OutSystems, it gives a 415 unsupported data type error.
  •  The structure of the request and response in Out Systems is below.
  • Error

Please help me out with this issue.

Thanks,

2023-12-19 16-46-19
Castro Vieira

Hello, friend


Watch this video. If the problem persists, let me know.



https://www.youtube.com/watch?v=gNyWIeJYfG0

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Ratnesh,

You have defined an ordinary structure as REST method input, while it seems you need a Multipart/form-data payload instead. So the 415 error is correct. You should check out the documentation here which describes in detail how to consume a Multipart/form-data REST service.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.