Code Climate Services API

The Services API from Code Climate — 1 operation(s) for services.

OpenAPI Specification

codeclimate-services-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: Code Climate Quality Issues Services API
  description: 'The Code Climate Quality REST API (v1) complies with REST conventions and the JSON API specification. It exposes organizations, repositories, maintainability and test-coverage analysis, snapshots, and issues. Authenticated calls require an Authorization header carrying a personal access token in the form `Authorization: Token token={TOKEN}`.'
  termsOfService: https://codeclimate.com/terms
  contact:
    name: Code Climate Support
    email: hello@codeclimate.com
  version: v1
servers:
- url: https://api.codeclimate.com/v1
security:
- TokenAuth: []
tags:
- name: Services
paths:
  /repos/{repo_id}/services:
    get:
      operationId: listRepoServices
      tags:
      - Services
      summary: List services configured on a repository
      parameters:
      - $ref: '#/components/parameters/RepoId'
      responses:
        '200':
          description: OK
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ServiceCollection'
components:
  schemas:
    Service:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          example: services
        attributes:
          type: object
          properties:
            name:
              type: string
            options:
              type: object
    ServiceCollection:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Service'
  parameters:
    RepoId:
      name: repo_id
      in: path
      required: true
      description: The repository identifier.
      schema:
        type: string
  securitySchemes:
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Personal access token passed as `Authorization: Token token={TOKEN}`.'