Platzi auth API

The auth API from Platzi — 3 operation(s) for auth.

OpenAPI Specification

platzi-auth-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: Platzi Fake Store auth API
  description: ''
  version: '1.0'
  contact: {}
servers: []
tags:
- name: auth
paths:
  /api/v1/auth/login:
    post:
      operationId: AuthController_login
      parameters: []
      responses:
        '201':
          description: ''
      tags:
      - auth
  /api/v1/auth/profile:
    get:
      operationId: AuthController_profile
      parameters: []
      responses:
        '200':
          description: ''
      tags:
      - auth
  /api/v1/auth/refresh-token:
    post:
      operationId: AuthController_refreshToken
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefreshTokenDto'
      responses:
        '201':
          description: ''
      tags:
      - auth
components:
  schemas:
    RefreshTokenDto:
      type: object
      properties:
        refreshToken:
          type: string
      required:
      - refreshToken