Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. ```resp=Euresource::CatalogItem.get(
  2. :all,
  3. params: {
  4. study_environment_uuid: '4960d0a1-1339-438b-849b-4aa9f7c704ad',
  5. uuids: ['02c40832-1331-4323-830d-0c1f02ccee5d']
  6. },
  7. method: :index
  8. )
  9. resp=Euresource::CatalogItem.get(
  10. :all,
  11. params: {
  12. study_environment_uuid: '4960d0a1-1339-438b-849b-4aa9f7c704ad',
  13. uuids: '02c40832-1331-4323-830d-0c1f02ccee5d'
  14. },
  15. method: :index
  16. )
  17.  
  18.  
  19. //Invoke based . --> This works
  20. resp=Euresource::CatalogItem.invoke(:index, {study_environment_uuid: '98133ab4-bd6d-4557-9305-006c526de933', uuids: ['02c40832-1331-4323-830d-0c1f02ccee5d']})
  21.  
  22.  
  23. This might be used to build different query:- ---> I dont know if they will support
  24. Euresource::CatalogItem.get(:all, params: { study_environment_uuid: 'mmm', search_by: 'all', search_term: 'xxx'}, access_by: 'edit_study_environments', sort_order: 'desc', sort_by: 'phase_name' )
  25.  
  26. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement