<commit_before>swagger: '2.0'
# This is your document metadata
info:
  version: "1"
  title: EC-CUBE API
  description: |
    EC-CUBEで公開しているAPI一覧です。

    使い方などはこちらをご覧ください。[here](https://ec-cube.github.io/api)
# ドメイン名を入力
host: <your-host-name>
basePath: <base-path>/<base-endpoint>/<base-version>
schemes:
  - http
  - https
consumes:
  - application/json
produces:
  - application/json
security:
  - eccubeOAuth2Implicit:
    - read
    - write
  - eccubeOAuth2AuthorizationCode:
    - read
    - write
  - eccubeOpenIDConnectImplicit:
    - read
    - write
    - openid
    - offline_access
  - eccubeOpenIDConnectAuthorizationCode:
    - read
    - write
    - openid
    - offline_access
# Describe your paths here
paths:
  # This is a path endpoint. Change it.
  /products:
    # This is a HTTP operation
    get:
      # Describe this verb here. Note: you can use markdown
      description: 公開されている商品一覧を取得します。
      # This is array of GET operation parameters:
      parameters:
        # An example parameter that is in query and is required
        -
          name: category_id
          in: query
          description: カテゴリーID
          required: false
          type: integer
        -
          name: name
          in: query
          description: 商品名
          required: false
          type: string
        -
          name: pageno
          in: query
          description: ページ番号
          required: false
          type: integer
        -
          name: disp_number
          in: query
          description: 表示件数
          required: false
          type: integer
        -
          name: orderby
          in: query
          description: 並び順
          required: false
          type: integer

      # Expected responses for this operation:
      responses:
        # Response code
        200:
          description: Successful response
          # A schema describing your response object.
          # Use JSON Schema format
          schema:
            type: array
            items:
              title: product
              type: object
        default:
          description: unexpected error
          schema:
            $ref: '#/definitions/errors'
  /products/{id}:
    get:
      description: 公開されている商品詳細を取得します。
      parameters:
        -
          name: id
          in: path
          description: 商品ID
          required: true
          type: integer
      responses:
        200:
          description: Successful response
          schema:
            type: object
            required:
              - id
            properties:
              id:
                type: integer
                format: int64
              name:
                type: string
        default:
          description: unexpected error
          schema:
            $ref: '#/definitions/errors'
  /productsauthsample/{id}:
    get:
      description: 公開されている商品詳細を取得します。
      parameters:
        -
          name: id
          in: path
          description: 商品ID
          required: true
          type: integer
      responses:
        200:
          description: Successful response
          schema:
            type: object
            required:
              - id
            properties:
              id:
                type: integer
                format: int64
              name:
                type: string
        default:
          description: unexpected error
          schema:
            $ref: '#/definitions/errors'
securityDefinitions:
  eccubeOAuth2Implicit:
    type: oauth2
    description: OAuth2.0 Authentication using the Implicit Flow. for JavaScript, native application.
    scopes:
      read: Grants read access to objects.
      write: Grants writes access to objects.
    flow: implicit
    authorizationUrl: https://<your-host-name>/<admin_dir>/OAuth2/v1/authorize
  eccubeOAuth2AuthorizationCode:
    type: oauth2
    description: OAuth2.0 Authentication using the Authorization Code Flow.
    scopes:
      read: Grants read access to objects.
      write: Grants writes access to objects.
    flow: accessCode
    authorizationUrl: https://<your-host-name>/<admin_dir>/OAuth2/v1/authorize
    tokenUrl: https://<your-host-name>/<admin_dir>/OAuth2/v1/token
  eccubeOpenIDConnectImplicit:
    type: oauth2
    description: OpenID Connect Authentication using the Implicit Flow.
    scopes:
      read: Grants read access to objects.
      write: Grants writes access to objects.
      openid: Required. OpenID Connect Authorization supports.
      offline_access: OpenID Connect offline access supports.
    flow: implicit
    authorizationUrl: https://<your-host-name>/<admin_dir>/OAuth2/v1/authorize
  eccubeOpenIDConnectAuthorizationCode:
    type: oauth2
    description: OpenID Connect Authentication using the Authorization Code Flow.
    scopes:
      read: Grants read access to objects.
      write: Grants writes access to objects.
      openid: Required. OpenID Connect Authorization supports.
      offline_access: OpenID Connect offline access supports.
    flow: accessCode
    authorizationUrl: https://<your-host-name>/<admin_dir>/OAuth2/v1/authorize
    tokenUrl: https://<your-host-name>/<admin_dir>/OAuth2/v1/token

definitions:
  errors:
    type: object
    required:
      - code
      - message
    properties:
      code:
        type: integer
        format: int32
      message:
        type: string<commit_msg>OAuth2 エンドポイントのバージョン修正<commit_after>swagger: '2.0'
# This is your document metadata
info:
  version: "1"
  title: EC-CUBE API
  description: |
    EC-CUBEで公開しているAPI一覧です。

    使い方などはこちらをご覧ください。[here](https://ec-cube.github.io/api)
# ドメイン名を入力
host: <your-host-name>
basePath: <base-path>/<base-endpoint>/<base-version>
schemes:
  - http
  - https
consumes:
  - application/json
produces:
  - application/json
security:
  - eccubeOAuth2Implicit:
    - read
    - write
  - eccubeOAuth2AuthorizationCode:
    - read
    - write
  - eccubeOpenIDConnectImplicit:
    - read
    - write
    - openid
    - offline_access
  - eccubeOpenIDConnectAuthorizationCode:
    - read
    - write
    - openid
    - offline_access
# Describe your paths here
paths:
  # This is a path endpoint. Change it.
  /products:
    # This is a HTTP operation
    get:
      # Describe this verb here. Note: you can use markdown
      description: 公開されている商品一覧を取得します。
      # This is array of GET operation parameters:
      parameters:
        # An example parameter that is in query and is required
        -
          name: category_id
          in: query
          description: カテゴリーID
          required: false
          type: integer
        -
          name: name
          in: query
          description: 商品名
          required: false
          type: string
        -
          name: pageno
          in: query
          description: ページ番号
          required: false
          type: integer
        -
          name: disp_number
          in: query
          description: 表示件数
          required: false
          type: integer
        -
          name: orderby
          in: query
          description: 並び順
          required: false
          type: integer

      # Expected responses for this operation:
      responses:
        # Response code
        200:
          description: Successful response
          # A schema describing your response object.
          # Use JSON Schema format
          schema:
            type: array
            items:
              title: product
              type: object
        default:
          description: unexpected error
          schema:
            $ref: '#/definitions/errors'
  /products/{id}:
    get:
      description: 公開されている商品詳細を取得します。
      parameters:
        -
          name: id
          in: path
          description: 商品ID
          required: true
          type: integer
      responses:
        200:
          description: Successful response
          schema:
            type: object
            required:
              - id
            properties:
              id:
                type: integer
                format: int64
              name:
                type: string
        default:
          description: unexpected error
          schema:
            $ref: '#/definitions/errors'
  /productsauthsample/{id}:
    get:
      description: 公開されている商品詳細を取得します。
      parameters:
        -
          name: id
          in: path
          description: 商品ID
          required: true
          type: integer
      responses:
        200:
          description: Successful response
          schema:
            type: object
            required:
              - id
            properties:
              id:
                type: integer
                format: int64
              name:
                type: string
        default:
          description: unexpected error
          schema:
            $ref: '#/definitions/errors'
securityDefinitions:
  eccubeOAuth2Implicit:
    type: oauth2
    description: OAuth2.0 Authentication using the Implicit Flow. for JavaScript, native application.
    scopes:
      read: Grants read access to objects.
      write: Grants writes access to objects.
    flow: implicit
    authorizationUrl: https://<your-host-name>/<admin_dir>/OAuth2/<base-version>/authorize
  eccubeOAuth2AuthorizationCode:
    type: oauth2
    description: OAuth2.0 Authentication using the Authorization Code Flow.
    scopes:
      read: Grants read access to objects.
      write: Grants writes access to objects.
    flow: accessCode
    authorizationUrl: https://<your-host-name>/<admin_dir>/OAuth2/<base-version>/authorize
    tokenUrl: https://<your-host-name>/<admin_dir>/OAuth2/<base-version>/token
  eccubeOpenIDConnectImplicit:
    type: oauth2
    description: OpenID Connect Authentication using the Implicit Flow.
    scopes:
      read: Grants read access to objects.
      write: Grants writes access to objects.
      openid: Required. OpenID Connect Authorization supports.
      offline_access: OpenID Connect offline access supports.
    flow: implicit
    authorizationUrl: https://<your-host-name>/<admin_dir>/OAuth2/<base-version>/authorize
  eccubeOpenIDConnectAuthorizationCode:
    type: oauth2
    description: OpenID Connect Authentication using the Authorization Code Flow.
    scopes:
      read: Grants read access to objects.
      write: Grants writes access to objects.
      openid: Required. OpenID Connect Authorization supports.
      offline_access: OpenID Connect offline access supports.
    flow: accessCode
    authorizationUrl: https://<your-host-name>/<admin_dir>/OAuth2/<base-version>/authorize
    tokenUrl: https://<your-host-name>/<admin_dir>/OAuth2/<base-version>/token

definitions:
  errors:
    type: object
    required:
      - code
      - message
    properties:
      code:
        type: integer
        format: int32
      message:
        type: string
{'fraction_non_alphanumeric': 0.07105384261389784, 'fraction_numerical': 0.0072710538426138975, 'mean_word_length': 1.771938775510204, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 14, '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': '3251119', 'n_tokens_mistral': 3105, 'n_tokens_neox': 3067, 'n_words': 846}