title: 415 unsupported media type content-type application/pgp-encrypted while sending POST message
body: <p>I'm working in REST API development project. The client have provided the OpenAPI specification for the API which they are expecting.</p>
  <p>We have used the openAPI generator cli to generate the API from the OpenAPI specs given by the client.
  Following are the two APIs</p>
  <p><strong>1. /requestFile:</strong></p>
  <p>This API is expected to accept JSON payload and produces payload of content type application/pgp-encrypted.
  We have annotated the API as below.</p>
  <pre><code>@postmapping(value=&quot;/requestFile&quot;,consumes={&quot;application/json&quot;},produces={&quot;application/pgp-encrypted&quot;})
  </code></pre>
  <p>The expectation is to transfer a PGP encrypted JSON file as a response to the POST message.</p>
  <p>I'm not sure how to transfer the PGP encrypted file as a response, I have searched for some references but most of them are using maultipart file to transfer binary files. Whereas the content type of multipartfiles is not same as &quot;application/pgp-encrypted&quot;.</p>
  <p>I need some help in transferring this pgp encrypted file as a response to the POST message via REST API.</p>
  <p><strong>2. /feedback</strong></p>
  <p>This API consumes payload of type application/pgp-encrypted and produces a simple http response code back to the client. We have annotated the API as below.</p>
  <pre><code>@postmapping(value=&quot;/feedback&quot;, consumes={&quot;application/pgp-encrypted&quot;})
  </code></pre>
  <p>When I try to send a POST message using POSTMAN with content type application/pgp-encrypted, we are getting a 415 unsupported mediatype error.</p>
  <p>I need to understand how do we send pgp-encrypted file as a payload via POSTMAN and what is the content type I must use to achieve this.</p>