./start-postgresql.sh
go run main.go
curl --location 'http://localhost:8080/resource-types' \
--header 'Content-Type: application/json' \
--data '{
"name": "k8s_cluster",
"schema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"external_cluster_id": { "type": "integer" },
"cluster_status": { "type": "string" }
},
"required": ["external_cluster_id", "cluster_status"]
}
}
'or alternatively use a JSON payload
curl --location 'http://localhost:8080/resource-types' \
--header 'Content-Type: application/json' \
--data @data/k8s-cluster-type.jsoncurl --location 'http://localhost:8080/resource-data/k8s_cluster' \
--header 'Content-Type: application/json' \
--data '{
"external_cluster_id": 123,
"cluster_status": "READY"
}'or alternatively use a JSON payload
curl --location 'http://localhost:8080/resource-data/k8s_cluster' \
--header 'Content-Type: application/json' \
--data @data/k8s-cluster-data.json./stop-postgresql.sh