github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2919/edge-api/shared/current-api-session.yml (about) 1 --- 2 paths: 3 current-api-session: 4 get: 5 summary: Return the current API session 6 description: Retrieves the API session that was used to issue the current request 7 security: 8 - ztSession: [ ] 9 tags: 10 - Current API Session 11 operationId: getCurrentAPISession 12 responses: 13 200: 14 $ref: '#/responses/detailCurrentAPISession' 15 401: 16 $ref: 'standard-responses.yml#/responses/unauthorizedResponse' 17 delete: 18 summary: Logout 19 description: Terminates the current API session 20 security: 21 - ztSession: [ ] 22 tags: 23 - Current API Session 24 responses: 25 200: 26 $ref: 'standard-responses.yml#/responses/emptyResponse' 27 401: 28 $ref: 'standard-responses.yml#/responses/unauthorizedResponse' 29 30 responses: 31 detailCurrentAPISession: 32 description: The API session associated with the session used to issue the request 33 schema: 34 $ref: '#/definitions/currentApiSessionDetailEnvelope' 35 examples: 36 default: 37 meta: { } 38 data: 39 id: 27343114-b44f-406e-9981-f3c4f2f28d54 40 createdAt: '2020-03-09T19:03:49.1883693Z' 41 updatedAt: '2020-03-09T19:04:21.5600897Z' 42 _links: 43 self: 44 href: './current-api-session' 45 tags: 46 - userField1: 123 47 - userField2: asdf 48 token: 28bb0ed2-0577-4632-ae70-d17106b92871 49 identity: 50 urlName: identities 51 id: 66352d7b-a6b2-4ce9-85bb-9f18e318704d 52 name: Default Admin 53 _links: 54 self: 55 href: './identities/66352d7b-a6b2-4ce9-85bb-9f18e318704d' 56 expiresAt: '2020-03-09T19:34:21.5600897Z' 57 configTypes: [ ] 58 59 definitions: 60 detailApiSessionEnvelope: 61 required: 62 - meta 63 - data 64 type: object 65 properties: 66 meta: 67 $ref: 'standard-responses.yml#/definitions/meta' 68 data: 69 $ref: 'api-sessions.yml#/definitions/apiSessionDetail' 70 currentApiSessionDetailEnvelope: 71 type: object 72 required: 73 - meta 74 - data 75 properties: 76 meta: 77 $ref: 'standard-responses.yml#/definitions/meta' 78 data: 79 $ref: '#/definitions/currentApiSessionDetail' 80 currentApiSessionDetail: 81 description: An API Session object for the current API session 82 type: object 83 allOf: 84 - $ref: 'api-sessions.yml#/definitions/apiSessionDetail' 85 - type: object 86 required: 87 - expiresAt 88 - expirationSeconds 89 properties: 90 expiresAt: 91 type: string 92 format: date-time 93 expirationSeconds: 94 type: integer