Jelajahi Sumber

add config event in swagger.yml

Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud 8 tahun lalu
induk
melakukan
c8d6477e5a
2 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 2 0
      api/swagger.yaml
  2. 1 0
      docs/api/version-history.md

+ 2 - 0
api/swagger.yaml

@@ -5678,6 +5678,8 @@ paths:
 
         Secrets report these events: `create`, `update`, and `remove`
 
+        Configs report these events: `create`, `update`, and `remove`
+
       operationId: "SystemEvents"
       produces:
         - "application/json"

+ 1 - 0
docs/api/version-history.md

@@ -27,6 +27,7 @@ keywords: "API, Docker, rcli, REST, documentation"
   enabled.
 * `GET /images/(name)/get` now includes an `ImageMetadata` field which contains image metadata that is local to the engine and not part of the image config.
 * `POST /services/create` now accepts a `PluginSpec` when `TaskTemplate.Runtime` is set to `plugin`
+* `GET /events` now supports config events `create`, `update` and `remove` that are emitted when users create, update or remove a config
 
 ## v1.30 API changes