Skip to content

Return the read-only Studio source index for the current or requested Net Operation Project revision.

GET
/api/workspace/admin/net-operation-project/source-language/source-index
curl --request GET \
--url https://example.com/api/workspace/admin/net-operation-project/source-language/source-index
  • 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

Read-only Studio source index 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
Entries

Indexed source entries.

Array<object>
nullable

Studio navigation descriptor for one Net Operation Project source file.

object
Path

Normalized source path.

string
nullable
Kind
integer format: int32
Allowed values: 0 1 2 3 4 5 6 7
Namespace

Declared namespace when discoverable.

string
nullable
ClassName

Primary class name when discoverable.

string
nullable
StableKey

Function or data-source stable key when discoverable.

string
nullable
DisplayName

Function or data-source display name when discoverable.

string
nullable
FunctionShape

Function shape when discoverable.

string
nullable
EntityTarget

Entity target type when discoverable.

string
nullable
Diagnostics

Diagnostics attached to this source path.

Array<object>
nullable

One C# diagnostic for a Net Operation Project source buffer.

object
Severity
integer format: int32
Allowed values: 0 1 2 3
Origin
integer format: int32
Allowed values: 0 1
Code

Compiler diagnostic id.

string
nullable
Message

Localized compiler diagnostic message.

string
nullable
Path

Normalized source path when available.

string
nullable
Range

One-based source range for a Net Operation Project language service result.

object
StartLineNumber

One-based start line number.

integer format: int32
StartColumn

One-based start column.

integer format: int32
EndLineNumber

One-based end line number.

integer format: int32
EndColumn

One-based end column.

integer format: int32
Diagnostics

All diagnostics produced for indexed sources.

Array<object>
nullable

One C# diagnostic for a Net Operation Project source buffer.

object
Severity
integer format: int32
Allowed values: 0 1 2 3
Origin
integer format: int32
Allowed values: 0 1
Code

Compiler diagnostic id.

string
nullable
Message

Localized compiler diagnostic message.

string
nullable
Path

Normalized source path when available.

string
nullable
Range

One-based source range for a Net Operation Project language service result.

object
StartLineNumber

One-based start line number.

integer format: int32
StartColumn

One-based start column.

integer format: int32
EndLineNumber

One-based end line number.

integer format: int32
EndColumn

One-based end column.

integer format: int32
DependencyStatus

External package reference resolution status for a Net Operation Project language response.

object
Status
integer format: int32
Allowed values: 0 1 2 3
PackageReferenceCount

Number of package references considered for the language snapshot.

integer format: int32
ResolvedReferenceCount

Number of metadata references resolved from package compile assets.

integer format: int32
Message

Optional localized status message.

string
nullable
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
},
"Entries": [
{
"Kind": 0,
"Diagnostics": [
{
"Severity": 0,
"Origin": 0
}
]
}
],
"Diagnostics": [
{
"Severity": 0,
"Origin": 0
}
],
"DependencyStatus": {
"Status": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Bad Request

Media typeapplication/json
object
Data

Read-only Studio source index 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
Entries

Indexed source entries.

Array<object>
nullable

Studio navigation descriptor for one Net Operation Project source file.

object
Path

Normalized source path.

string
nullable
Kind
integer format: int32
Allowed values: 0 1 2 3 4 5 6 7
Namespace

Declared namespace when discoverable.

string
nullable
ClassName

Primary class name when discoverable.

string
nullable
StableKey

Function or data-source stable key when discoverable.

string
nullable
DisplayName

Function or data-source display name when discoverable.

string
nullable
FunctionShape

Function shape when discoverable.

string
nullable
EntityTarget

Entity target type when discoverable.

string
nullable
Diagnostics

Diagnostics attached to this source path.

Array<object>
nullable

One C# diagnostic for a Net Operation Project source buffer.

object
Severity
integer format: int32
Allowed values: 0 1 2 3
Origin
integer format: int32
Allowed values: 0 1
Code

Compiler diagnostic id.

string
nullable
Message

Localized compiler diagnostic message.

string
nullable
Path

Normalized source path when available.

string
nullable
Range

One-based source range for a Net Operation Project language service result.

object
StartLineNumber

One-based start line number.

integer format: int32
StartColumn

One-based start column.

integer format: int32
EndLineNumber

One-based end line number.

integer format: int32
EndColumn

One-based end column.

integer format: int32
Diagnostics

All diagnostics produced for indexed sources.

Array<object>
nullable

One C# diagnostic for a Net Operation Project source buffer.

object
Severity
integer format: int32
Allowed values: 0 1 2 3
Origin
integer format: int32
Allowed values: 0 1
Code

Compiler diagnostic id.

string
nullable
Message

Localized compiler diagnostic message.

string
nullable
Path

Normalized source path when available.

string
nullable
Range

One-based source range for a Net Operation Project language service result.

object
StartLineNumber

One-based start line number.

integer format: int32
StartColumn

One-based start column.

integer format: int32
EndLineNumber

One-based end line number.

integer format: int32
EndColumn

One-based end column.

integer format: int32
DependencyStatus

External package reference resolution status for a Net Operation Project language response.

object
Status
integer format: int32
Allowed values: 0 1 2 3
PackageReferenceCount

Number of package references considered for the language snapshot.

integer format: int32
ResolvedReferenceCount

Number of metadata references resolved from package compile assets.

integer format: int32
Message

Optional localized status message.

string
nullable
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
},
"Entries": [
{
"Kind": 0,
"Diagnostics": [
{
"Severity": 0,
"Origin": 0
}
]
}
],
"Diagnostics": [
{
"Severity": 0,
"Origin": 0
}
],
"DependencyStatus": {
"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

Read-only Studio source index 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
Entries

Indexed source entries.

Array<object>
nullable

Studio navigation descriptor for one Net Operation Project source file.

object
Path

Normalized source path.

string
nullable
Kind
integer format: int32
Allowed values: 0 1 2 3 4 5 6 7
Namespace

Declared namespace when discoverable.

string
nullable
ClassName

Primary class name when discoverable.

string
nullable
StableKey

Function or data-source stable key when discoverable.

string
nullable
DisplayName

Function or data-source display name when discoverable.

string
nullable
FunctionShape

Function shape when discoverable.

string
nullable
EntityTarget

Entity target type when discoverable.

string
nullable
Diagnostics

Diagnostics attached to this source path.

Array<object>
nullable

One C# diagnostic for a Net Operation Project source buffer.

object
Severity
integer format: int32
Allowed values: 0 1 2 3
Origin
integer format: int32
Allowed values: 0 1
Code

Compiler diagnostic id.

string
nullable
Message

Localized compiler diagnostic message.

string
nullable
Path

Normalized source path when available.

string
nullable
Range

One-based source range for a Net Operation Project language service result.

object
StartLineNumber

One-based start line number.

integer format: int32
StartColumn

One-based start column.

integer format: int32
EndLineNumber

One-based end line number.

integer format: int32
EndColumn

One-based end column.

integer format: int32
Diagnostics

All diagnostics produced for indexed sources.

Array<object>
nullable

One C# diagnostic for a Net Operation Project source buffer.

object
Severity
integer format: int32
Allowed values: 0 1 2 3
Origin
integer format: int32
Allowed values: 0 1
Code

Compiler diagnostic id.

string
nullable
Message

Localized compiler diagnostic message.

string
nullable
Path

Normalized source path when available.

string
nullable
Range

One-based source range for a Net Operation Project language service result.

object
StartLineNumber

One-based start line number.

integer format: int32
StartColumn

One-based start column.

integer format: int32
EndLineNumber

One-based end line number.

integer format: int32
EndColumn

One-based end column.

integer format: int32
DependencyStatus

External package reference resolution status for a Net Operation Project language response.

object
Status
integer format: int32
Allowed values: 0 1 2 3
PackageReferenceCount

Number of package references considered for the language snapshot.

integer format: int32
ResolvedReferenceCount

Number of metadata references resolved from package compile assets.

integer format: int32
Message

Optional localized status message.

string
nullable
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
},
"Entries": [
{
"Kind": 0,
"Diagnostics": [
{
"Severity": 0,
"Origin": 0
}
]
}
],
"Diagnostics": [
{
"Severity": 0,
"Origin": 0
}
],
"DependencyStatus": {
"Status": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}