pageboard / server

Web site building system - server packages
MIT License
4 stars 0 forks source link

json hyper-schema to define/expose pagination and relations between collections and items #20

Open kapouer opened 5 years ago

kapouer commented 5 years ago

Right now we're using some ad-hoc simple system. http://json-schema.org/latest/json-schema-hypermedia.html

The idea is to use collections and items links for "defining" relations; but not for "resolving" them - at least not internally, and defining a full rest api is not particularly of interest in that setup.

kapouer commented 5 years ago

To avoid diving into this and doing it wrong, i've set up something simple with element.parents and a write helper, that allows one to define how an element relates to others. As a toy model to full json schema.