@@ -50,8 +50,11 @@ var _ = dsl.Service("query-svc", func() {
5050 dsl .Attribute ("type" , dsl .String , "Resource type to search" , func () {
5151 dsl .Example ("committee" )
5252 })
53- dsl .Attribute ("tags" , dsl .ArrayOf (dsl .String ), "Tags to search (varies by object type)" , func () {
54- dsl .Example ([]string {"active" })
53+ dsl .Attribute ("tags" , dsl .ArrayOf (dsl .String ), "Tags to search with OR logic - matches resources with any of these tags" , func () {
54+ dsl .Example ([]string {"active" , "public" })
55+ })
56+ dsl .Attribute ("tags_all" , dsl .ArrayOf (dsl .String ), "Tags to search with AND logic - matches resources that have all of these tags" , func () {
57+ dsl .Example ([]string {"governance" , "security" })
5558 })
5659 dsl .Required ("bearer_token" , "version" )
5760 })
@@ -74,6 +77,7 @@ var _ = dsl.Service("query-svc", func() {
7477 dsl .Param ("parent" )
7578 dsl .Param ("type" )
7679 dsl .Param ("tags" )
80+ dsl .Param ("tags_all" )
7781 dsl .Param ("sort" )
7882 dsl .Param ("page_token" )
7983 dsl .Header ("bearer_token:Authorization" )
@@ -110,8 +114,11 @@ var _ = dsl.Service("query-svc", func() {
110114 dsl .Attribute ("type" , dsl .String , "Resource type to search" , func () {
111115 dsl .Example ("committee" )
112116 })
113- dsl .Attribute ("tags" , dsl .ArrayOf (dsl .String ), "Tags to search (varies by object type)" , func () {
114- dsl .Example ([]string {"active" })
117+ dsl .Attribute ("tags" , dsl .ArrayOf (dsl .String ), "Tags to search with OR logic - matches resources with any of these tags" , func () {
118+ dsl .Example ([]string {"active" , "public" })
119+ })
120+ dsl .Attribute ("tags_all" , dsl .ArrayOf (dsl .String ), "Tags to search with AND logic - matches resources that have all of these tags" , func () {
121+ dsl .Example ([]string {"governance" , "security" })
115122 })
116123 dsl .Required ("bearer_token" , "version" )
117124 })
@@ -129,15 +136,14 @@ var _ = dsl.Service("query-svc", func() {
129136 dsl .Required ("count" , "has_more" )
130137 })
131138
132- dsl .Error ("BadRequest" , dsl .ErrorResult , "Bad request" )
133-
134139 dsl .HTTP (func () {
135140 dsl .GET ("/query/resources/count" )
136141 dsl .Param ("version:v" )
137142 dsl .Param ("name" )
138143 dsl .Param ("parent" )
139144 dsl .Param ("type" )
140145 dsl .Param ("tags" )
146+ dsl .Param ("tags_all" )
141147 dsl .Header ("bearer_token:Authorization" )
142148 dsl .Response (dsl .StatusOK , func () {
143149 dsl .Header ("cache_control:Cache-Control" )
0 commit comments