Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #78433 > unrolled thread

please suggest me best way to learn REST API call with CLI

Started byUnix SA <d.joshi84@gmail.com>
First post2014-09-28 11:06 +0545
Last post2014-09-28 11:06 +0545
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  please suggest me best way to learn REST API call with CLI Unix SA <d.joshi84@gmail.com> - 2014-09-28 11:06 +0545

#78433 — please suggest me best way to learn REST API call with CLI

FromUnix SA <d.joshi84@gmail.com>
Date2014-09-28 11:06 +0545
Subjectplease suggest me best way to learn REST API call with CLI
Message-ID<mailman.14441.1411881727.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hello,

I am intermediate to python and i am familier with OOP, but sometime i lost
some where looking at OOP in class and objects .... :(

I am looking at https://github.com/pulp/pulp ..

basically it uses okaara to generate CLI and calls API.


so for example if i run "pulp-admin -u admin -p admin rpm repo list" it
produces list of all repositories ...

now i want to write similar thing .. but without producing all repository i
just want to list single repo and below is the API for that ..

http://pulp-dev-guide.readthedocs.org/en/pulp-2.2/integration/rest-api/repo/retrieval.html

Not sure what's the best way to write it ... i want to do in OO way.. i
know how to use requests/httplib module and generate data and produce
output .........

but i am not able to build URL ...

can someone help to suggest best way to learn and write it ?

Regards,
DJ

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web