Skip to content

GET /files/{fileID}のcontent-typeについて補足 #889

@H1rono

Description

@H1rono

docs/swagger.yamlより, GET /files/{fileID}で正常にレスポンスが返ってくる場合のドキュメント:

Jomon/docs/swagger.yaml

Lines 689 to 701 in edee2da

get:
operationId: getFile
tags:
- Files
description: 指定されたファイルを返す
responses:
"200":
description: 該当するファイルが存在した 返す
content:
application/octet-stream:
schema:
type: string
format: binary

これだけでは常にContent-Type: application/octet-streamで返されるように見えてしまう. 実際には適切なContent-Typeでレスポンスが返されるので, そのことをdescription(696行目)に明記する

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestgood first issueGood issue for new contributors to get started withv2About Jomon version2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions