@ -10,11 +10,11 @@ Generally, projects and processes are created through pages, but considering the
1. Log in to the scheduling system, click "Security", then click "Token manage" on the left, and click "Create token" to create a token.
![create-token ](../../../img/new_ui/dev/security/create-token.png )
![create-token ](../../../../ img/new_ui/dev/security/create-token.png )
2. Select the "Expiration time" (Token validity time), select "User" (choose the specified user to perform the API operation), click "Generate token", copy the `Token` string, and click "Submit".
![token-expiration ](../../../img/new_ui/dev/open-api/token_expiration.png )
![token-expiration ](../../../../ img/new_ui/dev/open-api/token_expiration.png )
### Examples
@ -24,7 +24,7 @@ Generally, projects and processes are created through pages, but considering the
> Address:http://{API server ip}:12345/dolphinscheduler/doc.html?language=en_US& lang=en
![api-doc ](../../../img/new_ui/dev/open-api/api_doc.png )
![api-doc ](../../../../ img/new_ui/dev/open-api/api_doc.png )
2. select a test API, the API selected for this test is `queryAllProjectList`
@ -36,7 +36,7 @@ Generally, projects and processes are created through pages, but considering the
token: The Token just generated
```
![api-test ](../../../img/new_ui/dev/open-api/api_test.png )
![api-test ](../../../../ img/new_ui/dev/open-api/api_test.png )
#### Create a Project
@ -44,15 +44,15 @@ This demonstrates how to use the calling api to create the corresponding project
By consulting the api documentation, configure the KEY as Accept and VALUE as the parameter of application/json in the headers of Postman.
![create-project01 ](../../../img/new_ui/dev/open-api/create_project01.png )
![create-project01 ](../../../../ img/new_ui/dev/open-api/create_project01.png )
And then configure the required projectName and description parameters in Body.
![create-project02 ](../../../img/new_ui/dev/open-api/create_project02.png )
![create-project02 ](../../../../ img/new_ui/dev/open-api/create_project02.png )
Check the post request result.
![create-project03 ](../../../img/new_ui/dev/open-api/create_project03.png )
![create-project03 ](../../../../ img/new_ui/dev/open-api/create_project03.png )
The returned `msg` information is "success", indicating that we have successfully created the project through API.
@ -60,9 +60,9 @@ If you are interested in the source code of creating a project, please continue
### Appendix: The Source Code of Creating a Project
![api-source01 ](../../../img/new_ui/dev/open-api/api_source01.png )
![api-source01 ](../../../../ img/new_ui/dev/open-api/api_source01.png )
![api-source02 ](../../../img/new_ui/dev/open-api/api_source02.png )
![api-source02 ](../../../../ img/new_ui/dev/open-api/api_source02.png )