Publish A Schema

Request

put
/api/v1/Schema/{id}
Publish a Schema
Parameters
Path
id*
id of the schema that is to be published
Header
content-type*
Set to application/json
authorization
Set to Bearer {access-token} . The token should be a admin token
Body
status*
PUBLISHED
Responses
200: OK
Success Response of Published Schema
Sample Schema Request Payload
{
"status": "PUBLISHED"
}

Usage

cURL

curl --location --request PUT '{registry-url}/api/v1/Schema/{id}' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": "PUBLISHED"
}'

HTTPie

printf '{
"status": "PUBLISHED"
}'| http PUT '{registry-url}/api/v1/Schema' \
Authorization:'Bearer {access-token}' \
Content-Type:'application/json'
{registry-url} is usually http://localhost:{port}. The port can be found under the registry section in the docker-compose.yml file and is usually 8081