Implement API endpoints (#6915)

* Pass odo context to api server

* Get /instance

* DELETE /instance implementation

* Move describe logic to pkg/component/describe

* Get /component implementation

* POST /component/command implementation

* Fix example by replacing action with name

* Fix integration test

* Integration tests

* Add comment for PushWatcher

* Test DELETE /instance without --no-watch

* Apply suggestions from code review

Co-authored-by: Armel Soro <armel@rm3l.org>

* Return an error if not ready for push

* Fix windows tests

* Fix tests for Windows

---------

Co-authored-by: Armel Soro <armel@rm3l.org>
This commit is contained in:
Philippe Martin
2023-06-26 16:00:49 +02:00
committed by GitHub
parent 535ee0a105
commit 94e32303bd
10 changed files with 514 additions and 272 deletions

View File

@@ -188,7 +188,7 @@ paths:
enum:
- "push"
example:
action: push
name: push
responses:
'200':
description: command was successfully executed