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

OpenAPI spec for RPaaS endpoints #39

Open
11 of 36 tasks
nettoclaudio opened this issue Sep 30, 2019 · 1 comment
Open
11 of 36 tasks

OpenAPI spec for RPaaS endpoints #39

nettoclaudio opened this issue Sep 30, 2019 · 1 comment
Labels

Comments

@nettoclaudio
Copy link
Member

nettoclaudio commented Sep 30, 2019

It would be nice if we describe the RpaaS API using a formal specification like OpenAPI. Below is outlined all routes used today. Let's doc them! 🚀

Tsuru Service API:

  • POST: /resources
  • GET: /resources/:instance
  • PUT: /resources/:instance
  • DELETE: /resources/:instance
  • GET: /resources/plans
  • GET: /resources/:instance/status
  • POST: /resources/:instance/bind-app
  • DELETE: /resources/:instance/bind-app
  • POST: /resources/:instance/bind
  • DELETE: /resources/:instance/bind

RPaaS API (legacy):

  • GET: /resources/:instance/plans
  • GET: /resources/flavors (deprecated)
  • GET: /resources/:instance/flavors (deprecated)
  • GET: /resources/:instance/node_status (deprecated)
  • POST: /resources/:instance/scale
  • POST: /resources/:instance/certificate
  • GET: /resources/:instance/block
  • POST: /resources/:instance/block
  • DELETE: /resources/:instance/block/:block
  • DELETE: /resources/:instance/lua (deprecated)
  • GET: /resources/:instance/lua (deprecated)
  • POST: /resources/:instance/lua (deprecated)
  • DELETE: /resources/:instance/route
  • GET: /resources/:instance/route
  • POST: /resources/:instance/route
  • POST: /resources/:instance/purge

RPaaS v2:

  • GET: /healthcheck
  • GET: /resources/:instance/info
  • GET: /resources/:instance/certificate
  • DELETE: /resources/:instance/certificate/:name
  • GET: /resources/:instance/files
  • GET: /resources/:instance/files/:name
  • POST: /resources/:instance/files
  • PUT: /resources/:instance/files
  • DELETE: /resources/:instance/files/:name
  • *: /resources/:instance/exec

NOTE: These routes can be found at api/api.go file. The current OpenAPI spec is located on docs/openapi.yaml.

@rafaelrubbioli
Copy link
Contributor

I would like to help with the /resources/:instance/bind-app and /resources/:instance/bind

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

No branches or pull requests

2 participants