Skip to content

Commit 3d36bb8

Browse files
gregoksGreg Oks
authored andcommitted
Search api data plane suggestions facets (Azure#20825)
* Added search data-plane * added marketplace catalog resource manager * fixed readme * Fixed Spec Linter validations * fixed all validation tools * fixed avo * fixed prettier check * fixed spelling * Added search data-plane * added marketplace catalog resource manager * Fixed Spec Linter validations * fixed all validation tools * fixed avo * fixed prettier check * fixed spelling * Removed search stable folder * Added facets * Added suggestions API * fixed * added missing new line * fixed prettier * Added 2022-09-25-preview version * updated default 2022-09-25-preview * removed space * made product types description by ab * fixed description * revert search previous version * removed decimal format * fixed code review * fixed facets possible values * allow "all" in market * fixed vm fields * fixed api version in examples * fixed description Co-authored-by: Greg Oks <[email protected]>
1 parent 34c4ade commit 3d36bb8

File tree

6 files changed

+2429
-2
lines changed

6 files changed

+2429
-2
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"parameters": {
3+
"searchQuery": "a",
4+
"language": "en",
5+
"gallery": "Azure",
6+
"publishingStage": "Public",
7+
"market": "US",
8+
"pricingTypes": [
9+
"Byol"
10+
],
11+
"facets": [
12+
"PricingTypes"
13+
],
14+
"api-version": "2022-09-25-preview",
15+
"x-ms-app": "MyApplication"
16+
},
17+
"responses": {
18+
"200": {
19+
"body": {
20+
"value": {
21+
"PricingTypes": {
22+
"facetValues": {
23+
"Payg": {
24+
"count": 57690
25+
},
26+
"Byol": {
27+
"count": 14472
28+
},
29+
"Free": {
30+
"count": 10962
31+
},
32+
"FreeTrial": {
33+
"count": 3492
34+
},
35+
"Ri": {
36+
"count": 630
37+
}
38+
}
39+
}
40+
}
41+
}
42+
}
43+
}
44+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"parameters": {
3+
"searchQuery": "a",
4+
"top": 2,
5+
"language": "en",
6+
"gallery": "Azure",
7+
"publishingStage": "Public",
8+
"market": "US",
9+
"select": [
10+
"UniqueProductId",
11+
"ProductType"
12+
],
13+
"pricingTypes": [
14+
"Byol"
15+
],
16+
"orderBy": [
17+
"Popularity desc",
18+
"RatingAverage asc"
19+
],
20+
"facets": [
21+
"PricingTypes"
22+
],
23+
"api-version": "2022-09-25-preview",
24+
"x-ms-app": "MyApplication"
25+
},
26+
"responses": {
27+
"200": {
28+
"body": {
29+
"facets": {
30+
"PricingTypes": {
31+
"facetValues": {
32+
"Payg": {
33+
"count": 57690
34+
},
35+
"Byol": {
36+
"count": 14472
37+
},
38+
"Free": {
39+
"count": 10962
40+
},
41+
"FreeTrial": {
42+
"count": 3492
43+
},
44+
"Ri": {
45+
"count": 630
46+
}
47+
}
48+
}
49+
},
50+
"results": [
51+
{
52+
"uniqueProductId": "sendgrid.tsg-saas-offer",
53+
"productType": "SaaS"
54+
},
55+
{
56+
"uniqueProductId": "sendgrid.tsg-saas-offer",
57+
"productType": "SaaS"
58+
}
59+
],
60+
"totalCount": 14472,
61+
"nextLink": "nextLink"
62+
}
63+
}
64+
}
65+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"searchQuery": "r",
4+
"top": 2,
5+
"language": "en",
6+
"gallery": "Azure",
7+
"suggestionTypes": [
8+
"WordSearch",
9+
"Entity"
10+
],
11+
"productTypes": [
12+
"ConsultingServices"
13+
],
14+
"api-version": "2022-09-25-preview",
15+
"x-ms-app": "MyApplication"
16+
},
17+
"responses": {
18+
"200": {
19+
"body": {
20+
"value": [
21+
{
22+
"suggestionType": "WordSearch",
23+
"displayText": "rpa"
24+
},
25+
{
26+
"suggestionType": "WordSearch",
27+
"displayText": "readiness"
28+
},
29+
{
30+
"suggestionType": "Entity",
31+
"displayText": "Using",
32+
"id": "someId",
33+
"iconUrl": "https://www.iconurl.com",
34+
"productType": "ConsultingServices"
35+
},
36+
{
37+
"suggestionType": "Entity",
38+
"displayText": "Discover",
39+
"id": "someId2",
40+
"iconUrl": "https://www.iconurl2.com",
41+
"productType": "ConsultingServices"
42+
}
43+
],
44+
"count": 4
45+
}
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)