Skip to content

name & description on endpoint not implemented yet ? #5

@parweb

Description

@parweb

If I not mistaking name & description on endpoint are not implemented yet ?

@http
    .GET('/user/:id')
    .name('get user') //    < -----   < -----     < -----     < -----     < -----     < ----- HERE
    .description('get one users') //  < -----     < -----     < -----     < -----     < ----- HERE
    .response<ReadUser>(200, 'Read a User by its ID')
    .response<Error>(404, 'User not found')
read(id: ReadUser['id']) {
    const user = users.find(user => user.id === id);
    if (!user) throw new HttpError('User not found', 404);
    return user;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions