Skip to content
Snippets Groups Projects

feat: Migrate Slack /u command

All threads resolved!
Files
8
+ 80
0
@@ -20,6 +20,8 @@ tags:
@@ -20,6 +20,8 @@ tags:
description: Additional user metadata
description: Additional user metadata
- name: User Delete Request
- name: User Delete Request
description: User delete request processing
description: User delete request processing
 
- name: Slack Webhook
 
description: Slack Webhook processing
paths:
paths:
/account/profile:
/account/profile:
@@ -469,6 +471,32 @@ paths:
@@ -469,6 +471,32 @@ paths:
"500":
"500":
description: Error while modifying data.
description: Error while modifying data.
 
/slack/profile:
 
post:
 
tags:
 
- Slack Webhook
 
summary: Retrieve a user profile by username or email.
 
description: Retrieve profile information by email or username.
 
operationId: SlackProfileWebhook
 
requestBody:
 
description: The Slack profile search request
 
required: true
 
content:
 
application/json:
 
schema:
 
$ref: "#/components/schemas/SlackRequest"
 
responses:
 
"200":
 
description: Success - Profile found/not found
 
content:
 
application/json:
 
schema:
 
$ref: "#/components/schemas/SlackResponse"
 
"403":
 
description: Invalid authentication
 
"500":
 
description: Error while retrieving data.
 
components:
components:
securitySchemes:
securitySchemes:
OAuth2:
OAuth2:
@@ -1005,3 +1033,55 @@ components:
@@ -1005,3 +1033,55 @@ components:
description: The desired status for updating the delete request.
description: The desired status for updating the delete request.
example:
example:
status: 2
status: 2
 
 
SlackRequest:
 
type: object
 
properties:
 
text:
 
type: string
 
description: The value used to search for a profile
 
token:
 
type: string
 
description: The authentication token
 
team_domain:
 
type: string
 
description: The slack team domain
 
example:
 
text: zacharysabourin
 
token: auth_token
 
team_domain: my_team
 
 
SlackResponse:
 
type: object
 
properties:
 
response_type:
 
type: string
 
description: Visibilty control used by slack. Used to post response in channel
 
text:
 
type: string
 
description: The response message
 
attachments:
 
items:
 
oneOf:
 
- $ref: "#/components/schemas/SlackAttachment"
 
- type: "null"
 
example:
 
response_type: "in_channel"
 
text: "An Eclipse account was found with zacharysabourin https://accounts.eclipse.org/user/606609."
 
attachments:
 
- title: "Zachary Sabourin(Eclipse Foundation)"
 
title_link: "https://accounts.eclipse.org/user/606609."
 
text: "*ECA Status:* Valid\\*Name:* zacharysabourin\\*Mail:* email@test.com\\*Committer:* No\\*Github handle:* https://github.com/zacharysabourin\\*Job title:* Web Developer\\*Bio:* I'm fascinated by the power of technology and I'm always trying to learn new things! When I'm not working or learning, I enjoy exploring my many interests or going on walks. \r\n\r\n\"Be yourself; everyone else is already taken\" -Oscar Wilde\r\n\n*Interests*Video games, bass guitar, Music, Magic: the Gathering, PodCasts"
 
 
SlackAttachment:
 
type: object
 
properties:
 
title:
 
type: string
 
description: the attachment title
 
title_link:
 
type: string
 
description: A URL to embed in the title
 
text:
 
type: string
 
text: The content of the attachment. A markdown formatted string in this case
Loading