<commit_before>#%RAML 0.8
---
title: Test RamlWrap API
description: A series of useful APIs that can be used to test RamlWrap functionality.
version:  v0.1
mediaType:  application/json
baseUri: http://example.com

protocols: [HTTP]

/api:
  displayName: API root
  post:
    body:
      application/json:
        schema: !include json/service_request.json
        example: !include json/service_request_example.json
    responses:
        200:
          body:
            application/json:
              example: !include json/service_response.json
        500:
          description: A really unhappy server error.
  /1:
    displayName: API 1
    description: Example API with a post request.
    post:
      body:
        application/json:
          schema: !include json/service_request.json
          example: !include json/service_request_example.json
      responses:
        200:
          body:
            application/json:
    /1.1:
      displayName: API 1.1
      get:
        responses:
        200:
          body:
            application/json:
      /1.1.1:
        displayName: API 1.1.1
        get:
          responses:
          200:
            body:
              application/json:
  /2:
    displayName: API 2
    description: Example API with get request.
    get:
      responses:
        200:
          body:
            application/json:
              example: '{"exampleData": "You just made a get!"}'
  /3:
    displayName: API 3
    description: Example API with get and post request with query parameters.
    get:
      queryParameters:
        param1:
          type: string
          required: false
        param2:
          type: string
          minLength: 5
          maxLength: 10
          required: true
        param3:
          type: number
          required: false
      responses:
        200:
          body:
            application/json:
              example: '{"exampleData": "You just made a get!"}'
    post:
      queryParameters:
        param1:
          type: string
          required: false
        param2:
          type: string
          minLength: 5
          maxLength: 10
          required: true
        param3:
          type: number
          required: false
      responses:
        200:
          body:
            application/json:
              example: '{"exampleData": "You just made a post!"}'
  /4:
    displayName: API 4
    description: Example API with empty post body.
    post:
      responses:<commit_msg>Correcting RAML - examples are not strings.<commit_after>#%RAML 0.8
---
title: Test RamlWrap API
description: A series of useful APIs that can be used to test RamlWrap functionality.
version:  v0.1
mediaType:  application/json
baseUri: http://example.com

protocols: [HTTP]

/api:
  displayName: API root
  post:
    body:
      application/json:
        schema: !include json/service_request.json
        example: !include json/service_request_example.json
    responses:
        200:
          body:
            application/json:
              example: !include json/service_response.json
        500:
          description: A really unhappy server error.
  /1:
    displayName: API 1
    description: Example API with a post request.
    post:
      body:
        application/json:
          schema: !include json/service_request.json
          example: !include json/service_request_example.json
      responses:
        200:
          body:
            application/json:
    /1.1:
      displayName: API 1.1
      get:
        responses:
        200:
          body:
            application/json:
      /1.1.1:
        displayName: API 1.1.1
        get:
          responses:
          200:
            body:
              application/json:
  /2:
    displayName: API 2
    description: Example API with get request.
    get:
      responses:
        200:
          body:
            application/json:
              example: !include json/example2.json
  /3:
    displayName: API 3
    description: Example API with get and post request with query parameters.
    get:
      queryParameters:
        param1:
          type: string
          required: false
        param2:
          type: string
          minLength: 5
          maxLength: 10
          required: true
        param3:
          type: number
          required: false
      responses:
        200:
          body:
            application/json:
              example: {"exampleData": "You just made a get!"}
    post:
      queryParameters:
        param1:
          type: string
          required: false
        param2:
          type: string
          minLength: 5
          maxLength: 10
          required: true
        param3:
          type: number
          required: false
      responses:
        200:
          body:
            application/json:
              example: '{"exampleData": "You just made a post!"}'
  /4:
    displayName: API 4
    description: Example API with empty post body.
    post:
      responses:
{'fraction_non_alphanumeric': 0.07443820224719101, 'fraction_numerical': 0.023475120385232744, 'mean_word_length': 1.5189489641232945, 'pattern_counts': {'":': 5, '<': 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': '1078813', 'n_tokens_mistral': 1386, 'n_tokens_neox': 1342, 'n_words': 422}