Created
April 14, 2020 13:37
-
-
Save rmallah/e011de3ab50e1ba5cf3316522034696d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collection Def is: | |
================================================= | |
NoteData => { | |
"title" => "Note Data" , | |
"x-id-field" => 'note_id' , | |
"x-list-columns" => [ 'note_id','note_name' ] , | |
properties => { | |
note_id=> { type => 'string', readOnly => 1, }, | |
note_name=> { type => 'string' , | |
'x-filter-output' => [ | |
[ 'yancy.wrap' => qw(mycontainer) ], | |
] | |
}, | |
}, | |
}, | |
================================================= | |
The backend is DBIx Schema | |
I am accessing | |
GET /yancy/api/NoteData | |
and I get | |
{ | |
"items": [ | |
{ | |
"note_id": "10000", | |
"note_name": "Adhoc Terms" | |
}, | |
{ | |
"note_id": "10010", | |
"note_name": "SMARTCGHS" | |
} | |
], | |
"offset": 0, | |
"total": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for /yancy/api/NoteData/10010