Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

906 B
Raw Blame
# Schema: PrincipalCollectionModel
---
allOf:
  - $ref: './offset_paginated_collection_model.yml'
  - type: object
    required:
      - _embedded
    properties:
      _embedded:
        type: object
        required:
          - elements
        properties:
          elements:
            type: array
            items:
              anyOf:
                - $ref: './user_model.yml'
                - $ref: './placeholder_user_model.yml'
                - $ref: './group_model.yml'

example:
  _type: Collection
  total: 3
  count: 3
  _links:
    self:
      href: '/api/v3/principals'
  _embedded:
    elements:
      - _hint: User resource shortened for brevity
        _type: User
        id: 1337
      - _hint: Group resource shortened for brevity
        _type: Group
        id: 1338
      - _hint: PlaceholderUser resource shortened for brevity
        _type: PlaceholderUser
        id: 1339