The canonical location of the OpenShift DevConsole API definition. This repo holds the API type definitions and serialization code used by DevConsole Operator
$ dep ensure
$ go build github.com/redhat-developer/devconsole-api/pkg/apis/
Regenerate code after modifying API:
$ ./generate-deepcopy.sh
New API for the custom resource can be generated in DevConsole Operator and then moved to this repo:
$ cd $GOPATH/src/github.com/redhat-developer/devconsole-operator
# Add a new API for the custom resource <NewResourceKind>
$ operator-sdk add api --api-version=devconsole.openshift.io/v1alpha1 --kind=<NewResourceKind>
# Move generated API to devconsole-api
$ rsync -avh --progress ./pkg/apis/devconsole/ $GOPATH/src/github.com/redhat-developer/devconsole-api/pkg/apis/devconsole/