mirror of
https://github.com/openziti/ziti.git
synced 2026-10-04 12:31:31 +00:00
b562fb5c07
- splits Open API 2.0 (swagger) into client/management APIs - uses go-swaggers flatten capabilities - uses newer version of go-swagger (v0.27.0) - introduces /edge/client/v1, /edge/management/v1 - non-prefixed URLs default to /edge/client/v1 - splits some shared management/client API handlers - renames some REST models to "client" instead of "limited" - passes all apitests, fails dataflow upd test (main fails this as well) - updates generate rest script for powershell - todo: test generate rest script for bash - todo: use xweb (different branch)
63 lines
1.9 KiB
YAML
63 lines
1.9 KiB
YAML
---
|
|
paths:
|
|
current-identity:
|
|
get:
|
|
summary: Return the current identity
|
|
description: Returns the identity associated with the API sessions used to issue the current request
|
|
security:
|
|
- ztSession: [ ]
|
|
tags:
|
|
- Current Identity
|
|
operationId: getCurrentIdentity
|
|
responses:
|
|
'200':
|
|
$ref: '#/responses/detailCurrentIdentity'
|
|
'401':
|
|
$ref: 'standard-responses.yml#/responses/unauthorizedResponse'
|
|
responses:
|
|
detailCurrentIdentity:
|
|
description: The identity associated with the API Session used to issue the request
|
|
schema:
|
|
$ref: '#/definitions/currentIdentityDetailEnvelope'
|
|
examples:
|
|
default:
|
|
meta: { }
|
|
data:
|
|
id: 66352d7b-a6b2-4ce9-85bb-9f18e318704d
|
|
createdAt: '2020-01-13T16:38:13.6854788Z'
|
|
updatedAt: '2020-01-13T16:38:13.6854788Z'
|
|
_links:
|
|
edge-router-policies:
|
|
href: './identities/66352d7b-a6b2-4ce9-85bb-9f18e318704d/edge-routers'
|
|
self:
|
|
href: './identities/66352d7b-a6b2-4ce9-85bb-9f18e318704d'
|
|
service-policies:
|
|
href: './identities/66352d7b-a6b2-4ce9-85bb-9f18e318704d/identities'
|
|
tags: { }
|
|
name: Default Admin
|
|
type:
|
|
urlName: identity-types
|
|
id: User
|
|
name: User
|
|
_links:
|
|
self:
|
|
href: './identity-types/User'
|
|
isDefaultAdmin: true
|
|
isAdmin: true
|
|
authenticators:
|
|
updb:
|
|
username: admin
|
|
enrollment: { }
|
|
roleAttributes: []
|
|
|
|
definitions:
|
|
currentIdentityDetailEnvelope:
|
|
type: object
|
|
required:
|
|
- meta
|
|
- data
|
|
properties:
|
|
meta:
|
|
$ref: 'standard-responses.yml#/definitions/meta'
|
|
data:
|
|
$ref: 'identities.yml#/definitions/identityDetail' |