-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4624 from irunika/http-matrix-param-support
[HTTP] Sample Update for Matrix Parameters
- Loading branch information
Showing
8 changed files
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
docs/ballerina-by-example/examples/query-and-path-param/query-and-path-param.client.sh
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
docs/ballerina-by-example/examples/query-and-path-param/query-and-path-param.description
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
docs/ballerina-by-example/examples/query-and-path-param/query-and-path-param.server.sh
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
.../ballerina-by-example/examples/query-path-and-matrix-param/query-and-path-param.client.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$ curl "http://localhost:9090/sample/path;a=4;b=5/value1;x=10;y=15?bar=value2" | ||
{ | ||
"pathParam": "value1", | ||
"queryParam": "value2", | ||
"matrix": { | ||
"path": "a=4, b=5", | ||
"foo": "x=10, y=15" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...a-by-example/examples/query-path-and-matrix-param/query-path-and-matrix-param.description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Ballerina support extracting values PathParam, QueryParam and MatrixParam. |
3 changes: 3 additions & 0 deletions
3
...ina-by-example/examples/query-path-and-matrix-param/query-path-and-matrix-param.server.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$ ballerina run query-path-and-matrix-param.bal | ||
ballerina: deploying service(s) in '.../query-path-and-matrix-param.bal' | ||
ballerina: started HTTP/WS server connector 0.0.0.0:9090 |