How do I return all Attributes in the VersionOne Rest-1.v1 API for a Given Task -


how return attributes task given task id using versionone rest-1.v1 api. have been able pull given task , subset of attributes, review attributes.

kind of "select * ".

currently using:

./rest-1.v1/data/task?sel=name,scope.name,createdate&where=owners.name='snowwhite';createdate>'2016-05-01t00:00:00.001' 

here pattern suggest

1) decide on data important - performing versionone meta queries see "schema" of asset in question. in case asset task.

yourv1instance/meta.v1/task?xsl=api.xsl

show listing of of attributes associated task. you'll see combination of

  • simple scalars - name (text) , todo (numeric)

  • simple relation - createdby. reference single member asset in versionone.

  • multi-relation - owners. reference 0 or more member assets

2) select data using sel - have seen, versionone returns subset of of stuff found in meta query mentioned above. subset attributes represents highest probability of usefulness. true versionone attributes (ie story, defect...). unnecessary load on system retrun in asset because never need all. if want returned, have include each attribute in select or create code read of attributes , build giant query. inefficient , unproductive. if interested data lives in attributes, bear in mind of data system specific attributes , has no immediate, user value. these assets subject change.

if performing data query, have discovered,

yourv1instance/rest-1.v1/task

return of preset attributes represent attributes majority of users need.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -