-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e24a9ee
commit ea55704
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ In the documentation, there's references for both the [Open Source](../api-refer | |
If you have [Basic Auth enabled](../configuration/index.md#http-basic-authentication), or you're using the [Enterprise Edition](/enterprise), you will need to add authentication to your requests. You can easily do this using the `-u` argument and passing our username and password in using the following format `username:password`. This example uses the default username and password inside of the [Kestra Docker Compose](../02.installation/03.docker-compose.md): | ||
|
||
```bash | ||
curl -X POST -u '[email protected]:kestra' http://localhost:8084/api/v1/executions/company.team/hello_world | ||
curl -X POST -u '[email protected]:kestra' http://localhost:8080/api/v1/executions/company.team/hello_world | ||
``` | ||
|
||
With the Enterprise Edition, you can generate [API Tokens](../06.enterprise/api-tokens.md) to authenticate when making requests, for example: | ||
|
@@ -53,7 +53,7 @@ tasks: | |
To make this request, we can use [cURL](https://en.wikipedia.org/wiki/CURL) in the command line: | ||
```bash | ||
curl -X POST http://localhost:8084/api/v1/flows -H "Content-Type:application/x-yaml" -d "id: created_by_api | ||
curl -X POST http://localhost:8080/api/v1/flows -H "Content-Type:application/x-yaml" -d "id: created_by_api | ||
namespace: company.team | ||
|
||
tasks: | ||
|
@@ -162,7 +162,7 @@ For more examples on executing with the API, check out the [Executions documenta | |
When we execute a flow with the API, our response includes the Execution ID from that execution. This means we can use this to fetch more information about the Execution, especially once it's completed. In the previous example, the execution ID generated was `MYkTmLrI36s10iVXHwRbR` so let's use that to get an updated status on the execution with the [GET Request](https://kestra.io/docs/api-reference/open-source#get-/api/v1/executions/-executionId-) `/api/v1/executions/{executionId}`: | ||
|
||
```bash | ||
curl -X GET http://localhost:8084/api/v1/executions/MYkTmLrI36s10iVXHwRbR | ||
curl -X GET http://localhost:8080/api/v1/executions/MYkTmLrI36s10iVXHwRbR | ||
``` | ||
|
||
The response received includes everything about the execution including the times the state changed, and any outputs generated: | ||
|