[PATCH 4/6] Create the /api/ page providing the API token and information

Pierre-Yves pingou at pingoured.fr
Tue Jan 8 09:43:35 UTC 2013


On Tue, Jan 08, 2013 at 04:21:18AM -0500, Bohuslav Kabrda wrote:
> ----- Original Message -----
> > On Tue, Jan 08, 2013 at 03:41:17AM -0500, Bohuslav Kabrda wrote:
> > > ----- Original Message -----
> > > > On Tue, Jan 08, 2013 at 02:45:17AM -0500, Bohuslav Kabrda wrote:
> > > > > ----- Original Message -----
> > > > > > The API page aims at providing information about the API
> > > > > > itself
> > > > > > and
> > > > > > how to use it.
> > > > > > Additionally, if you are logged-in, this page gives you your
> > > > > > own
> > > > > > API token (needed to call the API), its expiration date (as
> > > > > > each
> > > > > > token is valid only 30 days) and a way to generate a new
> > > > > > token.
> > > > > > ---
> > > 
> > > Yeah, CLI is on my TODO list :)
> > > But my plan was to utilize the fedora certificates, that are
> > > already used for e.g. koji builds. This way, every user would be
> > > able to generate his certificate and most of the potential copr
> > > users (=packagers) already have that certificate. So I think it
> > > would be a more comfortable solution (although I haven't discussed
> > > this possibility with anyone yet and I'm not even sure it would be
> > > possible).
> > 
> > hm, iirc, the certificates is used for the upload on koji. I'm not
> > sure it's
> > used to start the builds (might be wrong though).
> > 
> > After the main point I can think of in favor of the token (beside the
> > technical
> > difference) is the fact that it makes the application more generic
> > than Fedora
> > and after all the trac page seems to imply there is interest also
> > from outside
> > our Fedora circle.
> > 
> 
> Ok, agreed. I'll accept the patches. Will you fix the DB migration and initial values or should I do that?
> Thanks.

They are normally on their way, hopefully it won't take to long for them to
reach here.

Pierre


More information about the copr-devel mailing list