Return the read-only Studio source index for the current or requested Net Operation Project revision.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://example.com/api/workspace/admin/net-operation-project/source-language/source-index"),};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/source-index';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/workspace/admin/net-operation-project/source-language/source-indexAuthorizations
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.
Responses
Section titled “Responses”OK
object
Read-only Studio source index for a Net Operation Project revision.
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.
Indexed source entries.
Studio navigation descriptor for one Net Operation Project source file.
object
Normalized source path.
Declared namespace when discoverable.
Primary class name when discoverable.
Function or data-source stable key when discoverable.
Function or data-source display name when discoverable.
Function shape when discoverable.
Entity target type when discoverable.
Diagnostics attached to this source path.
One C# diagnostic for a Net Operation Project source buffer.
object
Compiler diagnostic id.
Localized compiler diagnostic message.
Normalized source path when available.
One-based source range for a Net Operation Project language service result.
object
One-based start line number.
One-based start column.
One-based end line number.
One-based end column.
All diagnostics produced for indexed sources.
One C# diagnostic for a Net Operation Project source buffer.
object
Compiler diagnostic id.
Localized compiler diagnostic message.
Normalized source path when available.
One-based source range for a Net Operation Project language service result.
object
One-based start line number.
One-based start column.
One-based end line number.
One-based end column.
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 }, "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
object
Read-only Studio source index for a Net Operation Project revision.
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.
Indexed source entries.
Studio navigation descriptor for one Net Operation Project source file.
object
Normalized source path.
Declared namespace when discoverable.
Primary class name when discoverable.
Function or data-source stable key when discoverable.
Function or data-source display name when discoverable.
Function shape when discoverable.
Entity target type when discoverable.
Diagnostics attached to this source path.
One C# diagnostic for a Net Operation Project source buffer.
object
Compiler diagnostic id.
Localized compiler diagnostic message.
Normalized source path when available.
One-based source range for a Net Operation Project language service result.
object
One-based start line number.
One-based start column.
One-based end line number.
One-based end column.
All diagnostics produced for indexed sources.
One C# diagnostic for a Net Operation Project source buffer.
object
Compiler diagnostic id.
Localized compiler diagnostic message.
Normalized source path when available.
One-based source range for a Net Operation Project language service result.
object
One-based start line number.
One-based start column.
One-based end line number.
One-based end column.
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 }, "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
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Read-only Studio source index for a Net Operation Project revision.
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.
Indexed source entries.
Studio navigation descriptor for one Net Operation Project source file.
object
Normalized source path.
Declared namespace when discoverable.
Primary class name when discoverable.
Function or data-source stable key when discoverable.
Function or data-source display name when discoverable.
Function shape when discoverable.
Entity target type when discoverable.
Diagnostics attached to this source path.
One C# diagnostic for a Net Operation Project source buffer.
object
Compiler diagnostic id.
Localized compiler diagnostic message.
Normalized source path when available.
One-based source range for a Net Operation Project language service result.
object
One-based start line number.
One-based start column.
One-based end line number.
One-based end column.
All diagnostics produced for indexed sources.
One C# diagnostic for a Net Operation Project source buffer.
object
Compiler diagnostic id.
Localized compiler diagnostic message.
Normalized source path when available.
One-based source range for a Net Operation Project language service result.
object
One-based start line number.
One-based start column.
One-based end line number.
One-based end column.
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 }, "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 } ]}