/confeditor

Primary LanguagePython

confeditor

Requirements

  • Login page/popup/window/etc
  • Main page

Login page writes login&password to local storage

Main Page contents:

  • configs selector
  • edit window
  • patch button
  • post button
  • logout link (clear login&password from local storage)

API

Request GET /configs/

Auth: http basic header

Response [200, 401]

Response body:

[
    "alpha.json",
    "beta.json",
    "gamma.xml",
    "omega.yml",
]

Request GET /configs/{name}/

Auth: http basic header

Response [200, 401]

Response body:

{
    "Type": "json",
    "Body": str
}

[save] Request PATCH /configs/{name}/

Auth: http basic header

Body:

{
    "Type": "json",
    "Body": str
}

Response [200, 400, 401]


[deploy] Request POST /configs/{name}/

Auth: http basic header

Body:

{
    "Type": "json",
    "Body": str
}

Response [200, 400, 401]