Publish A Schema
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 tokenBody
status*
PUBLISHED
Responses
200: OK
Success Response of Published Schema
Sample Schema Request Payload
{
"status": "PUBLISHED"
}
curl --location --request PUT '{registry-url}/api/v1/Schema/{id}' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": "PUBLISHED"
}'
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
Last modified 3mo ago