@@ -15,12 +15,14 @@ namespace wave {
15
15
@ route ("/v1alpha2/container" )
16
16
interface ContainerService {
17
17
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." )
18
19
@ post op createContainer (@ body requestBody : ContainerRequest ): {
19
20
@ body response : ContainerResponse ;
20
21
@ statusCode statusCode : 200 ;
21
22
};
22
23
23
24
@ route ("/{requestId}" )
25
+ @ doc ("This endpoint allows you to get the details of a container request made to Wave." )
24
26
@ get op getContainerDetails (@ path requestId : string ): {
25
27
@ body response : WaveContainerRecord ;
26
28
@ statusCode statusCode : 200 ;
@@ -29,6 +31,7 @@ namespace wave {
29
31
};
30
32
31
33
@ route ("/{requestId}/status" )
34
+ @ doc ("This endpoint allows you to get the status of a container request made to Wave." )
32
35
@ get op getContainerStatus (@ path requestId : string ): {
33
36
@ body response : ContainerStatusResponse ;
34
37
@ statusCode statusCode : 200 ;
@@ -40,6 +43,7 @@ namespace wave {
40
43
@ route ("/v1alpha1/builds/{buildId}" )
41
44
interface BuildService {
42
45
46
+ @ doc ("Provides status of build against buildId passed as path variable." )
43
47
@ get op getBuildRecord (@ path buildId : string ): {
44
48
@ body response : WaveBuildRecord ;
45
49
@ statusCode statusCode : 200 ;
@@ -48,6 +52,7 @@ namespace wave {
48
52
};
49
53
50
54
@ route ("/status" )
55
+ @ doc ("Provides status of build against buildId passed as path variable." )
51
56
@ get op getBuildStatus (@ path buildId : string ): {
52
57
@ body response : BuildStatusResponse ;
53
58
@ statusCode statusCode : 200 ;
@@ -56,6 +61,7 @@ namespace wave {
56
61
};
57
62
58
63
@ route ("/logs" )
64
+ @ doc ("Supply logs corresponding to the specified buildId within the API request." )
59
65
@ get op getBuildLogs (@ path buildId : string ): {
60
66
@ body response : string ;
61
67
@ statusCode statusCode : 200 ;
@@ -67,7 +73,7 @@ namespace wave {
67
73
68
74
@ route ("/v1alpha1/scans/{scanId}" )
69
75
interface scanService {
70
-
76
+ @ doc ( "This endpoint allows you to get the details of a container scan request made to Wave." )
71
77
@ get op scanImage (@ path scanId : string ) : {
72
78
@ body response : WaveScanRecord ;
73
79
@ statusCode statusCode : 200 ;
@@ -79,7 +85,7 @@ namespace wave {
79
85
80
86
@ route ("/v1alpha1/inspect" )
81
87
interface InspectService {
82
-
88
+ @ doc ( "This endpoint returns the metadata about provided container image." )
83
89
@ post op inspectContainer (@ body requestBody : ContainerInspectRequest ): {
84
90
@ body response : ContainerInspectResponse ;
85
91
@ statusCode statusCode : 200 ;
@@ -90,12 +96,14 @@ namespace wave {
90
96
}
91
97
92
98
@ route ("/v1alpha2/validate-creds" )
99
+ @ doc ("This endpoint allows you to validate the credentials of a container registry." )
93
100
@ post op validateCredsV2 (@ body request : ValidateRegistryCredsRequest ): boolean ;
94
101
95
102
@ route ("/v1alpha1/mirrors" )
96
103
interface getMirrorRecord {
97
104
98
105
@ route ("/{mirrorId}" )
106
+ @ doc ("This endpoint allows you to get the details of a container mirror request made to Wave." )
99
107
@ get op containerMirror (@ path mirrorId : string ): {
100
108
@ body response : ContainerMirrorResponse ;
101
109
@ statusCode statusCode : 200 ;
0 commit comments