Hi,thank you very much for such a quick relpy.Now, I can connect to galaxy via API.In addition, please tell me what is API controller?How to use those modules and where are they in galaxy?At 2013-12-18 12:13:58,"Martin Čech" <marten@bx.psu.edu> wrote:
Hi,the best start for using the API, that you found already, is the documentation that, with a nice introduction, is nicely available here: https://galaxy-central.readthedocs.org/en/latest/lib/galaxy.webapps.galaxy.api.html
Regarding libraries your main controllers of interest are: libraries, library_contents, folders, folder_contents - please beware that folders API is considered work-in-progress and will probably be deprecated in future releases.If you want to test how the API behaves you can use something like Postman extension (https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en) for chrome or other browser that allows you to nicely simulate API calls.As of your error make sure that your local Galaxy, that you are trying to connect to via API, runs on the 4096 port that you specified for the script (by default local Galaxy runs at port 8080 - see universe_wsgi.ini for config changes).Thank you for using Galaxy and let us know how it goes!Martin, Galaxy Team
On Tue, Dec 17, 2013 at 9:26 PM, xlwang <xlwang_0903@163.com> wrote:
Hello,I want to know how to use Galaxy API(the path is /galaxy-dist/scripts/api). I follow the README but get errors. For instance, I have generated my_key and use this script:./display.py my_key http://localhost:4096/api/librariesI get an error:<urlopen error [Errno 111] Connection refused>I do not know how it happened. Please tell me how to fix it. Thank you!In addition, my main purpose is to manage the data library in another system. Should I use the api such as library_create_library.py, library_upload_from_import_dir.py and so on?
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client. To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
http://lists.bx.psu.edu/
To search Galaxy mailing lists use the unified search at:
http://galaxyproject.org/search/mailinglists/