Skip to content

Commit f4d9fd5

Browse files
gregoksGreg Oks
andauthored
[Marketplace Catalog - Search] resource manager api (#19293)
* 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 * Removed search data-plane from resource-manager * fixed code review comments * fixed code review * removed 400 error * removed error codes from example * added default api version value * fixed prettier and removed default api version * changed ARM from GET to POST * changed private store params to body * fixed body param * fixed post example Co-authored-by: Greg Oks <gregoks@microsoft.com>
1 parent c943ce5 commit f4d9fd5

File tree

5 files changed

+736
-0
lines changed

5 files changed

+736
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# search
2+
3+
> see https://aka.ms/autorest
4+
5+
This is the AutoRest configuration file for search.
6+
7+
## Getting Started
8+
9+
To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run:
10+
11+
> `autorest readme.md`
12+
13+
To see additional help and options, run:
14+
15+
> `autorest --help`
16+
17+
For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page.
18+
19+
---
20+
21+
## Configuration
22+
23+
### Basic Information
24+
25+
These are the global settings for the search.
26+
27+
```yaml
28+
openapi-type: arm
29+
tag: package-2022-02-02
30+
```
31+
32+
### Tag: package-2022-02-02
33+
34+
These settings apply only when `--tag=package-2022-02-02` is specified on the command line.
35+
36+
```yaml $(tag) == 'package-2022-02-02'
37+
input-file:
38+
- stable/2022-02-02/search.json
39+
```
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parameters": {
3+
"api-version": "2022-02-02"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.Marketplace/search",
11+
"isDataAction": false,
12+
"display": {
13+
"provider": "Microsoft.Marketplace",
14+
"resource": "Resources",
15+
"operation": "Searches Private Stores"
16+
}
17+
}
18+
]
19+
}
20+
}
21+
}
22+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"request": {
4+
"searchQuery": "a",
5+
"take": 2,
6+
"languages": [
7+
"en"
8+
],
9+
"stores": [
10+
"Ibiza"
11+
],
12+
"select": [
13+
"legacyId",
14+
"offerType"
15+
],
16+
"privateStoreAllowances": [
17+
"AllowedByDefault"
18+
]
19+
},
20+
"api-version": "2022-02-02",
21+
"x-ms-app": "MyApplication",
22+
"x-ms-client-tenant-id": "a0e28e55-90c4-41d8-8e34-bb7ef7775406"
23+
},
24+
"responses": {
25+
"200": {
26+
"body": {
27+
"facets": [],
28+
"results": [
29+
{
30+
"legacyId": "enterprisedb-corp.biganimal-prod-v1",
31+
"offerType": "SaaS"
32+
},
33+
{
34+
"legacyId": "epica1581707374769.epica",
35+
"offerType": "SaaS"
36+
}
37+
],
38+
"totalCount": 823
39+
}
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)