Client / Server Api

All the route use the POST method and the JSON rendering. They must all return list of store mutation. See the store page:

[
    ``store mutation``
           OR / AND
    ``translation definition``
           OR / AND
    ``locale``
           OR / AND
    ``client path for vue-router``
]

/furetui/init/required/data

First query called by FuretUI. The goal of this query is to initialize the client.

The params in body are:

  • route_name: an existing route name in route.js
  • route_params: the information linked

Warning

Return quick data, allow to display quickly the UI

/furetui/init/optionnal/data

Second call. The goal is to load heavy data to improve the client and allow a degradate mode

Note

The query can be slower than required data because the main data is already present and this application may be usable.

/furetui/homepage

Called, when the router path is /

/furetui/button/<buttonId>

Called, when the button is clicked with params in body:

  • viewId
  • model
  • dataIds
  • options

/furetui/custom/view/<viewName>

Called when the custom view is called, is not required to respond to this query

/furetui/view/<viewId>

Called when the view have been selected or changed.

/furetui/space/<spaceId>

Called when the view space been selected or changed.

optionnal values in body:

  • spaceId
  • menuId
  • actionId
  • viewId
  • dataId
  • mode

/furetui/action/<actionId>

Called when the view action been selected or changed.

optionnal values in body:

  • spaceId
  • menuId
  • actionId
  • viewId
  • dataId
  • mode
  • relationship (true, false)

/furetui/list/x2m/get

Call to by One2Many and Many2Many to get children values

the value in body are:

  • model
  • viewId
  • dataIds

/furetui/field/x2m/get/views

Call to by One2Many and Many2Many to get the children views

the value in body:

  • viewIds

/furetui/data/create

Call to save an unexisting data

the value in body are:

  • model
  • data
  • changes: all the change not only for this data
  • fields
  • path: optionnal
    • spaceId
    • menuId
    • actionId
    • viewId

Warning

Don’t forget to change path to pass in RO mode

/furetui/data/read

Call to read entries in function of filter

the value in body are:

  • model
  • viewId
  • filter
  • fields

/furetui/data/read/<dataId>

Call to read only one entry

the value in body are:

  • model
  • viewId
  • new
  • fields

/furetui/data/update

Call to save an existing data

the value in body are:

  • model
  • dataId
  • data
  • changes: all the change not only for this data
  • fields
  • path: optionnal
    • spaceId
    • menuId
    • actionId
    • viewId

Warning

Don’t forget to change path to use the good dataId and RO mode

/furetui/data/delete

Call to remove an existing data

the value in body are:

  • model
  • dataIds

Warning

Don’t forget to call the mutation to remove the dataIds alse on furetui client

Default route for login and logout

The view can be overwriting this route can be deprecated.

/furetui/client/login

Call when the FuretUI user click on the connection button. The server may check the identity of the user and this access rigth. The server:

/furetui/client/logout

Call when the FuretUI user click on the Logout thumbnail. The server may close the session of the user. The server:

Warning

Dont forget to remove all the data