mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[OAS][DOCS] Add example for import saved objects API (#192291)
This commit is contained in:
parent
910fa36e18
commit
9833f0f598
7 changed files with 56 additions and 2 deletions
|
@ -7269,6 +7269,14 @@ paths:
|
||||||
summary: Import saved objects
|
summary: Import saved objects
|
||||||
tags:
|
tags:
|
||||||
- saved objects
|
- saved objects
|
||||||
|
x-codeSamples:
|
||||||
|
- label: Import with createNewCopies
|
||||||
|
lang: cURL
|
||||||
|
source: |
|
||||||
|
curl \
|
||||||
|
-X POST api/saved_objects/_import?createNewCopies=true
|
||||||
|
-H "kbn-xsrf: true"
|
||||||
|
--form file=@file.ndjson
|
||||||
/api/status:
|
/api/status:
|
||||||
get:
|
get:
|
||||||
operationId: '%2Fapi%2Fstatus#0'
|
operationId: '%2Fapi%2Fstatus#0'
|
||||||
|
|
|
@ -10201,6 +10201,14 @@ paths:
|
||||||
summary: Import saved objects
|
summary: Import saved objects
|
||||||
tags:
|
tags:
|
||||||
- saved objects
|
- saved objects
|
||||||
|
x-codeSamples:
|
||||||
|
- label: Import with createNewCopies
|
||||||
|
lang: cURL
|
||||||
|
source: |
|
||||||
|
curl \
|
||||||
|
-X POST api/saved_objects/_import?createNewCopies=true
|
||||||
|
-H "kbn-xsrf: true"
|
||||||
|
--form file=@file.ndjson
|
||||||
/api/saved_objects/_resolve_import_errors:
|
/api/saved_objects/_resolve_import_errors:
|
||||||
post:
|
post:
|
||||||
description: >
|
description: >
|
||||||
|
|
|
@ -745,7 +745,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"x-codeSamples": [
|
||||||
|
{
|
||||||
|
"lang": "cURL",
|
||||||
|
"label": "Import with createNewCopies",
|
||||||
|
"source": "curl \\\n -X POST api/saved_objects/_import?createNewCopies=true\n -H \"kbn-xsrf: true\"\n --form file=@file.ndjson\n"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/api/saved_objects/_resolve_import_errors": {
|
"/api/saved_objects/_resolve_import_errors": {
|
||||||
|
|
|
@ -511,6 +511,14 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/400_response'
|
$ref: '#/components/schemas/400_response'
|
||||||
|
x-codeSamples:
|
||||||
|
- lang: cURL
|
||||||
|
label: Import with createNewCopies
|
||||||
|
source: |
|
||||||
|
curl \
|
||||||
|
-X POST api/saved_objects/_import?createNewCopies=true
|
||||||
|
-H "kbn-xsrf: true"
|
||||||
|
--form file=@file.ndjson
|
||||||
/api/saved_objects/_resolve_import_errors:
|
/api/saved_objects/_resolve_import_errors:
|
||||||
post:
|
post:
|
||||||
summary: Resolve import errors
|
summary: Resolve import errors
|
||||||
|
|
|
@ -230,7 +230,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"x-codeSamples": [
|
||||||
|
{
|
||||||
|
"lang": "cURL",
|
||||||
|
"label": "Import with createNewCopies",
|
||||||
|
"source": "curl \\\n -X POST api/saved_objects/_import?createNewCopies=true\n -H \"kbn-xsrf: true\"\n --form file=@file.ndjson\n"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -176,6 +176,14 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/400_response'
|
$ref: '#/components/schemas/400_response'
|
||||||
|
x-codeSamples:
|
||||||
|
- lang: cURL
|
||||||
|
label: Import with createNewCopies
|
||||||
|
source: |
|
||||||
|
curl \
|
||||||
|
-X POST api/saved_objects/_import?createNewCopies=true
|
||||||
|
-H "kbn-xsrf: true"
|
||||||
|
--form file=@file.ndjson
|
||||||
components:
|
components:
|
||||||
parameters:
|
parameters:
|
||||||
kbn_xsrf:
|
kbn_xsrf:
|
||||||
|
|
|
@ -84,3 +84,11 @@ post:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '../components/schemas/400_response.yaml'
|
$ref: '../components/schemas/400_response.yaml'
|
||||||
|
x-codeSamples:
|
||||||
|
- lang: cURL
|
||||||
|
label: Import with createNewCopies
|
||||||
|
source: |
|
||||||
|
curl \
|
||||||
|
-X POST api/saved_objects/_import?createNewCopies=true
|
||||||
|
-H "kbn-xsrf: true"
|
||||||
|
--form file=@file.ndjson
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue