The following is the yaml file i'm using :-
---------------------------------------------------------

paths:
  /login:
    post:
      summary: send mobileNum and otp to login
      description: send mobileNum and otp to login
      parameters:
        - name: args
          in: query
          description: send mobileNum and otp in args 
          required: true
          type: string
          format: string
      tags:
        - login
      responses:
        '200':
          headers:
            Authorization:  
              description: access token will be set in the authorization 
header
              type: string
          description: login successful, received accessToken in header and 
refreshToken in body
          schema:
            $ref: '#/definitions/ResponseTO'
        '401':
          description: invalid otp
          schema:
            $ref: '#/definitions/ResponseTO'
        default:
          description: Unexpected error
          schema:
            $ref: '#/definitions/ErrorResp'

=> I have generated the code for android client(for volley library) using 
swagger-codegen.  In the android code, now how can i get the headers in 
response.

     loginApi.loginPost(args) ------------->   request sent to server.
     responseTO                  <--------------------

    now how to access the headers in the response.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to