Package coprs :: Package views :: Package api_ns :: Module api_general
[hide private]
[frames] | no frames]

Module api_general

source code

Functions [hide private]
 
api_home()
Renders the home page of the api.
source code
 
api_new_token()
Method use to generate a new API token for the current user.
source code
 
api_new_copr()
Receive information from the user on how to create its new copr, check their validity and create the corresponding copr.
source code
 
api_coprs_by_owner(username=None)
Return the list of coprs owned by the given user.
source code
 
copr_new_build(username, coprname) source code
Function Details [hide private]

api_home()

source code 

Renders the home page of the api. This page provides information on how to call/use the API.

Decorators:
  • @api_ns.route('/')

api_new_token()

source code 

Method use to generate a new API token for the current user.

Decorators:
  • @api_ns.route('/new/', methods= ["GET", "POST"])
  • @login_required

api_new_copr()

source code 
Receive information from the user on how to create its new copr,
check their validity and create the corresponding copr.

:arg name: the name of the copr to add
:arg chroots: a comma separated list of chroots to use
:kwarg repos: a comma separated list of repository that this copr
    can use.
:kwarg initial_pkgs: a comma separated list of initial packages to
    build in this new copr

Decorators:
  • @api_ns.route('/copr/new/', methods= ['POST'])
  • @api_login_required

api_coprs_by_owner(username=None)

source code 
Return the list of coprs owned by the given user.
username is taken either from GET params or from the URL itself
(in this order).

:arg username: the username of the person one would like to the
    coprs of.

Decorators:
  • @api_ns.route('/owned/')
  • @api_ns.route('/owned//')

copr_new_build(username, coprname)

source code 
Decorators:
  • @api_ns.route('/coprs/detail///new_build/', methods= ["POST"])
  • @api_login_required