Skip to content

Instantly share code, notes, and snippets.

@rmallah
Created April 14, 2020 13:37
Show Gist options
  • Save rmallah/e011de3ab50e1ba5cf3316522034696d to your computer and use it in GitHub Desktop.
Save rmallah/e011de3ab50e1ba5cf3316522034696d to your computer and use it in GitHub Desktop.
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
}
@rmallah
Copy link
Author

rmallah commented Apr 14, 2020

for /yancy/api/NoteData/10010

{
  "note_id": "10010",
  "note_name": "SMARTCGHS"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment