Eden Health grdn.routes.impl.sponsor-user API

Handlers for sponsor_user endpoints

OpenAPI Specification

eden-health-grdn-routes-impl-sponsor-user-api-openapi.yml Raw ↑
swagger: '2.0'
info:
  version: null
  title: Grdn grdn.handler grdn.routes.impl.sponsor-user API
  description: Eden Health Inc. primary backend API service.
consumes:
- application/json
produces:
- application/json
tags:
- name: grdn.routes.impl.sponsor-user
  description: Handlers for sponsor_user endpoints
paths:
  /v2/sponsor-user:
    delete:
      summary: delete-sponsor-user
      description: Deletes a sponsor user
      tags:
      - grdn.routes.impl.sponsor-user
      parameters: []
      responses:
        default:
          description: Default success response.
          schema: {}
    get:
      summary: get-sponsor-user
      description: Returns sponsor user info from the identity loaded by auth middleware
      tags:
      - grdn.routes.impl.sponsor-user
      parameters: []
      responses:
        default:
          description: Default success response.
          schema:
            type: object
            properties:
              sub:
                type: string
                format: uuid
              visitor_code:
                type: string
              id:
                type: string
                format: uuid
              schema_name:
                type: string
              updated_at: {}
              last_name:
                type: string
                x-allOf:
                - type: string
                - {}
              first_name:
                type: string
                x-allOf:
                - type: string
                - {}
              created_at: {}
              sponsor_name:
                type: string
              restricted_vax_status:
                type: boolean
              restricted_dashboard:
                type: boolean
              sponsor_id:
                type: string
                format: uuid
            required:
            - first_name
            - schema_name
            - sub
            - updated_at
            - visitor_code
            - id
            - restricted_dashboard
            - restricted_vax_status
            - last_name
            - sponsor_name
            - sponsor_id
            - created_at
            title: grdn.specs.sponsor-user/get-sponsor-user-response
    post:
      summary: create-sponsor-user
      description: Creates a sponsor user
      tags:
      - grdn.routes.impl.sponsor-user
      parameters:
      - in: body
        name: grdn.specs/create-sponsor-user-params
        description: 'origin spec: grdn.specs/create-sponsor-user-params'
        schema:
          type: object
          properties:
            sponsor-id:
              type: string
              format: uuid
            first-name:
              type: string
              x-allOf:
              - type: string
              - {}
            last-name:
              type: string
              x-allOf:
              - type: string
              - {}
            email:
              type: string
              x-allOf:
              - type: string
              - {}
          required:
          - sponsor-id
          - first-name
          - last-name
          - email
          title: grdn.specs/create-sponsor-user-params
      responses:
        default:
          description: Default success response.
          schema: {}