openapi: 3.0.0
info:
  title: NGUYEN-THU-LAND-CLIENT
  version: 1.0.0
servers:
  - url: http://{{api}}
components:
  securitySchemes:
    noauthAuth:
      type: http
      scheme: noauth
    bearerAuth:
      type: http
      scheme: bearer
tags:
  - name: Bài viết
  - name: Dự án
  - name: Bất động sản
  - name: Home
paths:
  /client/post:
    get:
      tags:
        - Bài viết
      summary: Trang chủ bài viết
      security:
        - noauthAuth: []
      parameters:
        - name: categoryId
          in: query
          schema:
            type: integer
          example: '2'
        - name: pageNo
          in: query
          schema:
            type: integer
          example: '0'
        - name: pageSize
          in: query
          schema:
            type: integer
          example: '4'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/post-categories:
    get:
      tags:
        - Bài viết
      summary: Chủ đề bài viết
      security:
        - noauthAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/post/search:
    get:
      tags:
        - Bài viết
      summary: TÌm kiếm bài viết (thêm currentId sẽ loại bài viết hiện tại)
      security:
        - noauthAuth: []
      parameters:
        - name: title
          in: query
          schema:
            type: string
          example: dung
        - name: currentId
          in: query
          schema:
            type: integer
          example: '115'
        - name: categoryId
          in: query
          schema:
            type: integer
          example: '1'
        - name: pageNo
          in: query
          schema:
            type: integer
          example: '0'
        - name: pageSize
          in: query
          schema:
            type: integer
          example: '10'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/post/detail:
    get:
      tags:
        - Bài viết
      summary: Chi tiết bài viết
      security:
        - noauthAuth: []
      parameters:
        - name: id
          in: query
          schema:
            type: integer
          example: '303'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/project/search:
    post:
      tags:
        - Dự án
      summary: >-
        TÌm kiếm dự án + Dự án cùng khu vực (thêm currentId sẽ loại ra dự án
        hiện tại)
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                name:
                  type: string
                  example: City
                districtsCode:
                  type: string
                  example: '[9,5]'
                minPrice:
                  type: integer
                  example: '0'
                maxPrice:
                  type: integer
                  example: '50'
                pageNo:
                  type: integer
                  example: '0'
                pageSize:
                  type: integer
                  example: '10'
                currentId:
                  type: integer
                  example: '254'
      security:
        - noauthAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/project/detail:
    get:
      tags:
        - Dự án
      summary: Chi tiết Dự Án
      security:
        - bearerAuth: []
      parameters:
        - name: id
          in: query
          schema:
            type: integer
          example: '254'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/project/detail/house:
    get:
      tags:
        - Dự án
      summary: Chi tiết Dự Án (Căn mẫu và Căn đang bán)
      security:
        - bearerAuth: []
      parameters:
        - name: id
          in: query
          schema:
            type: integer
          example: '254'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/project/detail/post:
    get:
      tags:
        - Dự án
      summary: Chi tiết Dự Án (Tin nổi bật)
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/project/province:
    get:
      tags:
        - Dự án
      summary: Danh sánh tỉnh thành của dự án + BDS
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/project/district:
    get:
      tags:
        - Dự án
      summary: Danh sánh quận huyện của dự án từ tỉnh thành + BDS
      security:
        - bearerAuth: []
      parameters:
        - name: provinceCode
          in: query
          schema:
            type: integer
          example: '40'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/house/detail:
    get:
      tags:
        - Bất động sản
      summary: Chi tiết Bất dộng sản
      security:
        - noauthAuth: []
      parameters:
        - name: id
          in: query
          schema:
            type: integer
          example: '202'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/house/search:
    post:
      tags:
        - Bất động sản
      summary: >-
        TÌm kiếm bất động sản + BDS cùng khu vực (thêm currentId sẽ loại ra id
        hiện tại)
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                name:
                  type: string
                  example: du
                districtsCode:
                  type: string
                  example: '[9,51]'
                minPrice:
                  type: integer
                  example: '23'
                maxPrice:
                  type: integer
                  example: '123'
                minAcreage:
                  type: integer
                  example: '123'
                maxAcreage:
                  type: integer
                  example: '12323'
                pageNo:
                  type: integer
                  example: '0'
                pageSize:
                  type: integer
                  example: '10'
                currentId:
                  type: integer
                  example: '227'
      security:
        - noauthAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/home:
    get:
      tags:
        - Home
      summary: '{{API}}/client/home'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /client/information:
    get:
      tags:
        - General
      summary: Information
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
