Skip to content

Commit

Permalink
Add readonly trait to GET operation to curb Smithy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol authored Apr 5, 2024
1 parent a214361 commit 4fa26f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/g8/src/main/smithy/hello.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ service HelloWorldService {
operations: [Hello]
}

@readonly
@http(method: "GET", uri: "/hello/{name}", code: 200)
operation Hello {
input: Person,
Expand Down

0 comments on commit 4fa26f7

Please sign in to comment.