Dev

Developer APIs

Fetches the current log level of the Replication Server.

get
Authorizations
Responses
200

Log level was fetched successfully

application/json
get
GET /dev/get-log-level HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "Level": "trace"
}

Sets the log level of the Replication Server.

post
Authorizations
Body
Levelstring · enumRequired

Log level to be set for the server.

Possible values:
Responses
200

Log level was set successfully

No content

post
POST /dev/set-log-level HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17

{
  "Level": "trace"
}

No content

Prints a log message to the Replication Server log.

post

This endpoint is used for testing alerts. Every log printed has an additional field (__dev, true) attached.

Authorizations
Body
Levelstring · enumRequired

Log level to be set for the server.

Possible values:
MessagestringRequired

Message to be logged.

Responses
200

Log message was printed successfully

No content

post
POST /dev/print-log HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 78

{
  "Level": "trace",
  "Message": "text",
  "Fields": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  }
}

No content

Fetches the default schema ID used by the Replication Server.

post
Authorizations
Responses
200

Schema ID was fetched successfully

application/json
post
POST /dev/schema HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "SchemaID": "text"
}

Kills the Replication Server process printing stack traces of all goroutines.

post
Authorizations
Responses
default

No response due to process termination

No content

post
POST /dev/kill HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
default

No response due to process termination

No content

Causes a panic in the Replication Server on a fresh goroutine. For testing purposes only.

post
Authorizations
Responses
200

Panic was triggered successfully

No content

post
POST /dev/panic HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Panic was triggered successfully

No content

Attempts to gracefully stop the Replication Server process.

post

The call will attempt to gracefully stop the Replication Server process. If shutdown won't occur in the span of 2 seconds, a hard shutdown will be performed.

Authorizations
Responses
200

Shutdown was initiated successfully

No content

post
POST /dev/stop HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Shutdown was initiated successfully

No content

Sets the health status of the Replication Server.

post
Authorizations
Body
HealthybooleanRequired

Health status to be set for the server.

Responses
200

Health status was set successfully

No content

post
POST /dev/set-health HTTP/1.1
Host: 127.0.0.1:64001
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "Healthy": true
}

No content

Was this helpful?