REST Resource Database RREF
I have a space created from a database source. I know the key
value of the record I'm interested in. How do I get the rref
associated with that key value without posting a block?
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Jim Fleming on 10 Mar, 2010 04:52 PM
Kyle, Currently we don't have a "create a rref from the key" call. The closest thing would be to do an /attributes call asking for all the matches for that key. This will only work for rrefs that have previously been ingested. for example,
/attributes?c=resourceref&v=*1234
where 1234 is the DB key. If course there might be a performance issue as your number of resources grow (table scan). Let me know if this is an issue and we can consider adding a "build resource ref" call.
Thanks,
Jim
3 Posted by Kyle Nakamoto on 10 Mar, 2010 05:16 PM
Jim,
I'm trying out the capability of the REST resources/status interface and it requires a rref. Is there another way to get the rref's? Maybe iterate through all of them?
I'm using the resources/status in conjunction with remove/delete with resources and the only way I can get the rref is by using add/remove with resources. This does not seem to be the best way to try and check the status of rref.
Thanks,
Kyle
Support Staff 4 Posted by Jim Fleming on 10 Mar, 2010 09:04 PM
Kyle, Let's do a top-bottom review of what you are doing on our webex. I need to get the big picture of what you are doing.
Thanks,
Jim
5 Posted by Jared Peterson on 15 Mar, 2010 03:49 PM
Kyle,
Just circling back on this. Do you still need this feature, or did you get past this? Is this a show-stopper right now?
Please advise,
Jared
6 Posted by Kyle Nakamoto on 15 Mar, 2010 04:41 PM
This would still be nice to have. Jim's solution is likely sufficient. It was definitely key in identifying how a record was ingested (in reference to forgetting it). This is not a show stopper.
7 Posted by Jared Peterson on 15 Mar, 2010 05:43 PM
Kyle,
I've created a feature request in lighthouse for us to revisit. I'm going to close this thread down for now.
Jared
Jared Peterson closed this discussion on 15 Mar, 2010 05:43 PM.