openapi: 3.0.0
security: 
  - BearerAuth: []

components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

tags:
  - name: TermsAndConditions
    description: API endpoints for managing terms and conditions

paths:
  /api/terms:
    get:
      summary: Get all terms and conditions
      tags: [TermsAndConditions]
      security:
        - BearerAuth: []
      responses:
        200:
          description: A list of terms and conditions
    post:
      summary: Create a new terms and conditions
      tags: [TermsAndConditions]
      security:
        - BearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                  description: The content of the terms and conditions
                  example: "These are the terms and conditions for the use of the service"
      responses:
        200:
          description: The terms and conditions have been created successfully
        400:
          description: Failed to create the terms and conditions
        401:
          description: Unauthorized
        403:
          description: Forbidden
        404: