#Http Content-type

5 messages · Page 1 of 1 (latest)

spring dawn
#

Hi! I have 2 applications. When first application sends response to second application, this response can be in content-type: application/json or application/zip
The question is how to get possibility to send response in application/zip format or send in application/json format if the second application need it

robust viperBOT
#

This post has been reserved for your question.

Hey @spring dawn! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

spring dawn
#

part of setup example:
responses:
201:
description: Created contact
headers:
consumerId:
$ref: '#/components/headers/consumerId'
timestamp:
$ref: '#/components/headers/timestamp'
content:
application/zip:
schema:
$ref: '#/components/schemas/ContactDto'

rain fern
#

you could use url parameters to know which content type needs to be dispatched