REST Resource Database RREF

Kyle Nakamoto's Avatar

Kyle Nakamoto

10 Mar, 2010 04:44 PM via web

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?

  1. Support Staff 2 Posted by Jim Fleming on 10 Mar, 2010 04:52 PM

    Jim Fleming's Avatar

    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

  2. 3 Posted by Kyle Nakamoto on 10 Mar, 2010 05:16 PM

    Kyle Nakamoto's Avatar

    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

  3. Support Staff 4 Posted by Jim Fleming on 10 Mar, 2010 09:04 PM

    Jim Fleming's Avatar

    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

  4. 5 Posted by Jared Peterson on 15 Mar, 2010 03:49 PM

    Jared Peterson's Avatar

    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

  5. 6 Posted by Kyle Nakamoto on 15 Mar, 2010 04:41 PM

    Kyle Nakamoto's Avatar

    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.

  6. 7 Posted by Jared Peterson on 15 Mar, 2010 05:43 PM

    Jared Peterson's Avatar

    Kyle,

    I've created a feature request in lighthouse for us to revisit. I'm going to close this thread down for now.

    Jared

  7. Jared Peterson closed this discussion on 15 Mar, 2010 05:43 PM.

Comments are currently closed for this discussion. You can start a new one.