Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No operations defined in spec! #70

Open
VNAPNIC opened this issue Jan 15, 2022 · 1 comment
Open

No operations defined in spec! #70

VNAPNIC opened this issue Jan 15, 2022 · 1 comment

Comments

@VNAPNIC
Copy link

VNAPNIC commented Jan 15, 2022

No operations defined in spec!

Web capture_16-1-2022_3384_localhost

Web capture_16-1-2022_33729_editor swagger io

definitions:
  response.Struct:
    properties:
      code:
        type: integer
      data: {}
      message:
        type: string
      time_stamp:
        type: integer
    type: object
  services.AuthStruct:
    properties:
      password:
        maxLength: 20
        minLength: 6
        type: string
      user_name:
        maxLength: 20
        minLength: 6
        type: string
    required:
    - password
    - user_name
    type: object
info:
  contact: {}
paths:
  /login:
    post:
      consumes:
      - application/json
      description: User Login
      parameters:
      - description: user login
        in: body
        name: payload
        required: true
        schema:
          $ref: '#/definitions/services.AuthStruct'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/response.Struct'
        "400":
          description: wrong request parameter
          schema:
            $ref: '#/definitions/response.Struct'
        "20005":
          description: The corresponding username or password is incorrect
          schema:
            $ref: '#/definitions/response.Struct'
      summary: User Login
      tags:
      - Auth
securityDefinitions:
  ApiKeyAuth:
    in: 'header like: Bearer xxxx'
    name: Authorization
    type: apiKey
swagger: "2.0"
@ElForastero
Copy link

Check if it helps:

#66 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants