Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL: https://123.123.123.123/documentations/view/$UUID/host.json

MethodeMethod: POST

Response: JSON

Borderless table
Code Block
languagebash
themeMidnight
titleJSON to add a host documentation via REST API
{
	"Documentation": {
		"content": $CONTENT,
		"uuid": $UUID
	}
}
Code Block
languagebash
themeMidnight
titleResponse on successful API call
{
	"id": $ID
}

...

URL: https://123.123.123.123/documentations/view/$UUID/host.json

MethodeMethod: POST

Response: JSON

Borderless table
Code Block
languagebash
themeMidnight
titleJSON to edit a host documentation via REST API
{
	"Documentation": {
		"content": $CONTENT,
		"id": $ID,
		"uuid": $UUID
	}
}
Code Block
languagebash
themeMidnight
titleResponse on successful API call
{
	"id": $ID
}

...

URL: https://123.123.123.123/documentations/view/$UUID/host.json

MethodeMethod: GET

Response: JSON

Borderless table
Code Block
languagebash
themeMidnight
titleResponse on successful API call
{
    "post": {
        "Documentation": {
            "id": "$ID",
            "uuid": "$UUID",
            "content": "$CONTENT",
            "created": "2018-10-26 11:44:19",
            "modified": "2018-10-26 11:44:19"
        }
    }
}