Return C# completion items for the current Net Operation Project source buffer.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/admin/net-operation-project/source-language/completions"), Content = new StringContent("{ \"RevisionId\": \"example\", \"Path\": \"example\", \"Content\": \"example\", \"LineNumber\": 1, \"Column\": 1, \"SchemaContractHash\": \"example\" }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/admin/net-operation-project/source-language/completions';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"RevisionId":"example","Path":"example","Content":"example","LineNumber":1,"Column":1,"SchemaContractHash":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Request C# completion items for a Net Operation Project source buffer.
object
Optional source revision id. When omitted, the working revision is used, then the current revision.
Normalized relative source path.
Current editor buffer content for the requested path.
One-based editor line number.
One-based editor column.
Optional schema contract hash read with the editor buffer. A mismatch rejects a stale language request.
Examplegenerated
{ "RevisionId": "example", "Path": "example", "Content": "example", "LineNumber": 1, "Column": 1, "SchemaContractHash": "example"}Request C# completion items for a Net Operation Project source buffer.
object
Optional source revision id. When omitted, the working revision is used, then the current revision.
Normalized relative source path.
Current editor buffer content for the requested path.
One-based editor line number.
One-based editor column.
Optional schema contract hash read with the editor buffer. A mismatch rejects a stale language request.
Examplegenerated
{ "RevisionId": "example", "Path": "example", "Content": "example", "LineNumber": 1, "Column": 1, "SchemaContractHash": "example"}Request C# completion items for a Net Operation Project source buffer.
object
Optional source revision id. When omitted, the working revision is used, then the current revision.
Normalized relative source path.
Current editor buffer content for the requested path.
One-based editor line number.
One-based editor column.
Optional schema contract hash read with the editor buffer. A mismatch rejects a stale language request.
Examplegenerated
{ "RevisionId": "example", "Path": "example", "Content": "example", "LineNumber": 1, "Column": 1, "SchemaContractHash": "example"}Responses
Section titled “Responses”OK
object
C# completion result for a Net Operation Project source buffer.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Completion items.
One C# completion item for a Net Operation Project source buffer.
object
Display label.
Roslyn completion tag mapped for the editor.
Short item detail.
Optional documentation text.
Text inserted by the editor.
Optional sort key.
Optional filter key.
External package reference resolution status for a Net Operation Project language response.
object
Number of package references considered for the language snapshot.
Number of metadata references resolved from package compile assets.
Optional localized status message.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "DependencyStatus": { "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
C# completion result for a Net Operation Project source buffer.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Completion items.
One C# completion item for a Net Operation Project source buffer.
object
Display label.
Roslyn completion tag mapped for the editor.
Short item detail.
Optional documentation text.
Text inserted by the editor.
Optional sort key.
Optional filter key.
External package reference resolution status for a Net Operation Project language response.
object
Number of package references considered for the language snapshot.
Number of metadata references resolved from package compile assets.
Optional localized status message.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "DependencyStatus": { "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
C# completion result for a Net Operation Project source buffer.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Completion items.
One C# completion item for a Net Operation Project source buffer.
object
Display label.
Roslyn completion tag mapped for the editor.
Short item detail.
Optional documentation text.
Text inserted by the editor.
Optional sort key.
Optional filter key.
External package reference resolution status for a Net Operation Project language response.
object
Number of package references considered for the language snapshot.
Number of metadata references resolved from package compile assets.
Optional localized status message.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "DependencyStatus": { "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
C# completion result for a Net Operation Project source buffer.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Completion items.
One C# completion item for a Net Operation Project source buffer.
object
Display label.
Roslyn completion tag mapped for the editor.
Short item detail.
Optional documentation text.
Text inserted by the editor.
Optional sort key.
Optional filter key.
External package reference resolution status for a Net Operation Project language response.
object
Number of package references considered for the language snapshot.
Number of metadata references resolved from package compile assets.
Optional localized status message.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "DependencyStatus": { "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}