Skip to content
Snippets Groups Projects

update: add authenticated employment-history metadata endpoint

Merged Martin Lowe requested to merge malowe/main/115 into main
1 unresolved thread
9 files
+ 286
22
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 62
0
@@ -173,6 +173,39 @@ paths:
@@ -173,6 +173,39 @@ paths:
description: Error while retrieving data.
description: Error while retrieving data.
deprecated: false
deprecated: false
 
/account/profile/{name}/employment-history:
 
get:
 
tags:
 
- User Metadata
 
summary: Retrieve user employment history via username
 
description: Retrieve employment history for a specified user.
 
operationId: getUserEmploymentHistory
 
security:
 
- OAuth2:
 
- eclipsefdn_view_all_profiles
 
parameters:
 
- name: name
 
in: path
 
description: An ef username.
 
required: true
 
style: simple
 
explode: false
 
schema:
 
type: string
 
responses:
 
"200":
 
description: Success
 
content:
 
application/json:
 
schema:
 
$ref: "#/components/schemas/EmploymentHistories"
 
example:
 
signed: true
 
can_contribute_spec_project: true
 
"500":
 
description: Error while retrieving data.
 
deprecated: false
 
/account/profile/{name}/mailing-list:
/account/profile/{name}/mailing-list:
get:
get:
tags:
tags:
@@ -843,6 +876,35 @@ components:
@@ -843,6 +876,35 @@ components:
- list_name: epp
- list_name: epp
list_description: Eclipse Packaging Project
list_description: Eclipse Packaging Project
 
EmploymentHistories:
 
type: array
 
items:
 
$ref: "#/components/schemas/EmploymentHistory"
 
 
EmploymentHistory:
 
type: object
 
additionalProperties: false
 
required:
 
- organization_id
 
- organization_name
 
- start
 
properties:
 
organization_id:
 
type: number
 
description: Internal numerical ID of organization
 
organization_name:
 
type: string
 
description: The legal name of the organization
 
start:
 
type: string
 
description: Start or entry date of the user employment
 
end:
 
type:
 
- "null"
 
- string
 
description: Termination or change date for employment
 
 
MailingList:
MailingList:
type: object
type: object
additionalProperties: false
additionalProperties: false
Loading