Skip to content

Commit a447d8f

Browse files
committed
added route doc
Signed-off-by: munishchouhan <[email protected]>
1 parent a507d54 commit a447d8f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

typespec/routes.tsp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ namespace wave {
1515
@route("/v1alpha2/container")
1616
interface ContainerService {
1717

18+
@doc("This endpoint allows you to submit a request to access a private container registry via Wave, or build a container image on-the-fly with a Dockerfile or Conda recipe file and returns the name of the container request made available by Wave.")
1819
@post op createContainer(@body requestBody: ContainerRequest): {
1920
@body response: ContainerResponse;
2021
@statusCode statusCode: 200;
2122
};
2223

2324
@route("/{requestId}")
25+
@doc("This endpoint allows you to get the details of a container request made to Wave.")
2426
@get op getContainerDetails(@path requestId: string): {
2527
@body response: WaveContainerRecord;
2628
@statusCode statusCode: 200;
@@ -29,6 +31,7 @@ namespace wave {
2931
};
3032

3133
@route("/{requestId}/status")
34+
@doc("This endpoint allows you to get the status of a container request made to Wave.")
3235
@get op getContainerStatus(@path requestId: string): {
3336
@body response: ContainerStatusResponse;
3437
@statusCode statusCode: 200;
@@ -40,6 +43,7 @@ namespace wave {
4043
@route("/v1alpha1/builds/{buildId}")
4144
interface BuildService {
4245

46+
@doc("Provides status of build against buildId passed as path variable.")
4347
@get op getBuildRecord(@path buildId: string): {
4448
@body response: WaveBuildRecord;
4549
@statusCode statusCode: 200;
@@ -48,6 +52,7 @@ namespace wave {
4852
};
4953

5054
@route("/status")
55+
@doc("Provides status of build against buildId passed as path variable.")
5156
@get op getBuildStatus(@path buildId: string): {
5257
@body response: BuildStatusResponse;
5358
@statusCode statusCode: 200;
@@ -56,6 +61,7 @@ namespace wave {
5661
};
5762

5863
@route("/logs")
64+
@doc("Supply logs corresponding to the specified buildId within the API request.")
5965
@get op getBuildLogs(@path buildId: string): {
6066
@body response: string;
6167
@statusCode statusCode: 200;
@@ -67,7 +73,7 @@ namespace wave {
6773

6874
@route("/v1alpha1/scans/{scanId}")
6975
interface scanService{
70-
76+
@doc("This endpoint allows you to get the details of a container scan request made to Wave.")
7177
@get op scanImage(@path scanId: string) : {
7278
@body response: WaveScanRecord;
7379
@statusCode statusCode: 200;
@@ -79,7 +85,7 @@ namespace wave {
7985

8086
@route("/v1alpha1/inspect")
8187
interface InspectService {
82-
88+
@doc("This endpoint returns the metadata about provided container image.")
8389
@post op inspectContainer(@body requestBody: ContainerInspectRequest): {
8490
@body response: ContainerInspectResponse;
8591
@statusCode statusCode: 200;
@@ -90,12 +96,14 @@ namespace wave {
9096
}
9197

9298
@route("/v1alpha2/validate-creds")
99+
@doc("This endpoint allows you to validate the credentials of a container registry.")
93100
@post op validateCredsV2(@body request: ValidateRegistryCredsRequest): boolean;
94101

95102
@route("/v1alpha1/mirrors")
96103
interface getMirrorRecord {
97104

98105
@route("/{mirrorId}")
106+
@doc("This endpoint allows you to get the details of a container mirror request made to Wave.")
99107
@get op containerMirror(@path mirrorId: string): {
100108
@body response: ContainerMirrorResponse;
101109
@statusCode statusCode: 200;

0 commit comments

Comments
 (0)