openapi: 3.0.3
info:
  title: Yggdarsil
  description: ''
  version: 1.0.0
servers:
  -
    url: 'http://merk.loc'
paths:
  /api/contacts:
    post:
      summary: 'Contact Us Send Form'
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'Successfully sent'
                properties:
                  message:
                    type: string
                    example: 'Successfully sent'
        422:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  errors:
                    email:
                      - 'The Email Address field is required.'
                    name:
                      - 'The Your Name field is required.'
                    subject:
                      - 'The Subject field is required.'
                    message:
                      - 'The Message field is required.'
                    is_subscription:
                      - 'The Subscribe me field is required.'
                properties:
                  errors:
                    type: object
                    example:
                      email:
                        - 'The Email Address field is required.'
                      name:
                        - 'The Your Name field is required.'
                      subject:
                        - 'The Subject field is required.'
                      message:
                        - 'The Message field is required.'
                      is_subscription:
                        - 'The Subscribe me field is required.'
      tags:
        - Contact
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: 'Must be a valid email address.'
                  example: efrain53@example.org
                name:
                  type: string
                  description: ''
                  example: dolor
                phone:
                  type: string
                  description: ''
                  example: quaerat
                subject:
                  type: string
                  description: ''
                  example: sunt
                message:
                  type: string
                  description: ''
                  example: voluptate
                is_subscription:
                  type: integer
                  description: 'Must be one of <code>0</code> or <code>1</code>.'
                  example: '1'
              required:
                - email
                - name
                - subject
                - message
                - is_subscription
      security: []
  /api/contacts/subscription:
    post:
      summary: Subscription
      description: ''
      parameters:
        -
          in: header
          name: Content-Type
          description: ''
          example: application/json
          schema:
            type: string
      responses:
        200:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  message: 'You successfully subscribed'
                properties:
                  message:
                    type: string
                    example: 'You successfully subscribed'
        422:
          description: ''
          content:
            application/json:
              schema:
                type: object
                example:
                  errors:
                    email:
                      - 'The Email Address field is required.'
                    name:
                      - 'The Your Name field is required.'
                properties:
                  errors:
                    type: object
                    example:
                      email:
                        - 'The Email Address field is required.'
                      name:
                        - 'The Your Name field is required.'
      tags:
        - Contact
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: 'Must be a valid email address.'
                  example: bwiza@example.net
                name:
                  type: string
                  description: ''
                  example: modi
              required:
                - email
                - name
      security: []
tags:
  -
    name: Contact
    description: ''
