Skip to content

Record Get Handler

Allows to retrieve a record from your MongoDB instance.

typescript
type handlers = { 
  GetRecord: { 
    handle(context: Context): Promise<Response> 
  }
}

Endpoint

Method: GET Path: /your-endpoint/api/record/:sri

The get record handler supports returning a file as a response via override. Have a look at the overrides section for more info.