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

Create platform endpoint #19

Open
Tracked by #2
dkraczkowski opened this issue Jul 29, 2018 · 0 comments
Open
Tracked by #2

Create platform endpoint #19

dkraczkowski opened this issue Jul 29, 2018 · 0 comments
Labels
Api Issues that belong to platform's api Task
Milestone

Comments

@dkraczkowski
Copy link
Contributor

dkraczkowski commented Jul 29, 2018

Platform endpoint is responsible for managing basic platform configuration like:

  • theme
  • title
  • database settings

Usage

POST /platform
{
    "configuration": [
        {"key": "title", "value": "My shiny blog"},
        {"key": "database": "value": {"type": "sqlite", "meta": {"name": "shiny-db"}}},
        {"key": "owner": value: {"username": <email>, "password": <string>}}
    ]     
}
Successful response:
HTTP 200 OK
{
    "status": "installed",
    "configuration": [
        {"key": "title", "value": "My shiny blog"},
        {"key": "database": "value": {"type": "sqlite", "meta": {"name": "shiny-db"}}}
    ]
}
Failed response:
HTTP 412 Precondition failed
{
    "error": {number},
    "reason": "Platform has been already installed"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Api Issues that belong to platform's api Task
Projects
None yet
Development

No branches or pull requests

1 participant