unable updating rest api response

49 views
Skip to first unread message

Narendra Meena

unread,
May 20, 2013, 1:23:11 PM5/20/13
to lif...@googlegroups.com

hi,

sorry for bed english.

i devloped a REst Api services successfully for two mapping classes Method and Compound , one to Many relation  respectively.
and services at Fullrest  here;
https://gist.github.com/narendrameena/5613685

  When i update databases the rest api response is not updated, entries doesn't add to response ,
the response is same as when i started the webServices first time.

Thanks you. 

Cheers,

NArendra
    

Diego Medina

unread,
May 21, 2013, 12:46:22 AM5/21/13
to Lift
Hi,

your rest api has several endpoints, which are the ones you are you are using to add data and read them back?

Also, I saw a var in your mapper object, that isn't a safe thing to have. Was it just for the sample code or do you really have that var in your real project ?


    

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
 
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://fmpwizard.telegr.am

narendra bhagri

unread,
May 21, 2013, 12:49:45 PM5/21/13
to lif...@googlegroups.com
Hey Diego ,

Thanks for REsponse,


On Mon, May 20, 2013 at 9:46 PM, Diego Medina <di...@fmpwizard.com> wrote:
Hi,

your rest api has several endpoints, which are the ones you are you are using to add data and read them back?


can you plz suggest me other solution?
  
Also, I saw a var in your mapper object, that isn't a safe thing to have. Was it just for the sample code or do you really have that var in your real project ?

Yeah i am using them in real object.
i use the example from  http://simply.liftweb.net/index-5.2.html to create those,  thought privet will be secured. 



--
Narendra Meena,
Junior Specialist,
Metabolomics Core Lab,
UC Davis, CA

Diego Medina

unread,
May 21, 2013, 11:59:24 PM5/21/13
to Lift
Hi,

Ok, let's do this, please put together a sample app showing the issue you are having, following these instructions 

and include the exact steps I need to take to see the same problem you are having, and then I'll be able to help you fix it.

Thanks

  Diego

narendra bhagri

unread,
May 22, 2013, 1:42:14 AM5/22/13
to lif...@googlegroups.com
Thanks,

I will do that untill end of this week.


Cheers,

Narendra

narendra bhagri

unread,
Jun 5, 2013, 7:49:32 PM6/5/13
to lif...@googlegroups.com
hi Diego ,

sorry for lat replay. 
here is sample app , plz used maven 3.X  to build.


In samle app i  defined model classes and restapi services  ,they work fine but when  updating databases. 
the rest api response is not update. plz give me suggestions.


thanks 

Narendra 


Diego Medina

unread,
Jun 5, 2013, 8:23:30 PM6/5/13
to Lift
ok, I'll look at it later this week, (maybe friday or during the weekend)

  Diego

narendra bhagri

unread,
Jun 5, 2013, 9:04:57 PM6/5/13
to lif...@googlegroups.com
ok thanks 

narendra bhagri

unread,
Jun 6, 2013, 1:32:44 AM6/6/13
to lif...@googlegroups.com
hi Diego,

Thanks for your Help.

i got the problem.Rather then calling by function ,i called by a variable that is not updating.


Cheers,

Narendra  

Diego Medina

unread,
Jun 10, 2013, 12:10:18 AM6/10/13
to Lift
cool, just to make sure,  is it working now?

Thanks

  Diego

narendra bhagri

unread,
Jun 10, 2013, 12:11:05 AM6/10/13
to lif...@googlegroups.com
yeah , it is working.

thanks ,

Narendra 

Diego Medina

unread,
Jun 10, 2013, 12:14:41 AM6/10/13
to Lift
great! 
Reply all
Reply to author
Forward
0 new messages