Skip to content

Commit

Permalink
fix sample request url in search extension README
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Mishra <[email protected]>
  • Loading branch information
shimish2 authored and rchincha committed Jun 7, 2022
1 parent 0edee00 commit f52c950
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/extensions/search/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
**Sample request**

```
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageListForDigest (id:\"63a795ca90aa6e7cca60941e826810a4cd0a2e73ea02bf458241df2a5c973e29\") { Name Tags } }" }' http://localhost:8080/v2/_search
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageListForDigest (id:\"63a795ca90aa6e7cca60941e826810a4cd0a2e73ea02bf458241df2a5c973e29\") { Name Tags } }" }' http://localhost:8080/v2/_zot/ext/search
```

**Sample response**
Expand All @@ -40,7 +40,7 @@ curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageList
**Sample request**

```
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageListForCVE (id:\"CVE-2002-1119\") { Name Tags } }" }' http://localhost:8080/v2/_search
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageListForCVE (id:\"CVE-2002-1119\") { Name Tags } }" }' http://localhost:8080/v2/_zot/ext/search
```

**Sample response**
Expand All @@ -64,7 +64,7 @@ curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageList


```
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ CVEListForImage (image:\"centos\" ) { Tag CVEList { Id Title Description Severity PackageList {Name InstalledVersion FixedVersion } } } }" }' http://localhost:8080/v2/_search
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ CVEListForImage (image:\"centos\" ) { Tag CVEList { Id Title Description Severity PackageList {Name InstalledVersion FixedVersion } } } }" }' http://localhost:8080/v2/_zot/ext/search
```

**Sample response**
Expand Down Expand Up @@ -94,7 +94,7 @@ curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ CVEListFo
**Sample request**

```
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageListWithCVEFixed (id:\"CVE-2021-3713\",image:\"centos\") { Tags {Name Digest Timestamp} } }" }' http://localhost:8080/v2/_search
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageListWithCVEFixed (id:\"CVE-2021-3713\",image:\"centos\") { Tags {Name Digest Timestamp} } }" }' http://localhost:8080/v2/_zot/ext/search
```

**Sample response**
Expand All @@ -118,7 +118,7 @@ curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageList
**Sample request**

```
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageListWithLatestTag () { Name Latest LastUpdated Description Licenses Vendor Size Labels} }" }' http://localhost:8080/v2/_search
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageListWithLatestTag () { Name Latest LastUpdated Description Licenses Vendor Size Labels} }" }' http://localhost:8080/v2/_zot/ext/search
```

**Sample response**
Expand Down Expand Up @@ -154,7 +154,7 @@ curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ImageList
Sample request

```
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ExpandedRepoInfo (repo:\"v2/centos\") { Manifests {Digest Tag IsSigned Layers {Size Digest}}} }" }' http://localhost:8080/v2/_search
curl -X POST -H "Content-Type: application/json" --data '{ "query": "{ ExpandedRepoInfo (repo:\"v2/centos\") { Manifests {Digest Tag IsSigned Layers {Size Digest}}} }" }' http://localhost:8080/v2/_zot/ext/search
```

**Sample response**
Expand Down

0 comments on commit f52c950

Please sign in to comment.