Мой swagger.yaml работает нормально, единственная проблема - заголовок контроля кеша.Я не вижу этого в ответе.Я определил это как ниже.Не могли бы вы дать мне знать, что с ним не так?
/{empId}/class:
get:
tags:
- "School"
summary: "Some Summary"
description: "Some description"
operationId: "getDataForEmp"
produces:
- "application/json;charset=UTF-8"
parameters:
- name: "empId"
in: "path"
description: "The emp id for which record is to be fetched."
required: true
type: "string"
responses:
200:
description: "Data retrieved successfully."
schema:
$ref: "#/definitions/MyResponse"
headers:
Cache-Control:
default: "public, max-age=43200"
401:
description: "You are not authorised to make this change."
403:
description: "Accessing the resource you were trying to reach is forbidden."
404:
description: "The resource you were trying to reach is not found."