@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api The Mercure protocol
@version 0.3.2
@auth Bearer bearer | ApiKey mercureAuthorization in cookie
@endpoints 5
@toc .well-known(5)

@endpoint GET /.well-known/mercure
@required {topic: [str]}
@optional {Last-Event-ID: str, Last-Event-ID: str}
@returns(200)
@errors {400, 401}

@endpoint POST /.well-known/mercure
@returns(200)
@errors {400, 401}

@endpoint GET /.well-known/mercure/subscriptions
@returns(200)
@errors {401}

@endpoint GET /.well-known/mercure/subscriptions/{topic}
@required {topic: str}
@returns(200)
@errors {401}

@endpoint GET /.well-known/mercure/subscriptions/{topic}/{subscriber}
@required {topic: str, subscriber: str}
@returns(200)
@errors {401}

@end
