Open qwesda opened 10 years ago
implemented with a different format. as the list of columns might be different for every action, it uses the following format. still missing is filterable
, sortable
, etc.
{
"path": "/invoices/:invoices_id",
"list": {
"allowed": [
"name",
"date_due",
"label",
"bic",
"iban",
"account_number",
"bank_code",
"total",
"date",
"date_due",
"date_payment",
"status",
"contact"
]
},
"primary_key": [
"gdid"
],
"read": {
"allowed": [
"name",
"date_due",
"label",
"bic",
"iban",
"account_number",
"bank_code",
"total",
"date",
"date_due",
"date_payment",
"status",
"contact",
"positions"
]
}
}
oh, it is under /invoices/_document
. that is likely to change to support documentation for multi-column pks...
what about /_definition/
and just list all the resource definitons there?
/_definition is fine by me
Daniel Schwarz dan@butter.sh http://pgp.mit.edu/pks/lookup?op=get&search=0x1586760D7DBEDE3F
On 10 Oct 2014, at 17:10, Tobias Florek notifications@github.com wrote:
oh, it is under /invoices/_document. that is likely to change to support documentation for multi-column pks...
what about /_definition/ and just list all the resource definitons there?
— Reply to this email directly or view it on GitHub.
summarizing the phone call, we have below _meta/definition
a e.g. the following json.
{
"shops": {
"path": "/shops/:shops_id",
"primary key": ["shops_id"],
"read": {
"shops_id": { "type": "unspecified" },
...
},
"list": {
"shops_id": { "type": "unspecified", "sortable": true, "filerable": true },
...
},
"subresources": {
"release_formats" : { format as seen above }
}
}
}
GET "/invoices/_definition"