Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rest api #98

Closed
wants to merge 2 commits into from
Closed

Rest api #98

wants to merge 2 commits into from

Conversation

ipochi
Copy link

@ipochi ipochi commented Mar 21, 2019

No description provided.

Adding REST API functionality

* Install Addon
* Destroy Addon
* Create Cluster - AWS and EKS provisioner
* Destroy Cluster

Signed-off-by: Imran Pochi <pochiimran@yahoo.co.in>

func (c *tk8Api) Routes() []*Route {
return []*Route{
{verb: "POST", path: clusterPath("/create", APIVersion), fn: c.createCluster},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please comply with the RestAPI standards
the Object of the entrypoint is the /cluster
The Cluster has different Options:
GET /cluster call all Cluster information
GET /cluster/$clustername call all Cluster information
POST /cluster to create the cluster, add a flag in Post Data to setup infra only
DELETE /cluster/$clustername to delete the cluster
PUT /cluster/$clustername to Update the Cluster

same with /addon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants