API-CLI

 view release on metacpan or  search on metacpan

examples/bash/githubcl.bash  view on Meta::CPAN

        esac
      ;;
      PATCH)
        FLAGS+=()
        OPTIONS+=()
        __githubcl_handle_options_flags
        case $INDEX in

        1)
            __comp_current_options || return
            __githubcl_dynamic_comp 'commands' '/gists/:id'$'\t''Edit a gist.'$'\n''/gists/:id/comments/:commentId'$'\t''Edit a comment.'$'\n''/notifications/threads/:id'$'\t''Mark a thread as read'$'\n''/orgs/:org'$'\t''Edit an Organization.'$'\n''/...

        ;;
        *)
        # subcmds
        case ${MYWORDS[1]} in
          /gists/:id)
            FLAGS+=()
            OPTIONS+=()
            __githubcl_handle_options_flags
              case $INDEX in

examples/githubcl-appspec.yaml  view on Meta::CPAN

          type: string
        id:
          type: integer
        name:
          type: string
        size:
          type: integer
        url:
          type: string
      type: object
    editTeam:
      properties:
        name:
          type: string
        permission:
          enum:
          - pull
          - push
          - admin
      required:
      - name

examples/githubcl-appspec.yaml  view on Meta::CPAN

            description: OK
            schema:
              $ref: '#/definitions/issue'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
      patch:
        description: |
          Edit an issue.
          Issue owners and users with push access can edit an issue.
        parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true

examples/githubcl-appspec.yaml  view on Meta::CPAN

            description: OK
            schema:
              $ref: '#/definitions/asset'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
      patch:
        description: |
          Edit a release asset
          Users with push access to the repository can edit a release asset.
        parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true

examples/githubcl-appspec.yaml  view on Meta::CPAN

        responses:
          '200':
            description: OK
            schema:
              $ref: '#/definitions/release'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
      patch:
        description: Users with push access to the repository can edit a release
        parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true

examples/githubcl-appspec.yaml  view on Meta::CPAN

            description: OK
            schema:
              $ref: '#/definitions/team'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
      patch:
        description: |
          Edit team.
          In order to edit a team, the authenticated user must be an owner of the org
          that the team is associated with.
        parameters:
        - description: Id of team.
          in: path
          name: teamId
          required: true
          type: integer
        - description: |
            You can check the current version of media type in responses.
          in: header

examples/githubcl-appspec.yaml  view on Meta::CPAN

        - in: header
          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
        - in: body
          name: body
          required: true
          schema:
            $ref: '#/definitions/editTeam'
        responses:
          '200':
            description: OK
            schema:
              $ref: '#/definitions/team'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /teams/{teamId}/members:

examples/githubcl-appspec.yaml  view on Meta::CPAN

          summary: Name of repository owner.
          type: string
        - name: repo
          required: 1
          summary: Name of repository.
          type: string
        - name: id
          required: 1
          summary: ~
          type: string
        summary: Users with push access to the repository can edit ...
      /repos/:owner/:repo/releases/assets/:id:
        options: []
        parameters:
        - name: owner
          required: 1
          summary: Name of repository owner.
          type: string
        - name: repo
          required: 1
          summary: Name of repository.

examples/githubcl-openapi.yaml  view on Meta::CPAN

          description: OK
          schema:
            $ref: '#/definitions/issue'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
    patch:
      description: |
        Edit an issue.
        Issue owners and users with push access can edit an issue.
      parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true

examples/githubcl-openapi.yaml  view on Meta::CPAN

          description: OK
          schema:
            $ref: '#/definitions/asset'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
    patch:
      description: |
        Edit a release asset
        Users with push access to the repository can edit a release asset.
      parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true

examples/githubcl-openapi.yaml  view on Meta::CPAN

      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/release'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
    patch:
      description: Users with push access to the repository can edit a release
      parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo
          required: true

examples/githubcl-openapi.yaml  view on Meta::CPAN

          description: OK
          schema:
            $ref: '#/definitions/team'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
    patch:
      description: |
        Edit team.
        In order to edit a team, the authenticated user must be an owner of the org
        that the team is associated with.
      parameters:
        - description: Id of team.
          in: path
          name: teamId
          required: true
          type: integer
        - description: |
            You can check the current version of media type in responses.
          in: header

examples/githubcl-openapi.yaml  view on Meta::CPAN

        - in: header
          name: X-RateLimit-Reset
          type: integer
        - in: header
          name: X-GitHub-Request-Id
          type: integer
        - in: body
          name: body
          required: true
          schema:
            $ref: '#/definitions/editTeam'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/team'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  '/teams/{teamId}/members':

examples/githubcl-openapi.yaml  view on Meta::CPAN

        type: string
      id:
        type: integer
      name:
        type: string
      size:
        type: integer
      url:
        type: string
    type: object
  editTeam:
    properties:
      name:
        type: string
      permission:
        enum:
          - pull
          - push
          - admin
    required:
      - name

examples/html/githubcl.html  view on Meta::CPAN

<p>Parameters:</p>

<pre><code>    owner      *  Name of repository owner.
    repo       *  Name of repository.      
    commentId  *  Id of comment.           </code></pre>

<h3 id="PATCH-repos-:owner-:repo-releases-:id">PATCH /repos/:owner/:repo/releases/:id</h3>

<pre><code>    githubcl PATCH /repos/:owner/:repo/releases/:id &lt;owner&gt; &lt;repo&gt; &lt;id&gt;</code></pre>

<p>Users with push access to the repository can edit ...</p>

<p>Parameters:</p>

<pre><code>    owner  *  Name of repository owner.
    repo   *  Name of repository.      
    id     *                           </code></pre>

<h3 id="PATCH-repos-:owner-:repo-releases-assets-:id">PATCH /repos/:owner/:repo/releases/assets/:id</h3>

<pre><code>    githubcl PATCH /repos/:owner/:repo/releases/assets/:id &lt;owner&gt; &lt;repo&gt; &lt;id&gt;</code></pre>

examples/pod/githubcl.pod  view on Meta::CPAN

Parameters:

    owner      *  Name of repository owner.
    repo       *  Name of repository.      
    commentId  *  Id of comment.           

=head3 PATCH /repos/:owner/:repo/releases/:id

    githubcl PATCH /repos/:owner/:repo/releases/:id <owner> <repo> <id>

Users with push access to the repository can edit ...

Parameters:

    owner  *  Name of repository owner.
    repo   *  Name of repository.      
    id     *                           

=head3 PATCH /repos/:owner/:repo/releases/assets/:id

    githubcl PATCH /repos/:owner/:repo/releases/assets/:id <owner> <repo> <id>

examples/zsh/_githubcl  view on Meta::CPAN

                # ---- Command: PATCH
                _arguments -s -C \
                    '1: :->cmd1' \
                    '2: :->cmd2' \
                    '*: :->args' \
                    && ret=0


                case $state in
                cmd2)
                    _alternative 'args:cmd3:((/gists/\\:id\:"Edit a gist." /gists/\\:id/comments/\\:commentId\:"Edit a comment." /notifications/threads/\\:id\:"Mark a thread as read" /orgs/\\:org\:"Edit an Organization." /repos/\\:owner/\\:repo\:"Edi...
                ;;

                args)
                    case $line[2] in
                    /gists/:id)

                        # ---- Command: PATCH /gists/:id
                        _arguments -s -C \
                            '1: :->cmd1' \
                            '2: :->cmd2' \



( run in 0.723 second using v1.01-cache-2.11-cpan-de7293f3b23 )