Skip to content

Is this correct server function signature to response a file? #50

@NeroBlackstone

Description

@NeroBlackstone

For download.yaml :

paths:
  /report:
    get:
      summary: Returns the report in the PDF format
      responses:
        '200':
          description: A PDF file
          content:
            application/pdf:
              schema:
                type: string
                format: binary

Julia server generate doc is:

@doc raw"""
Encapsulates generated server code for DownloadServer

The following server methods must be implemented:

- **report_get**
    - *invocation:* GET /report
    - *signature:* report_get(req::HTTP.Request;) -> String
"""

report_get(req::HTTP.Request;) -> String, is this the expected result?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions