<commit_before>swagger: "2.0"
info:
  description: Redbutton server API
  title: Redbutton
  version: "0.1.0"
basePath: /api
consumes:
- application/json
produces:
- application/json
schemes:
- http
paths:
# --------------------------------------------------- ROOMS
  /room:
    post:
      tags:
        - rooms
      description: Creates a new room. user identified with voter-id will become the owner of the room.
      parameters:
        - $ref: "#/parameters/voterIdHeader"
        - name: newRoom
          in: body
          required: true
          schema:
            $ref: "#/definitions/roomInfo"
      responses:
        '200':
          description: "info about the created room"
          schema:
            $ref: "#/definitions/roomInfo"
        default:
          description: some error
          schema:
            $ref: "#/definitions/error"
  /room/{id}:
    get:
      tags:
        - rooms
      description: get room info by ID
      parameters:
        - $ref: "#/parameters/roomId"
      responses:
        '200':
          description: "info about the room"
          schema:
            $ref: "#/definitions/roomInfo"
        404:
          description: room was not found
    post:
      tags:
        - rooms
      description: update room. Only the room owner can do this
      parameters:
        - $ref: "#/parameters/roomId"
        - $ref: "#/parameters/voterIdHeader"
      responses:
        '200':
          description: "info about the room"
          schema:
            $ref: "#/definitions/roomInfo"
        404:
          description: room was not found
  /room/{id}/voter/{voterId}:
    get:
      tags:
        - rooms
      description: Voter information for the current room
      parameters:
        - $ref: "#/parameters/roomId"
        - $ref: "#/parameters/voterId"
      responses:
        '200':
          description: "info about the room"
          schema:
            $ref: "#/definitions/voterStatus"
    post:
      tags:<commit_msg>swagger spec integration for now on hold. we'll see if the topic will be revisited in the future - go-swagger is too intrusive for the application structure<commit_after>swagger: "2.0"
info:
  description: Redbutton server API
  title: Redbutton
  version: "0.1.0"
basePath: /api
consumes:
- application/json
produces:
- application/json
schemes:
- http
paths:
# --------------------------------------------------- ROOMS
  /room:
    post:
      tags:
        - rooms
      description: Creates a new room. user identified with voter-id will become the owner of the room.
      parameters:
        - $ref: "#/parameters/voterIdHeader"
        - name: newRoom
          in: body
          required: true
          schema:
            $ref: "#/definitions/roomInfo"
      responses:
        '200':
          description: "info about the created room"
          schema:
            $ref: "#/definitions/roomInfo"
        default:
          description: some error
          schema:
            $ref: "#/definitions/error"
  /room/{id}:
    get:
      tags:
        - rooms
      description: get room info by ID
      parameters:
        - $ref: "#/parameters/roomId"
      responses:
        '200':
          description: "info about the room"
          schema:
            $ref: "#/definitions/roomInfo"
        404:
          description: room was not found
    post:
      tags:
        - rooms
      description: update room. Only the room owner can do this
      parameters:
        - $ref: "#/parameters/roomId"
        - $ref: "#/parameters/voterIdHeader"
        - name: roomInfo
          in: body
          required: true
          schema:
            $ref: "#/definitions/roomInfo"
      responses:
        '200':
          description: "info about the room"
          schema:
            $ref: "#/definitions/roomInfo"
        404:
          description: room was not found
  /room/{id}/voter/{voterId}:
    get:
      tags:
        - rooms
      description: Voter information for the current room
      parameters:
        - $ref: "#/parameters/roomId"
        - $ref: "#/parameters/voterId"
      responses:
        '200':
          description: "info about the room"
          schema:
            $ref: "#/definitions/voterStatus"
    post:
      tags:
{'fraction_non_alphanumeric': 0.12303357595679737, 'fraction_numerical': 0.010800657431321907, 'mean_word_length': 1.5678119349005426, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5175477', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1180, 'n_words': 357}