Evrim answers API

The answers API from Evrim — 2 operation(s) for answers.

OpenAPI Specification

evrim-answers-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Evrim answers API
  version: 0.5.18
  description: Data when and how you want it.
tags:
- name: answers
paths:
  /prod/v0/answers/:
    get:
      operationId: answers_list
      parameters:
      - name: limit
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      - name: offset
        required: false
        in: query
        description: The initial index from which to return the results.
        schema:
          type: integer
      tags:
      - answers
      security:
      - knoxApiToken: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedCreateAnswerList'
          description: ''
    post:
      operationId: answers_create
      tags:
      - answers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAnswer'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateAnswer'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CreateAnswer'
        required: true
      security:
      - knoxApiToken: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAnswer'
          description: ''
  /prod/v0/answers/{id}/:
    get:
      operationId: answers_retrieve
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this answer.
        required: true
      tags:
      - answers
      security:
      - knoxApiToken: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAnswer'
          description: ''
components:
  schemas:
    CreateAnswer:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        status:
          type: string
          readOnly: true
          maxLength: 1
        question:
          type: string
          nullable: true
        specification:
          type: string
          writeOnly: true
          maxLength: 255
        answer:
          readOnly: true
      required:
      - answer
      - id
      - specification
      - status
    PaginatedCreateAnswerList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?offset=400&limit=100
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?offset=200&limit=100
        results:
          type: array
          items:
            $ref: '#/components/schemas/CreateAnswer'
  securitySchemes:
    knoxApiToken:
      type: http
      scheme: bearer