
[[_paths]]
== Paths

[[_usernavigation]]
=== Get navigation
....
GET /
....


==== Description
Returns the navigation as a tree


==== Responses

[options="header", cols=".^2a,.^14a,.^4a"]
|===
|HTTP Code|Description|Schema
|**200**|Successful response|<<_navigationentry,NavigationEntry>>
|===


==== Tags

* Navigation


==== Example HTTP request

===== Request path
----
/
----


==== Example HTTP response

===== Response 200
[source,json]
----
{
  "id" : 0.0,
  "childs" : [ {
    "id" : 0.0,
    "childs" : [ "..." ]
  } ]
}
----


[[_updatenavigation]]
=== update entry
....
PUT /
....


==== Description
Updates the navigation tree


==== Parameters

[options="header", cols=".^2a,.^3a,.^4a"]
|===
|Type|Name|Schema
|**Body**|**entry** +
__optional__|<<_navigationentry,NavigationEntry>>
|===


==== Responses

[options="header", cols=".^2a,.^14a,.^4a"]
|===
|HTTP Code|Description|Schema
|**200**|Successful response|<<_navigationentry,NavigationEntry>>
|===


==== Tags

* Navigation


==== Example HTTP request

===== Request path
----
/
----


===== Request body
[source,json]
----
{
  "id" : 0.0,
  "childs" : [ {
    "id" : 0.0,
    "childs" : [ "..." ]
  } ]
}
----


==== Example HTTP response

===== Response 200
[source,json]
----
{
  "id" : 0.0,
  "childs" : [ {
    "id" : 0.0,
    "childs" : [ "..." ]
  } ]
}
----



