Skip to content

Commit 085a592

Browse files
author
Josh Newman
committed
feat: add query, header, and cookie parameters
1 parent 836ffac commit 085a592

File tree

7 files changed

+236
-100
lines changed

7 files changed

+236
-100
lines changed

api/oapi/v1/method.pb.go

Lines changed: 67 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/oapi/v1/method.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,13 @@ message MethodOptions {
5050

5151
// Path parameters for the method.
5252
repeated Parameter path_parameter = 12;
53+
54+
// Query parameters for the method.
55+
repeated Parameter query_parameter = 13;
56+
57+
// Header parameters for the method.
58+
repeated Parameter header_parameter = 14;
59+
60+
// Cookie parameters for the method.
61+
repeated Parameter cookie_parameter = 15;
5362
}

api/oapi/v1/parameter.pb.go

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/oapi/v1/parameter.proto

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ message Parameter {
1515
TYPE_BOOLEAN = 4;
1616
}
1717

18-
// Name of the parameter. This should exist in the defined path from the
19-
// service prefix or method definition.
20-
//
21-
// For example: If the value is "id", then the path should have something like
22-
// `my-path/{id}` in it.
18+
// Name of the parameter. If a path parameter, this should exist in the path
19+
// of the service prefix or method definition. For example: If the value is
20+
// "id", then the path should have something like `my-path/{id}` in it or the
21+
// query should.
2322
string name = 1;
2423

2524
// Type of the parameter.

api/oapi/v1/service.pb.go

Lines changed: 66 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/oapi/v1/service.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,13 @@ message ServiceOptions {
3636

3737
// Path parameters for the service.
3838
repeated Parameter path_parameter = 7;
39+
40+
// Query parameters for the service.
41+
repeated Parameter query_parameter = 8;
42+
43+
// Header parameters for the service.
44+
repeated Parameter header_parameter = 9;
45+
46+
// Cookie parameters for the service.
47+
repeated Parameter cookie_parameter = 10;
3948
}

0 commit comments

Comments
 (0)