github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2919/edge-api/management/api-sessions.yml (about) 1 --- 2 3 paths: 4 api-sessions: 5 get: 6 summary: List active API sessions 7 description: | 8 Returns a list of active API sessions. The resources can be sorted, filtered, and paginated. This endpoint 9 requires admin access. 10 security: 11 - ztSession: [ ] 12 tags: 13 - API Session 14 operationId: listAPISessions 15 produces: 16 - application/json; charset=utf-8 17 parameters: 18 - $ref: '../shared/parameters.yml#/limit' 19 - $ref: '../shared/parameters.yml#/offset' 20 - $ref: '../shared/parameters.yml#/filter' 21 responses: 22 '200': 23 $ref: '#/responses/listAPISessions' 24 '401': 25 $ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse' 26 '400': 27 $ref: '../shared/standard-responses.yml#/responses/badRequestResponse' 28 api-sessions-id: 29 parameters: 30 - $ref: '../shared/parameters.yml#/id' 31 get: 32 summary: Retrieves a single API Session 33 description: Retrieves a single API Session by id. Requires admin access. 34 security: 35 - ztSession: [ ] 36 tags: 37 - API Session 38 operationId: detailAPISessions 39 responses: 40 '200': 41 $ref: '#/responses/detailAPISession' 42 '404': 43 $ref: '../shared/standard-responses.yml#/responses/notFoundResponse' 44 '401': 45 $ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse' 46 delete: 47 summary: Deletes an API Sessions 48 description: Deletes and API sesion by id. Requires admin access. 49 security: 50 - ztSession: [ ] 51 tags: 52 - API Session 53 operationId: deleteAPISessions 54 responses: 55 '200': 56 $ref: '../shared/standard-responses.yml#/responses/deleteResponse' 57 '404': 58 $ref: '../shared/standard-responses.yml#/responses/notFoundResponse' 59 '403': 60 $ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse' 61 62 responses: 63 listAPISessions: 64 description: A list of active API Sessions 65 schema: 66 $ref: '../shared/api-sessions.yml#/definitions/listAPISessionsEnvelope' 67 detailAPISession: 68 description: Retrieves a singular API Session by id 69 schema: 70 $ref: '../shared/api-sessions.yml#/definitions/detailApiSessionEnvelope'