Skip to content
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
78ae75a
MSI-56 configure microsoft 365 search
klauselhai Feb 23, 2022
34a3852
MSI-65 handle new notification type
klauselhai Mar 3, 2022
baa3078
MSI-67 add message type property to post
Aug 15, 2022
389879d
Merge pull request #519 from invotra/MSI-68.MSI.SWAGGER-5.34
Maxiweb Aug 22, 2022
22d2494
Merge branch 'MSI.SWAGGER-5.34' into MSI.SWAGGER-5.36
Oct 17, 2022
861d5aa
MSI-62 Add integrations field to schema
Oct 17, 2022
0624c9f
MSI-62 Fix schema
Oct 17, 2022
6e92fa8
MSI-64 Add schema for create notification endpoint
Oct 17, 2022
69a8652
MSI-64 Add ms365 file types
Oct 18, 2022
79a2831
Merge pull request #535 from invotra/MSI-62.MSI.SWAGGER-5.36
Maxiweb Oct 20, 2022
de19acd
Merge pull request #465 from invotra/MSI-65.SWAGGER-5.27
Maxiweb Oct 20, 2022
ec9c5f8
MSI-44 Add share file endpoint
siarhei-hrynevich Nov 2, 2022
deb8a18
MSI-56 Fix merge conflict
siarhei-hrynevich Nov 3, 2022
8259a2a
MSI-56 Fix merge conflict
siarhei-hrynevich Nov 3, 2022
4e5d0d8
Merge pull request #462 from invotra/MSI-56.SWAGGER-5.27
MireilleHelle Nov 7, 2022
4a11b46
Merge pull request #539 from invotra/MSI-44.MSI.SWAGGER-5.36
Maxiweb Nov 7, 2022
2dfab2b
Merge branch 'MSI.SWAGGER-5.36' into MSI.SWAGGER-5.38
siarhei-hrynevich Dec 6, 2022
455b6d0
Merge branch 'MSI.SWAGGER-5.38' into MSI-64.MSI.SWAGGER-5.36
siarhei-hrynevich Dec 6, 2022
b60a7c0
MSI-64 Add relevance sort option
siarhei-hrynevich Dec 6, 2022
b3322af
Merge pull request #536 from invotra/MSI-64.MSI.SWAGGER-5.36
MireilleHelle Dec 6, 2022
515abda
MSI-64 Add microsoft file share endpoint
siarhei-hrynevich Dec 20, 2022
3c3cd4f
MSI-64 Add user id to users endpoints
siarhei-hrynevich Dec 20, 2022
f678da1
Merge pull request #547 from invotra/MSI-64.MSI.SWAGGER-5.38
MireilleHelle Dec 20, 2022
5f257d4
MSI-64 Fix schema
siarhei-hrynevich Dec 20, 2022
36f7cd8
Merge pull request #548 from invotra/MSI-64.MSI.SWAGGER-5.38
MireilleHelle Dec 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
212 changes: 212 additions & 0 deletions api.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,15 @@ paths:
- asc
- desc
default: desc
- description: Enabled integrations for user
in: query
name: integrations
schema:
type: array
items:
type: string
enum:
- microsoft365
- $ref: '#/components/parameters/offsetParam'
- $ref: '#/components/parameters/limitParam'
responses:
Expand Down Expand Up @@ -7306,6 +7315,11 @@ paths:
- other_document_types
- pdf
- video
- ms_onedrive
- ms_docx
- ms_xlsx
- ms_pptx
- ms_onenote
- name: filemime
description: 'Filter by file MIME type.'
in: query
Expand Down Expand Up @@ -7389,6 +7403,7 @@ paths:
- timestamp_created
- timestamp_updated
- file_usage_count
- relevance
default: timestamp_created
- name: order
description: 'Sort order.'
Expand Down Expand Up @@ -7503,6 +7518,58 @@ paths:
- SessionCookieHeader: []
- APIKeyHeader: []
- CognitoJwt: [ invotra/files:write ]
'/files/{file_id}/share':
parameters:
- description: The Invotra UUID of the file.
in: path
name: file_id
required: true
schema:
type: string
format: uuid
put:
tags:
- files
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/file-schema-share'
responses:
'200':
description: The file was shared successfully.
'400':
description: The supplied UUID or JSON was malformed.
'404':
description: Group, user or file is not exist.
'422':
description: Group and user UUIDs were passed both or none of them.
security:
- SessionCookieHeader: []
- APIKeyHeader: []
- CognitoJwt: [ invotra/files:read ]
'/files/share-microsoft-file':
put:
tags:
- files
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/microsoft-file-schema-share'
responses:
'200':
description: The file was shared successfully.
'400':
description: The supplied UUID or JSON was malformed.
'404':
description: Group, user or file is not exist.
'422':
description: Group and user UUIDs were passed both or none of them.
security:
- SessionCookieHeader: []
- APIKeyHeader: []
- CognitoJwt: [ invotra/files:read ]
/job_roles:
get:
deprecated: true
Expand Down Expand Up @@ -12017,6 +12084,28 @@ paths:
- SessionCookieHeader: []
- APIKeyHeader: []
- CognitoJwt: [ invotra/notifications:write ]
/notifications:
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/create-notifications-schema'
required: true
tags:
- notifications
description: Share entity thought notifications.
responses:
'201':
description: The token and device id was registered successfully.
'404':
description: Entity not found.
'422':
description: Unprocessable entity.
security:
- SessionCookieHeader: []
- APIKeyHeader: []
- CognitoJwt: [ invotra/notifications:write ]
/feeds/status:
get:
tags:
Expand Down Expand Up @@ -12507,6 +12596,14 @@ components:
- short_description
- one_line
- none
microsoft_365:
description: Configuration for microsoft 365
type: object
properties:
search:
description: This field is known as enable search in the Microsoft 365
type: boolean
example: false
franchise_settings:
description: The franchise setting
type: object
Expand Down Expand Up @@ -12595,6 +12692,14 @@ components:
- short_description
- one_line
- none
microsoft_365:
description: Configuration for microsoft 365
type: object
properties:
search:
description: Configure for microsoft 365 search
type: boolean
example: false
franchise_settings:
description: The franchise setting
type: object
Expand Down Expand Up @@ -13259,6 +13364,7 @@ components:
- invotra.comment.like
- invotra.group.pending
- invotra.group.added
- invotra.file.share
status:
description: Whether the notification has been read or not
type: boolean
Expand All @@ -13275,6 +13381,7 @@ components:
- node
- user
- comment
- file
target_subtype:
description: This is the subtype (or "bundle" in Drupal parlance) of the entity that the notification links to
type: string
Expand Down Expand Up @@ -13495,6 +13602,11 @@ components:
format: uuid
example: 01234567-89ab-cdef-1234-56789abcdef0
readOnly: true
uuid:
description: The id of the user
type: string
example: '1241'
readOnly: true
username:
description: The user's username
type: string
Expand Down Expand Up @@ -14331,6 +14443,15 @@ components:
type: string
source:
type: string
message_type:
type: string
enum:
- group_groupadd
- user_updated
- comment_created
- comment_updated
- node_created
- node_updated
post-schema-update:
allOf:
- $ref: '#/components/schemas/post-schema-common'
Expand Down Expand Up @@ -20207,6 +20328,11 @@ components:
- other_document_types
- pdf
- video
- ms_onedrive
- ms_docx
- ms_xlsx
- ms_pptx
- ms_onenote
file-type-configuration-schema:
type: object
required:
Expand All @@ -20226,12 +20352,57 @@ components:
- other_document_types
- pdf
- video
- ms_onedrive
- ms_docx
- ms_xlsx
- ms_pptx
- ms_onenote
extensions:
description: 'The file extensions permitted within the file type.'
type: array
items:
type: string
example: '.mp3'
file-schema-share:
type: object
required:
- message
properties:
user_uuid:
type: string
format: uuid
group_uuid:
type: string
format: uuid
message:
type: string
format: uuid
microsoft-file-schema-share:
type: object
required:
- file
- share_options
properties:
file:
type: object
required:
- filename
- filemime
- url
properties:
filename:
type: string
example: 'image.jpg'
filemime:
type: string
example: 'image/jpg'
url:
type: string
example: 'https://1drv.ms/i/s!AF0oTJKSfiiDcb'
share_options:
type: object
allOf:
- $ref: '#/components/schemas/file-schema-share'
job-role-schema:
allOf:
- type: object
Expand Down Expand Up @@ -20647,6 +20818,47 @@ components:
- ios
- android
type: object
create-notifications-schema:
properties:
author:
description: Author uuid.
type: string
format: uuid
example: 01234567-89ab-cdef-1234-56789abcdef0
recipient:
description: Recipient uuid.
type: string
format: uuid
example: 01234567-89ab-cdef-1234-56789abcdef0
type:
type: string
enum:
- 'invotra.user.follow'
- 'invotra.user.mention'
- 'invotra.user.shared'
- 'invotra.m365.shared'
- 'invotra.post.comment'
- 'invotra.comment.reply'
- 'invotra.post.like'
- 'invotra.comment.like'
- 'invotra.webform.type.created'
- 'invotra.webform.type.assignee'
- 'invotra.group.added'
- 'invotra.group.pending'
- 'invotra.group.adminless'
- 'invotra.video.uploaded'
- 'invotra.workflow.updated'
entity_type:
type: string
enum:
- file
entity_uuid:
description: Sharing entity uuid.
type: string
format: uuid
example: 01234567-89ab-cdef-1234-56789abcdef0

type: object
location-context-list-item-schema:
type: object
properties:
Expand Down