Skip to content

Commit

Permalink
feat(pkg/api): docAudit returning timestamp and possibility to omit p…
Browse files Browse the repository at this point in the history
…ayloads

Signed-off-by: Jeronimo Irazabal <[email protected]>
  • Loading branch information
jeroiraz committed Oct 11, 2023
1 parent ad89948 commit ed6ad99
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 11 deletions.
12 changes: 10 additions & 2 deletions pkg/api/openapi/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -790,12 +790,16 @@
"pageSize": {
"type": "integer",
"format": "int64"
},
"omitPayload": {
"type": "boolean"
}
},
"required": [
"desc",
"page",
"pageSize"
"pageSize",
"omitPayload"
]
},
"modelAuditDocumentResponse": {
Expand Down Expand Up @@ -973,6 +977,10 @@
},
"username": {
"type": "string"
},
"ts": {
"type": "string",
"format": "int64"
}
},
"required": [
Expand Down Expand Up @@ -1687,4 +1695,4 @@
"ApiKeyAuth": []
}
]
}
}
5 changes: 4 additions & 1 deletion pkg/api/proto/documents.proto
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ message DocumentAtRevision {
DocumentMetadata metadata = 4;
google.protobuf.Struct document = 5;
string username = 6;
int64 ts = 7;
}

message DocumentMetadata {
Expand Down Expand Up @@ -493,7 +494,8 @@ message AuditDocumentRequest {
"documentId",
"desc",
"page",
"pageSize"
"pageSize",
"omitPayload"
]
}
};
Expand All @@ -503,6 +505,7 @@ message AuditDocumentRequest {
bool desc = 3;
uint32 page = 4;
uint32 pageSize = 5;
bool omitPayload = 6;
}

message AuditDocumentResponse {
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/protomodel/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@
| desc | [bool](#bool) | | |
| page | [uint32](#uint32) | | |
| pageSize | [uint32](#uint32) | | |
| omitPayload | [bool](#bool) | | |



Expand Down Expand Up @@ -428,6 +429,7 @@
| metadata | [DocumentMetadata](#immudb.model.DocumentMetadata) | | |
| document | [google.protobuf.Struct](#google.protobuf.Struct) | | |
| username | [string](#string) | | |
| ts | [int64](#int64) | | |



Expand Down
36 changes: 28 additions & 8 deletions pkg/api/protomodel/documents.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ed6ad99

Please sign in to comment.