-
Notifications
You must be signed in to change notification settings - Fork 3
PM-3329 member data #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7353ac9
9ae9d67
2ab0f0e
eb21504
deedc4e
3c0256d
222c95c
872922f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -564,6 +564,55 @@ paths: | |
| description: Internal server error | ||
| schema: | ||
| $ref: '#/definitions/ErrorModel' | ||
| '/members/{handle}/skills/{skillid}': | ||
| get: | ||
| tags: | ||
| - Basic | ||
| description: |- | ||
| Get a specific member skill by skill ID. | ||
|
|
||
| Authorization: | ||
| - Public: Without a token responses omit secure and communication fields. | ||
| - JWT roles: The profile owner or `administrator`/`admin` roles may view secure fields. | ||
| - M2M scopes: `read:user_profiles` or `all:user_profiles`. | ||
| security: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [ |
||
| - bearer: [] | ||
| parameters: | ||
| - in: path | ||
| name: handle | ||
| required: true | ||
| type: string | ||
| - in: path | ||
| name: skillid | ||
| required: true | ||
| type: string | ||
| description: The skill id to retrieve | ||
| responses: | ||
| '200': | ||
| description: OK | ||
| schema: | ||
| $ref: '#/definitions/MemberSkillsWithActivity' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [❗❗ |
||
| '400': | ||
| description: Bad request data | ||
| schema: | ||
| $ref: '#/definitions/ErrorModel' | ||
| '401': | ||
| description: Miss or wrong authentication credentials | ||
| schema: | ||
| $ref: '#/definitions/ErrorModel' | ||
| '403': | ||
| description: No permission | ||
| schema: | ||
| $ref: '#/definitions/ErrorModel' | ||
| '404': | ||
| description: Not found | ||
| schema: | ||
| $ref: '#/definitions/ErrorModel' | ||
| '500': | ||
| description: Internal server error | ||
| schema: | ||
| $ref: '#/definitions/ErrorModel' | ||
|
|
||
| /members: | ||
| get: | ||
| tags: | ||
|
|
@@ -2727,6 +2776,63 @@ definitions: | |
| type: string | ||
| example: 'Skill verified by proof of capability' | ||
|
|
||
| MemberSkillsWithActivity: | ||
| allOf: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [❗❗ |
||
| - $ref: '#/definitions/MemberSkills' | ||
| - type: object | ||
| properties: | ||
| activity: | ||
| type: object | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [ |
||
| properties: | ||
| challenge: | ||
| type: object | ||
| properties: | ||
| count: | ||
| type: integer | ||
| format: int64 | ||
| lastSources: | ||
| type: array | ||
| items: | ||
| type: object | ||
| properties: | ||
| id: | ||
| type: integer | ||
| format: int64 | ||
| name: | ||
| type: string | ||
| certification: | ||
| type: object | ||
| properties: | ||
| count: | ||
| type: integer | ||
| lastSources: | ||
| type: array | ||
| items: | ||
| type: object | ||
| properties: | ||
| completionEventId: | ||
| type: string | ||
| dashedName: | ||
| type: string | ||
| title: | ||
| type: string | ||
| course: | ||
| type: object | ||
| properties: | ||
| count: | ||
| type: integer | ||
| lastSources: | ||
| type: array | ||
| items: | ||
| type: object | ||
| properties: | ||
| completionEventId: | ||
| type: string | ||
| certification: | ||
| type: string | ||
| title: | ||
| type: string | ||
|
|
||
| MemberDistributionStats: | ||
| type: object | ||
| properties: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[💡
readability]The description for the endpoint mentions 'secure and communication fields' but does not specify what these fields are. Consider clarifying which fields are considered secure and communication fields to avoid ambiguity.