Skip to content

Commit

Permalink
Add list of downloads to /search endpoint
Browse files Browse the repository at this point in the history
As discussed in elastic#474 in the future we might have more then one format to download a package. To be prepared for this, downloads becomes an array.
  • Loading branch information
ruflin committed Jun 15, 2020
1 parent c467efb commit 240ea9e
Show file tree
Hide file tree
Showing 12 changed files with 311 additions and 0 deletions.
42 changes: 42 additions & 0 deletions docs/api/search-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{
"description": "Package with data sources",
"download": "/epr/datasources/datasources-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/datasources/datasources-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "datasources",
"path": "/package/datasources/1.0.0",
"title": "Default datasource Integration",
Expand All @@ -11,6 +17,12 @@
{
"description": "Tests if no pipeline is set, it defaults to the default one",
"download": "/epr/default-pipeline/default-pipeline-0.0.2.tar.gz",
"downloads": [
{
"path": "/epr/default-pipeline/default-pipeline-0.0.2.tar.gz",
"type": "tar.gz"
}
],
"name": "default-pipeline",
"path": "/package/default-pipeline/0.0.2",
"title": "Default pipeline Integration",
Expand All @@ -20,6 +32,12 @@
{
"description": "This is the example integration.",
"download": "/epr/example/example-0.0.2.tar.gz",
"downloads": [
{
"path": "/epr/example/example-0.0.2.tar.gz",
"type": "tar.gz"
}
],
"name": "example",
"path": "/package/example/0.0.2",
"title": "Example",
Expand All @@ -29,6 +47,12 @@
{
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/example/example-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "example",
"path": "/package/example/1.0.0",
"title": "Example Integration",
Expand All @@ -38,6 +62,12 @@
{
"description": "This is the foo integration",
"download": "/epr/foo/foo-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/foo/foo-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "foo",
"path": "/package/foo/1.0.0",
"title": "Foo",
Expand All @@ -47,6 +77,12 @@
{
"description": "Tests that multiple can be set to false",
"download": "/epr/multiple-false/multiple-false-0.0.1.tar.gz",
"downloads": [
{
"path": "/epr/multiple-false/multiple-false-0.0.1.tar.gz",
"type": "tar.gz"
}
],
"name": "multiple-false",
"path": "/package/multiple-false/0.0.1",
"title": "Multiple false",
Expand All @@ -56,6 +92,12 @@
{
"description": "This package does contain a dataset but not stream configs.\n",
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "no_stream_configs",
"path": "/package/no_stream_configs/1.0.0",
"title": "No Stream configs",
Expand Down
30 changes: 30 additions & 0 deletions docs/api/search-category-logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{
"description": "Package with data sources",
"download": "/epr/datasources/datasources-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/datasources/datasources-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "datasources",
"path": "/package/datasources/1.0.0",
"title": "Default datasource Integration",
Expand All @@ -11,6 +17,12 @@
{
"description": "Tests if no pipeline is set, it defaults to the default one",
"download": "/epr/default-pipeline/default-pipeline-0.0.2.tar.gz",
"downloads": [
{
"path": "/epr/default-pipeline/default-pipeline-0.0.2.tar.gz",
"type": "tar.gz"
}
],
"name": "default-pipeline",
"path": "/package/default-pipeline/0.0.2",
"title": "Default pipeline Integration",
Expand All @@ -20,6 +32,12 @@
{
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/example/example-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "example",
"path": "/package/example/1.0.0",
"title": "Example Integration",
Expand All @@ -29,6 +47,12 @@
{
"description": "Tests that multiple can be set to false",
"download": "/epr/multiple-false/multiple-false-0.0.1.tar.gz",
"downloads": [
{
"path": "/epr/multiple-false/multiple-false-0.0.1.tar.gz",
"type": "tar.gz"
}
],
"name": "multiple-false",
"path": "/package/multiple-false/0.0.1",
"title": "Multiple false",
Expand All @@ -38,6 +62,12 @@
{
"description": "This package does contain a dataset but not stream configs.\n",
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "no_stream_configs",
"path": "/package/no_stream_configs/1.0.0",
"title": "No Stream configs",
Expand Down
12 changes: 12 additions & 0 deletions docs/api/search-category-metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/example/example-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "example",
"path": "/package/example/1.0.0",
"title": "Example Integration",
Expand All @@ -11,6 +17,12 @@
{
"description": "This is the foo integration",
"download": "/epr/foo/foo-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/foo/foo-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "foo",
"path": "/package/foo/1.0.0",
"title": "Foo",
Expand Down
30 changes: 30 additions & 0 deletions docs/api/search-kibana652.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{
"description": "Package with data sources",
"download": "/epr/datasources/datasources-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/datasources/datasources-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "datasources",
"path": "/package/datasources/1.0.0",
"title": "Default datasource Integration",
Expand All @@ -11,6 +17,12 @@
{
"description": "Tests if no pipeline is set, it defaults to the default one",
"download": "/epr/default-pipeline/default-pipeline-0.0.2.tar.gz",
"downloads": [
{
"path": "/epr/default-pipeline/default-pipeline-0.0.2.tar.gz",
"type": "tar.gz"
}
],
"name": "default-pipeline",
"path": "/package/default-pipeline/0.0.2",
"title": "Default pipeline Integration",
Expand All @@ -20,6 +32,12 @@
{
"description": "This is the example integration.",
"download": "/epr/example/example-0.0.2.tar.gz",
"downloads": [
{
"path": "/epr/example/example-0.0.2.tar.gz",
"type": "tar.gz"
}
],
"name": "example",
"path": "/package/example/0.0.2",
"title": "Example",
Expand All @@ -29,6 +47,12 @@
{
"description": "Tests that multiple can be set to false",
"download": "/epr/multiple-false/multiple-false-0.0.1.tar.gz",
"downloads": [
{
"path": "/epr/multiple-false/multiple-false-0.0.1.tar.gz",
"type": "tar.gz"
}
],
"name": "multiple-false",
"path": "/package/multiple-false/0.0.1",
"title": "Multiple false",
Expand All @@ -38,6 +62,12 @@
{
"description": "This package does contain a dataset but not stream configs.\n",
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "no_stream_configs",
"path": "/package/no_stream_configs/1.0.0",
"title": "No Stream configs",
Expand Down
36 changes: 36 additions & 0 deletions docs/api/search-kibana721.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{
"description": "Package with data sources",
"download": "/epr/datasources/datasources-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/datasources/datasources-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "datasources",
"path": "/package/datasources/1.0.0",
"title": "Default datasource Integration",
Expand All @@ -11,6 +17,12 @@
{
"description": "Tests if no pipeline is set, it defaults to the default one",
"download": "/epr/default-pipeline/default-pipeline-0.0.2.tar.gz",
"downloads": [
{
"path": "/epr/default-pipeline/default-pipeline-0.0.2.tar.gz",
"type": "tar.gz"
}
],
"name": "default-pipeline",
"path": "/package/default-pipeline/0.0.2",
"title": "Default pipeline Integration",
Expand All @@ -20,6 +32,12 @@
{
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/example/example-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "example",
"path": "/package/example/1.0.0",
"title": "Example Integration",
Expand All @@ -29,6 +47,12 @@
{
"description": "This is the foo integration",
"download": "/epr/foo/foo-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/foo/foo-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "foo",
"path": "/package/foo/1.0.0",
"title": "Foo",
Expand All @@ -38,6 +62,12 @@
{
"description": "Tests that multiple can be set to false",
"download": "/epr/multiple-false/multiple-false-0.0.1.tar.gz",
"downloads": [
{
"path": "/epr/multiple-false/multiple-false-0.0.1.tar.gz",
"type": "tar.gz"
}
],
"name": "multiple-false",
"path": "/package/multiple-false/0.0.1",
"title": "Multiple false",
Expand All @@ -47,6 +77,12 @@
{
"description": "This package does contain a dataset but not stream configs.\n",
"download": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/no_stream_configs/no_stream_configs-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "no_stream_configs",
"path": "/package/no_stream_configs/1.0.0",
"title": "No Stream configs",
Expand Down
12 changes: 12 additions & 0 deletions docs/api/search-package-example-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{
"description": "This is the example integration.",
"download": "/epr/example/example-0.0.2.tar.gz",
"downloads": [
{
"path": "/epr/example/example-0.0.2.tar.gz",
"type": "tar.gz"
}
],
"name": "example",
"path": "/package/example/0.0.2",
"title": "Example",
Expand All @@ -11,6 +17,12 @@
{
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/example/example-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "example",
"path": "/package/example/1.0.0",
"title": "Example Integration",
Expand Down
6 changes: 6 additions & 0 deletions docs/api/search-package-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
{
"description": "This is the example integration",
"download": "/epr/example/example-1.0.0.tar.gz",
"downloads": [
{
"path": "/epr/example/example-1.0.0.tar.gz",
"type": "tar.gz"
}
],
"name": "example",
"path": "/package/example/1.0.0",
"title": "Example Integration",
Expand Down
Loading

0 comments on commit 240ea9e

Please sign in to comment.