mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.7 KiB
102 lines
2.7 KiB
{ |
|
"kind": "discovery#restDescription", |
|
"discoveryVersion": "v1", |
|
"id": "dex:v1", |
|
"name": "adminschema", |
|
"version": "v1", |
|
"title": "Dex Admin API", |
|
"description": "The Dex Admin API.", |
|
"documentationLink": "http://github.com/coreos/dex", |
|
"protocol": "rest", |
|
"icons": { |
|
"x16": "", |
|
"x32": "" |
|
}, |
|
"labels": [], |
|
"baseUrl": "$ENDPOINT/api/v1/", |
|
"basePath": "/api/v1/", |
|
"rootUrl": "$ENDPOINT/", |
|
"servicePath": "api/v1/", |
|
"batchPath": "batch", |
|
"parameters": {}, |
|
"auth": {}, |
|
"schemas": { |
|
"Admin": { |
|
"id": "Admin", |
|
"type": "object", |
|
"description": "Admin represents an admin user within the database", |
|
"properties": { |
|
"id": { |
|
"type": "string" |
|
}, |
|
"email": { |
|
"type": "string" |
|
}, |
|
"password": { |
|
"type": "string" |
|
} |
|
} |
|
}, |
|
"State": { |
|
"id": "State", |
|
"type": "object", |
|
"description": "Admin represents dex data within.", |
|
"properties": { |
|
"AdminUserCreated": { |
|
"type": "boolean" |
|
} |
|
} |
|
} |
|
}, |
|
"resources": { |
|
"Admin": { |
|
"methods": { |
|
"Get": { |
|
"id": "dex.admin.Admin.Get", |
|
"description": "Retrieve information about an admin user.", |
|
"httpMethod": "GET", |
|
"path": "admin/{id}", |
|
"parameters": { |
|
"id": { |
|
"type": "string", |
|
"required": true, |
|
"location": "path" |
|
} |
|
}, |
|
"parameterOrder": [ |
|
"id" |
|
], |
|
"response": { |
|
"$ref": "Admin" |
|
} |
|
|
|
}, |
|
"Create": { |
|
"id": "dex.admin.Admin.Create", |
|
"description": "Create a new admin user.", |
|
"httpMethod": "POST", |
|
"path": "admin", |
|
"request": { |
|
"$ref": "Admin" |
|
}, |
|
"response": { |
|
"$ref": "Admin" |
|
} |
|
} |
|
} |
|
}, |
|
"State": { |
|
"methods": { |
|
"Get": { |
|
"id": "dex.admin.State.Get", |
|
"description": "Get the state of the Dex DB", |
|
"httpMethod": "GET", |
|
"path": "state", |
|
"response": { |
|
"$ref": "State" |
|
} |
|
} |
|
} |
|
} |
|
} |
|
}
|
|
|