Skip to content

Return source tree metadata for the current working or requested Net Operation Project revision.

GET
/api/workspace/admin/net-operation-project/source-tree
curl --request GET \
--url https://example.com/api/workspace/admin/net-operation-project/source-tree
  • None
revisionId
string
access_token
string

Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.

OK

Media typeapplication/json
object
Data

Source tree metadata for a Net Operation Project revision.

object
Revision

Immutable Net Operation Project source revision.

object
Id

Revision identifier.

string
nullable
ProjectId

Project identifier.

string
nullable
RevisionNumber

Monotonic revision number.

integer format: int32
SourceKind
integer format: int32
Allowed values: 0 1 2 3
Status
integer format: int32
Allowed values: 0 1 2 3 4
Comment

Optional revision comment.

string
nullable
SourceChecksum

Canonical source tree checksum.

string
nullable
SchemaContractHash

Optional schema contract hash captured with the revision.

string
nullable
CreatedAt

Creation timestamp.

string format: date-time
CreatedByUserId

Creating user identifier.

string
nullable
FileCount

Number of files stored in the revision.

integer format: int32
Files

Source file entries without file content.

Array<object>
nullable

One source file entry in a Net Operation Project source tree.

object
Id

File row identifier.

string
nullable
RevisionId

Revision identifier.

string
nullable
Path

Normalized relative project path.

string
nullable
ContentHash

SHA-256 hash of the UTF-8 content.

string
nullable
SizeBytes

UTF-8 byte length.

integer format: int64
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Revision": {
"SourceKind": 0,
"Status": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Bad Request

Media typeapplication/json
object
Data

Source tree metadata for a Net Operation Project revision.

object
Revision

Immutable Net Operation Project source revision.

object
Id

Revision identifier.

string
nullable
ProjectId

Project identifier.

string
nullable
RevisionNumber

Monotonic revision number.

integer format: int32
SourceKind
integer format: int32
Allowed values: 0 1 2 3
Status
integer format: int32
Allowed values: 0 1 2 3 4
Comment

Optional revision comment.

string
nullable
SourceChecksum

Canonical source tree checksum.

string
nullable
SchemaContractHash

Optional schema contract hash captured with the revision.

string
nullable
CreatedAt

Creation timestamp.

string format: date-time
CreatedByUserId

Creating user identifier.

string
nullable
FileCount

Number of files stored in the revision.

integer format: int32
Files

Source file entries without file content.

Array<object>
nullable

One source file entry in a Net Operation Project source tree.

object
Id

File row identifier.

string
nullable
RevisionId

Revision identifier.

string
nullable
Path

Normalized relative project path.

string
nullable
ContentHash

SHA-256 hash of the UTF-8 content.

string
nullable
SizeBytes

UTF-8 byte length.

integer format: int64
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Revision": {
"SourceKind": 0,
"Status": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Forbidden

Media typeapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Media typeapplication/json
object
Data

Source tree metadata for a Net Operation Project revision.

object
Revision

Immutable Net Operation Project source revision.

object
Id

Revision identifier.

string
nullable
ProjectId

Project identifier.

string
nullable
RevisionNumber

Monotonic revision number.

integer format: int32
SourceKind
integer format: int32
Allowed values: 0 1 2 3
Status
integer format: int32
Allowed values: 0 1 2 3 4
Comment

Optional revision comment.

string
nullable
SourceChecksum

Canonical source tree checksum.

string
nullable
SchemaContractHash

Optional schema contract hash captured with the revision.

string
nullable
CreatedAt

Creation timestamp.

string format: date-time
CreatedByUserId

Creating user identifier.

string
nullable
FileCount

Number of files stored in the revision.

integer format: int32
Files

Source file entries without file content.

Array<object>
nullable

One source file entry in a Net Operation Project source tree.

object
Id

File row identifier.

string
nullable
RevisionId

Revision identifier.

string
nullable
Path

Normalized relative project path.

string
nullable
ContentHash

SHA-256 hash of the UTF-8 content.

string
nullable
SizeBytes

UTF-8 byte length.

integer format: int64
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Revision": {
"SourceKind": 0,
"Status": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}