Skip to content

Instantly share code, notes, and snippets.

@sjenning
Last active March 17, 2016 02:10
Show Gist options
  • Save sjenning/5c5d8de83e569154f030 to your computer and use it in GitHub Desktop.
Save sjenning/5c5d8de83e569154f030 to your computer and use it in GitHub Desktop.
$ curl http://127.0.0.1:8080/apis/catalog/v1/namespaces/default/catalogs
{
"kind": "CatalogList",
"apiVersion": "catalog/v1",
"metadata": {
"selfLink": "/apis/catalog/v1/namespaces/default/catalogs",
"resourceVersion": "31"
},
"items": []
}
$ curl -H 'Content-Type: application/json' -XPOST -d '{"apiVersion":"v1","kind":"Catalog","metadata":{"name":"testcatalog"}}' http://127.0.0.1:8080/apis/catalog/v1/namespaces/default/catalogs
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "Catalog in version \"v1\" cannot be handled as a Catalog: no kind \"Catalog\" is registered for version \"v1\"",
"reason": "BadRequest",
"code": 400
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment