Skip to content

Commit

Permalink
Improve curl examples in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Jun 5, 2024
1 parent cb180b6 commit ba73189
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Create an index by posting an `IndexConfig` payload. The API accepts JSON with `

**Payload Example**

curl -XPOST http://0.0.0.0:8080/api/v1/indexes --data @index_config.json -H "Content-Type: application/json"
curl -XPOST http://localhost:7280/api/v1/indexes --data @index_config.json -H "Content-Type: application/json"

```json title="index_config.json
{
Expand Down Expand Up @@ -333,7 +333,7 @@ Updates the configurations of an index. This endpoint follows PUT semantics, whi

**Payload Example**

curl -XPUT http://0.0.0.0:8080/api/v1/indexes --data @index_update.json -H "Content-Type: application/json"
curl -XPUT http://localhost:7280/api/v1/indexes/hdfs-logs --data @updated_index_update.json -H "Content-Type: application/json"

```json title="updated_index_update.json
{
Expand Down Expand Up @@ -600,7 +600,7 @@ Create source by posting a source config JSON payload.

**Payload Example**

curl -XPOST http://0.0.0.0:8080/api/v1/indexes/my-index/sources --data @source_config.json -H "Content-Type: application/json"
curl -XPOST http://localhost:7280/api/v1/indexes/my-index/sources --data @source_config.json -H "Content-Type: application/json"

```json title="source_config.json
{
Expand Down

0 comments on commit ba73189

Please sign in to comment.