Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellLuo committed Feb 26, 2022
1 parent 1442bbc commit 0f2ab54
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,16 @@ See more examples [here](examples).
If a Go method needs to correspond to more than one URI (or HTTP method), you can specify multiple `//kun:op` directives, which will produce multiple HTTP request operations.
Note that the only differences among these HTTP request operations are the path parameters.
Note that there are only three possible differences among these HTTP request operations:
- HTTP method
- URI
- Path parameters (defined in URI)
##### Arguments
- **method**: The request method.
- **pattern**: The request URL.
- **pattern**: The request URI.
+ NOTE: All variables in **pattern** will automatically be bound to their corresponding method arguments (match by names in *lower camel case*), as **path** parameters, if these variables have not yet been specified explicitly by `//kun:param`.
##### Examples
Expand Down

0 comments on commit 0f2ab54

Please sign in to comment.