Skip to content

Commit

Permalink
Fix mirror typespec (#670)
Browse files Browse the repository at this point in the history
Signed-off-by: munishchouhan <hrma017@gmail.com>
  • Loading branch information
munishchouhan authored Oct 4, 2024
1 parent fb59413 commit 5b5697f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions typespec/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,16 @@ namespace wave {
@route("validate-creds")
@post op validateCreds(@body request: ValidateRegistryCredsRequest): boolean;

@route("/v1alpha1/mirrors/{mirrorId}")
interface getMirrorRecord {
@post op inspectContainer(@path mirrorId: string): {
@body response: ContainerMirrorResponse;
@statusCode statusCode: 200;
}|{
@statusCode statusCode: 404;
};

}
@route("/v1alpha1/mirrors")
interface getMirrorRecord {

@route("/{mirrorId}")
@get op containerMirror(@path mirrorId: string): {
@body response: ContainerMirrorResponse;
@statusCode statusCode: 200;
}|{
@statusCode statusCode: 404;
};
}

}

0 comments on commit 5b5697f

Please sign in to comment.