Skip to content

Commit

Permalink
fix schemas for external identities
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnetordoff committed Aug 16, 2018
1 parent cbe7eb6 commit e9e464a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 18 deletions.
31 changes: 31 additions & 0 deletions swagger-spec/external_identities/external_identities_detail.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
type: object
title: External Identity Detail
properties:
id:
type: string
readOnly: true
description: 'The identifier of the external identity provider e.g. ORCID.'
type:
type: string
readOnly: true
description: 'The type identifier of the external identity entity (`external-identities`).'
attributes:
type: object
title: Attributes
readOnly: true
description: 'The properties of the external identity entity.'
properties:
status:
type: string
readOnly: true
description: 'The status of the external identity e.g LINK or VERIFIED.'
external_id:
type: string
readOnly: true
description: 'The identifier for the user associated with that external identity.'
links:
type: object
title: Links
readOnly: true
description: 'URLs to alternative representations of the citation style entity.'

20 changes: 3 additions & 17 deletions swagger-spec/users/external_identities_detail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ get:
'200':
description: 'OK'
schema:
$ref: definition.yaml
$ref: '../external_identities/external_identities_detail.yaml'
examples:
application/json:
data:
Expand Down Expand Up @@ -86,19 +86,5 @@ delete:
- Users
operationId: external_identities_detail
responses:
'200':
description: 'OK'
schema:
$ref: definition.yaml
examples:
application/json:
data:
links:
self: https://api.osf.io/v2/users/q7fts/settings/identities/ORCID/
attributes:
status: VERFIED
external_id: '0000-0001-9143-4652'
id: ORCID
type: users
id: q7fts

'204':
description: 'NO CONTENT'
4 changes: 3 additions & 1 deletion swagger-spec/users/external_identities_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ get:
'200':
description: 'OK'
schema:
$ref: definition.yaml
type: array
items:
$ref: '../external_identities/external_identities_detail.yaml'
examples:
application/json:
data:
Expand Down

0 comments on commit e9e464a

Please sign in to comment.