Skip to content

List documents

GET
/v1/documents

List all documents

Contains a list of [DocumentInfo]s.

This is the primary view model for the compliance module.

Array<object>

Provides basic information about a document.

object
description
required
string
latest_version
required

A version number that follows the semantic versioning scheme.

Example

# use std::str::FromStr;
# use backend::views::document::Version;
let version_str = "1.0.0";
let version: Version = Version::from_str(version_str).unwrap();
assert_eq!(version.to_string(), "1.0.0");
Array<integer>
>= 3 items <= 3 items
slug
required
string
Example
cybersecurity-policy
state
required
One of:

The document has not been initialized yet. It is possible for the document to have details, meaning that a proposal is “open” to initialize it.

object
value
required
string
Allowed values: uninitialized
title
required
string