Skip to content

Commit

Permalink
corrected container route
Browse files Browse the repository at this point in the history
Signed-off-by: munishchouhan <hrma017@gmail.com>
  • Loading branch information
munishchouhan committed Oct 9, 2024
1 parent 3914a7d commit a1a657f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions typespec/models/ContainerRequest.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import "./ContainerConfig.tsp";
import "./Packages.tsp";
import "./ScanMode.tsp";
import "./ScanLevel.tsp";

@doc("Request payload for creating a container token.")
model ContainerRequest {
buildContext: ContainerLayer;
Expand Down
4 changes: 2 additions & 2 deletions typespec/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ namespace wave {
@statusCode statusCode: 200;
};

@route("/{token}")
@get op getContainerDetails(@path token: string): {
@route("/container/{requestId}")
@get op getContainerDetails(@path requestId: string): {
@body response: WaveContainerRecord;
@statusCode statusCode: 200;
}|{
Expand Down

0 comments on commit a1a657f

Please sign in to comment.