Skip to content

Commit

Permalink
/identity endpoint added (#4460)
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliyKurokhtin authored and jhendrixMSFT committed Nov 14, 2018
1 parent 7df0ce5 commit 4f93dee
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,48 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identity": {
"get": {
"tags": [
"Users"
],
"operationId": "User_GetIdentity",
"description": "Returns calling user identity information.",
"x-ms-examples": {
"ApiManagementListUsers": {
"$ref": "./examples/ApiManagementGetUserIdentity.json"
}
},
"parameters": [
{
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Current user APIM id.",
"schema": {
"$ref": "#/definitions/CurrentUserIdentity"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users": {
"get": {
"tags": [
Expand Down Expand Up @@ -942,6 +984,14 @@
}
],
"description": "Parameters supplied to the Update User operation."
},
"CurrentUserIdentity": {
"properties": {
"id": {
"type": "string",
"description": "API Management service user id."
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"resourceGroupName": "rg1",
"serviceName": "apimService1",
"api-version": "2018-06-01-preview",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"id": "1"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,48 @@
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identity": {
"get": {
"tags": [
"Users"
],
"operationId": "User_GetIdentity",
"description": "Returns calling user identity information.",
"x-ms-examples": {
"ApiManagementListUsers": {
"$ref": "./examples/ApiManagementGetUserIdentity.json"
}
},
"parameters": [
{
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Current user APIM id.",
"schema": {
"$ref": "#/definitions/CurrentUserIdentity"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users": {
"get": {
"tags": [
Expand Down Expand Up @@ -942,6 +984,14 @@
}
],
"description": "Parameters supplied to the Update User operation."
},
"CurrentUserIdentity": {
"properties": {
"id": {
"type": "string",
"description": "API Management service user id."
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"resourceGroupName": "rg1",
"serviceName": "apimService1",
"api-version": "2018-01-01",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"id": "1"
}
}
}
}

0 comments on commit 4f93dee

Please sign in to comment.