# Generated with protoc-gen-openapi # https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi openapi: 3.0.3 info: title: EvidenceStore API description: Manages the storage of evidences version: 0.0.1 paths: /v1/evidence_store/evidence: post: tags: - EvidenceStore description: |- Stores an evidence to the evidence storage. Part of the public API, also exposed as REST. operationId: EvidenceStore_StoreEvidence requestBody: content: application/json: schema: $ref: '#/components/schemas/Evidence' required: true responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/StoreEvidenceResponse' /v1/evidence_store/evidences: get: tags: - EvidenceStore description: Returns all stored evidences. Part of the public API, also exposed as REST. operationId: EvidenceStore_ListEvidences parameters: - name: pageSize in: query schema: type: integer format: int32 - name: pageToken in: query schema: type: string responses: "200": description: OK content: application/json: schema: $ref: '#/components/schemas/ListEvidencesResponse' components: schemas: AnyJSONValue: oneOf: - type: string - type: number - type: integer - type: boolean - type: object - type: array items: $ref: '#/components/schemas/AnyJSONValue' description: AnyJSONValue is a "catch all" type that can hold any JSON value, except null as this is not allowed in OpenAPI Evidence: type: object properties: id: type: string description: the ID in a uuid format timestamp: type: string description: time of evidence creation format: RFC3339 serviceId: type: string description: Reference to a service this evidence was gathered from toolId: type: string description: Reference to the tool which provided the evidence raw: type: string description: Contains the evidence in its original form without following a defined schema, e.g. the raw JSON resource: $ref: '#/components/schemas/AnyJSONValue' description: An evidence resource ListEvidencesResponse: type: object properties: evidences: type: array items: $ref: '#/components/schemas/Evidence' nextPageToken: type: string StoreEvidenceResponse: type: object properties: status: type: boolean statusMessage: type: string tags: - name: EvidenceStore