mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 17:17:09 +00:00
docfix/Correct data import
Correct data import instructions in README.md
This commit is contained in:
parent
b689dd98ef
commit
954db2bf80
@ -221,8 +221,8 @@ To populate the OBP database with sandbox data:
|
||||
|
||||
1) In the API's props file, set `allow_sandbox_data_import=true`
|
||||
2) Grant your user the role `CanCreateSandbox`. See previous section on how to do this
|
||||
5) Now post the JSON data using the payload field at `/#2_1_0-sandboxDataImport`
|
||||
6) If successful you should see an empty result `{}` and no error message
|
||||
3) Now post the JSON data using the payload field at `/#2_1_0-sandboxDataImport`. An example of an import set of data (json) can be found [here](https://raw.githubusercontent.com/OpenBankProject/OBP-API/develop/obp-api/src/main/scala/code/api/sandbox/example_data/2016-04-28/example_import.json)
|
||||
4) If successful you should see this result `{ "success": "Success" }` and no error message
|
||||
|
||||
|
||||
|
||||
|
||||
@ -14854,7 +14854,7 @@
|
||||
"request_url": "/obp/v2.1.0/sandbox/data-import",
|
||||
"summary": "创建沙箱",
|
||||
"description": "映射(类型->字符串)",
|
||||
"description_markdown": "Import bulk data into the sandbox (Authenticated access).\n\nThis call can be used to create banks, users, accounts and transactions which are stored in the local RDBMS.\n\nThe user needs to have CanCreateSandbox entitlement.\n\nNote: This is a monolithic call. You could also use a combination of endpoints including create bank, create user, create account and create transaction request to create similar data.\n\nAn example of an import set of data (json) can be found [here](https://raw.githubusercontent.com/OpenBankProject/OBP-API/develop/src/main/scala/code/api/sandbox/example_data/2016-04-28/example_import.json)\nAuthentication is Mandatory\n",
|
||||
"description_markdown": "Import bulk data into the sandbox (Authenticated access).\n\nThis call can be used to create banks, users, accounts and transactions which are stored in the local RDBMS.\n\nThe user needs to have CanCreateSandbox entitlement.\n\nNote: This is a monolithic call. You could also use a combination of endpoints including create bank, create user, create account and create transaction request to create similar data.\n\nAn example of an import set of data (json) can be found [here](https://raw.githubusercontent.com/OpenBankProject/OBP-API/develop/obp-api/src/main/scala/code/api/sandbox/example_data/2016-04-28/example_import.json)\nAuthentication is Mandatory\n",
|
||||
"example_request_body": {
|
||||
"banks": [
|
||||
{
|
||||
|
||||
@ -89,7 +89,7 @@ trait APIMethods210 {
|
||||
|
|
||||
|Note: This is a monolithic call. You could also use a combination of endpoints including create bank, create user, create account and create transaction request to create similar data.
|
||||
|
|
||||
|An example of an import set of data (json) can be found [here](https://raw.githubusercontent.com/OpenBankProject/OBP-API/develop/src/main/scala/code/api/sandbox/example_data/2016-04-28/example_import.json)
|
||||
|An example of an import set of data (json) can be found [here](https://raw.githubusercontent.com/OpenBankProject/OBP-API/develop/obp-api/src/main/scala/code/api/sandbox/example_data/2016-04-28/example_import.json)
|
||||
|${authenticationRequiredMessage(true)}
|
||||
|""",
|
||||
SandboxData.importJson,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user