Skip to content

Return C# completion items for the current Net Operation Project source buffer.

POST
/api/workspace/admin/net-operation-project/source-language/completions
curl --request POST \
--url https://example.com/api/workspace/admin/net-operation-project/source-language/completions \
--header 'Content-Type: application/json' \
--data '{ "RevisionId": "example", "Path": "example", "Content": "example", "LineNumber": 1, "Column": 1, "SchemaContractHash": "example" }'
  • None
access_token
string

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

Request C# completion items for a Net Operation Project source buffer.

object
RevisionId

Optional source revision id. When omitted, the working revision is used, then the current revision.

string
nullable
Path

Normalized relative source path.

string
nullable
Content

Current editor buffer content for the requested path.

string
nullable
LineNumber

One-based editor line number.

integer format: int32
Column

One-based editor column.

integer format: int32
SchemaContractHash

Optional schema contract hash read with the editor buffer. A mismatch rejects a stale language request.

string
nullable
Examplegenerated
{
"RevisionId": "example",
"Path": "example",
"Content": "example",
"LineNumber": 1,
"Column": 1,
"SchemaContractHash": "example"
}

OK

Media typeapplication/json
object
Data

C# completion result for a Net Operation Project source buffer.

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
Items

Completion items.

Array<object>
nullable

One C# completion item for a Net Operation Project source buffer.

object
Label

Display label.

string
nullable
Kind

Roslyn completion tag mapped for the editor.

string
nullable
Detail

Short item detail.

string
nullable
Documentation

Optional documentation text.

string
nullable
InsertText

Text inserted by the editor.

string
nullable
SortText

Optional sort key.

string
nullable
FilterText

Optional filter key.

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

Bad Request

Media typeapplication/json
object
Data

C# completion result for a Net Operation Project source buffer.

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
Items

Completion items.

Array<object>
nullable

One C# completion item for a Net Operation Project source buffer.

object
Label

Display label.

string
nullable
Kind

Roslyn completion tag mapped for the editor.

string
nullable
Detail

Short item detail.

string
nullable
Documentation

Optional documentation text.

string
nullable
InsertText

Text inserted by the editor.

string
nullable
SortText

Optional sort key.

string
nullable
FilterText

Optional filter key.

string
nullable
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
},
"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

C# completion result for a Net Operation Project source buffer.

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
Items

Completion items.

Array<object>
nullable

One C# completion item for a Net Operation Project source buffer.

object
Label

Display label.

string
nullable
Kind

Roslyn completion tag mapped for the editor.

string
nullable
Detail

Short item detail.

string
nullable
Documentation

Optional documentation text.

string
nullable
InsertText

Text inserted by the editor.

string
nullable
SortText

Optional sort key.

string
nullable
FilterText

Optional filter key.

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

Conflict

Media typeapplication/json
object
Data

C# completion result for a Net Operation Project source buffer.

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
Items

Completion items.

Array<object>
nullable

One C# completion item for a Net Operation Project source buffer.

object
Label

Display label.

string
nullable
Kind

Roslyn completion tag mapped for the editor.

string
nullable
Detail

Short item detail.

string
nullable
Documentation

Optional documentation text.

string
nullable
InsertText

Text inserted by the editor.

string
nullable
SortText

Optional sort key.

string
nullable
FilterText

Optional filter key.

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