CATechnologiesTest / yipee

An opensource version of the Yipee.io editor.
Apache License 2.0
22 stars 12 forks source link

Expose API diff #23

Closed markemeis closed 5 years ago

markemeis commented 6 years ago

Expose an endpoint which takes two arguments. The types of arguments can be Namespace name, Yml file, flat file (UI format)

jd3quist commented 5 years ago

POST to /diff. Payload definition:

{
  parent: <diffobj>,
  children: <array-of-diff-obj>
}

A diff-obj looks like this:

{
  name: <string>,
  (optional) data: <yaml-string | GUID | flat-object>
}

If data is not present, name is assumed to be a namespace (for diff of deployed namespaces in "live" mode)