Skip to content

Sentry REST API documentation #475

@elpiel

Description

@elpiel

We need a way to easily document the REST API of sentry in using rustdoc.
Two ideas come to mind:

  • Doc macro for serialization inside the doc comments - It's more difficult than expected, this is put on hold
  • Building json/queries example files using Rust and include them inside the docs

Doc macro for serialization (on hold)

We need to serialize to json & urlencode fir structs inside doc comments.

A similar macros to https://github.com/scrabsha/dep-doc with arguments of rust structs and expression:
let my_struct = MyStruct { field: .. }

with the following variants:

  • doc_urlencode! - urlencode the struct and print it in docs
  • doc_json! - pretty-print the struct in json format inside the docs

Building docs

We now build docs based on aip-61-adex-v5 branch with default path to sentry crate and we deploy it with GH pages at:

https://ambiretech.github.io/adex-validator-stack-rust

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