REST Resource Database Add

Kyle Nakamoto's Avatar

Kyle Nakamoto

19 Dec, 2009 12:22 AM via web

I want a new database record to be added to the space. I get "Resource has been accepted" and a location. When I try to get the location, it returns a grails run time error. When I use the rest interface to see if the record was added, it does not appear.

  1. Support Staff 2 Posted by Chet Patel on 21 Dec, 2009 06:54 PM

    Chet Patel's Avatar

    Sounds like the dbConnection value points to a database driver bean definition. It should point to a bean with a SQL provider which also contains the 'select' statement to retrieve the database record. Try posting the resource with the dbConnection value set to the SQL provider bean name.

  2. 3 Posted by Kyle Nakamoto on 21 Dec, 2009 07:20 PM

    Kyle Nakamoto's Avatar

    This was correct. I was putting in the bean name for the database I wanted to use based upon the documentation stating it should be the database_bean. Like you said, it is looking for the bean name of the ingest query (SQLProvider). For clarity, the documentation should probably be changed to reflect this.

  3. Support Staff 4 Posted by Chet Patel on 05 Jan, 2010 04:09 PM

    Chet Patel's Avatar

    I have changed the documentation on posting resources to reflect this.

  4. Chet Patel closed this discussion on 05 Jan, 2010 04:09 PM.

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