Skip to content

Wrapper for pure GET without any parameters #72

Open
@suntong

Description

@suntong

How should I write a Handler wrapper for pure GET operation that has no any parameters?

All Handler wrappers seems to need to wrap onto something, of what the user is requesting:

type ScheduleTrainingHandler decorator.CommandHandler[ScheduleTraining]

Then passes on such user requests to the Handler in the end.

However, for a pure GET operation that has no any parameters, like /health that I need to return CPU & Mem info, how should I write a Handler wrapper for it please?

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