2022-04-13 22:24:32 +02:00
|
|
|
basePath: /api/v2
|
2021-02-17 21:29:20 +02:00
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
definitions:
|
|
|
|
Block:
|
|
|
|
description: Block is the basic data unit
|
|
|
|
properties:
|
2022-03-22 16:24:34 +02:00
|
|
|
boardId:
|
|
|
|
description: The board id that the block belongs to
|
|
|
|
type: string
|
|
|
|
x-go-name: BoardID
|
2021-02-17 21:29:20 +02:00
|
|
|
createAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: The creation time in miliseconds since the current epoch
|
2021-02-17 21:29:20 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: CreateAt
|
2021-08-06 14:10:24 +02:00
|
|
|
createdBy:
|
|
|
|
description: The id for user who created this block
|
|
|
|
type: string
|
|
|
|
x-go-name: CreatedBy
|
2021-02-17 21:29:20 +02:00
|
|
|
deleteAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: The deleted time in miliseconds since the current epoch. Set to indicate this block is deleted
|
2021-02-17 21:29:20 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: DeleteAt
|
|
|
|
fields:
|
|
|
|
additionalProperties:
|
|
|
|
type: object
|
|
|
|
description: The block fields
|
|
|
|
type: object
|
|
|
|
x-go-name: Fields
|
|
|
|
id:
|
|
|
|
description: The id for this block
|
|
|
|
type: string
|
|
|
|
x-go-name: ID
|
|
|
|
modifiedBy:
|
|
|
|
description: The id for user who last modified this block
|
|
|
|
type: string
|
|
|
|
x-go-name: ModifiedBy
|
|
|
|
parentId:
|
|
|
|
description: The id for this block's parent block. Empty for root blocks
|
|
|
|
type: string
|
|
|
|
x-go-name: ParentID
|
|
|
|
schema:
|
|
|
|
description: The schema version of this block
|
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: Schema
|
|
|
|
title:
|
|
|
|
description: The display title
|
|
|
|
type: string
|
|
|
|
x-go-name: Title
|
|
|
|
type:
|
2021-12-15 21:54:23 +02:00
|
|
|
$ref: '#/definitions/BlockType'
|
2021-02-17 21:29:20 +02:00
|
|
|
updateAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: The last modified time in miliseconds since the current epoch
|
2021-02-17 21:29:20 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: UpdateAt
|
|
|
|
required:
|
|
|
|
- id
|
2021-08-06 14:10:24 +02:00
|
|
|
- createdBy
|
2021-02-17 21:29:20 +02:00
|
|
|
- modifiedBy
|
|
|
|
- schema
|
|
|
|
- type
|
|
|
|
- createAt
|
|
|
|
- updateAt
|
2022-03-22 16:24:34 +02:00
|
|
|
- boardId
|
2021-02-17 21:29:20 +02:00
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2021-08-06 14:10:24 +02:00
|
|
|
BlockPatch:
|
|
|
|
description: BlockPatch is a patch for modify blocks
|
|
|
|
properties:
|
2022-03-22 16:24:34 +02:00
|
|
|
boardId:
|
|
|
|
description: The board id that the block belongs to
|
|
|
|
type: string
|
|
|
|
x-go-name: BoardID
|
2021-08-06 14:10:24 +02:00
|
|
|
deletedFields:
|
|
|
|
description: The block removed fields
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
x-go-name: DeletedFields
|
|
|
|
parentId:
|
|
|
|
description: The id for this block's parent block. Empty for root blocks
|
|
|
|
type: string
|
|
|
|
x-go-name: ParentID
|
|
|
|
schema:
|
|
|
|
description: The schema version of this block
|
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: Schema
|
|
|
|
title:
|
|
|
|
description: The display title
|
|
|
|
type: string
|
|
|
|
x-go-name: Title
|
|
|
|
type:
|
2021-12-15 21:54:23 +02:00
|
|
|
$ref: '#/definitions/BlockType'
|
2021-08-06 14:10:24 +02:00
|
|
|
updatedFields:
|
|
|
|
additionalProperties:
|
|
|
|
type: object
|
|
|
|
description: The block updated fields
|
|
|
|
type: object
|
|
|
|
x-go-name: UpdatedFields
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2021-12-15 21:54:23 +02:00
|
|
|
BlockPatchBatch:
|
|
|
|
description: BlockPatchBatch is a batch of IDs and patches for modify blocks
|
|
|
|
properties:
|
|
|
|
block_ids:
|
|
|
|
description: The id's for of the blocks to patch
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
x-go-name: BlockIDs
|
|
|
|
block_patches:
|
|
|
|
description: The BlockPatches to be applied
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/BlockPatch'
|
|
|
|
type: array
|
|
|
|
x-go-name: BlockPatches
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
|
|
|
BlockType:
|
|
|
|
title: BlockType represents a block type.
|
|
|
|
type: string
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2022-03-22 16:24:34 +02:00
|
|
|
Board:
|
|
|
|
description: Board groups a set of blocks and its layout
|
|
|
|
properties:
|
|
|
|
cardProperties:
|
|
|
|
description: The properties of the board cards
|
|
|
|
items:
|
|
|
|
additionalProperties:
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
type: array
|
|
|
|
x-go-name: CardProperties
|
|
|
|
channelId:
|
|
|
|
description: The ID of the channel that the board was created from
|
|
|
|
type: string
|
|
|
|
x-go-name: ChannelID
|
|
|
|
createAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: The creation time in miliseconds since the current epoch
|
2022-03-22 16:24:34 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: CreateAt
|
|
|
|
createdBy:
|
|
|
|
description: The ID of the user that created the board
|
|
|
|
type: string
|
|
|
|
x-go-name: CreatedBy
|
|
|
|
deleteAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: The deleted time in miliseconds since the current epoch. Set to indicate this block is deleted
|
2022-03-22 16:24:34 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: DeleteAt
|
|
|
|
description:
|
|
|
|
description: The description of the board
|
|
|
|
type: string
|
|
|
|
x-go-name: Description
|
|
|
|
icon:
|
|
|
|
description: The icon of the board
|
|
|
|
type: string
|
|
|
|
x-go-name: Icon
|
|
|
|
id:
|
|
|
|
description: The ID for the board
|
|
|
|
type: string
|
|
|
|
x-go-name: ID
|
|
|
|
isTemplate:
|
|
|
|
description: Marks the template boards
|
|
|
|
type: boolean
|
|
|
|
x-go-name: IsTemplate
|
|
|
|
modifiedBy:
|
|
|
|
description: The ID of the last user that updated the board
|
|
|
|
type: string
|
|
|
|
x-go-name: ModifiedBy
|
|
|
|
properties:
|
|
|
|
additionalProperties:
|
|
|
|
type: object
|
|
|
|
description: The properties of the board
|
|
|
|
type: object
|
|
|
|
x-go-name: Properties
|
|
|
|
showDescription:
|
|
|
|
description: Indicates if the board shows the description on the interface
|
|
|
|
type: boolean
|
|
|
|
x-go-name: ShowDescription
|
|
|
|
teamId:
|
|
|
|
description: The ID of the team that the board belongs to
|
|
|
|
type: string
|
|
|
|
x-go-name: TeamID
|
|
|
|
templateVersion:
|
|
|
|
description: Marks the template boards
|
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: TemplateVersion
|
|
|
|
title:
|
|
|
|
description: The title of the board
|
|
|
|
type: string
|
|
|
|
x-go-name: Title
|
|
|
|
type:
|
|
|
|
$ref: '#/definitions/BoardType'
|
|
|
|
updateAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: The last modified time in miliseconds since the current epoch
|
2022-03-22 16:24:34 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: UpdateAt
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- teamId
|
|
|
|
- createdBy
|
|
|
|
- modifiedBy
|
|
|
|
- type
|
|
|
|
- createAt
|
|
|
|
- updateAt
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
|
|
|
BoardMember:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: BoardMember stores the information of the membership of a user on a board
|
2022-03-22 16:24:34 +02:00
|
|
|
properties:
|
|
|
|
boardId:
|
|
|
|
description: The ID of the board
|
|
|
|
type: string
|
|
|
|
x-go-name: BoardID
|
|
|
|
roles:
|
|
|
|
description: The independent roles of the user on the board
|
|
|
|
type: string
|
|
|
|
x-go-name: Roles
|
|
|
|
schemeAdmin:
|
|
|
|
description: Marks the user as an admin of the board
|
|
|
|
type: boolean
|
|
|
|
x-go-name: SchemeAdmin
|
|
|
|
schemeCommenter:
|
|
|
|
description: Marks the user as an commenter of the board
|
|
|
|
type: boolean
|
|
|
|
x-go-name: SchemeCommenter
|
|
|
|
schemeEditor:
|
|
|
|
description: Marks the user as an editor of the board
|
|
|
|
type: boolean
|
|
|
|
x-go-name: SchemeEditor
|
|
|
|
schemeViewer:
|
|
|
|
description: Marks the user as an viewer of the board
|
|
|
|
type: boolean
|
|
|
|
x-go-name: SchemeViewer
|
|
|
|
userId:
|
|
|
|
description: The ID of the user
|
|
|
|
type: string
|
|
|
|
x-go-name: UserID
|
|
|
|
required:
|
|
|
|
- boardId
|
|
|
|
- userId
|
|
|
|
- schemeAdmin
|
|
|
|
- schemeEditor
|
|
|
|
- schemeCommenter
|
|
|
|
- schemeViewer
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2022-04-05 17:00:04 +02:00
|
|
|
BoardMemberHistoryEntry:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: BoardMemberHistoryEntry stores the information of the membership of a user on a board
|
2022-04-05 17:00:04 +02:00
|
|
|
properties:
|
|
|
|
action:
|
|
|
|
description: The action that added this history entry (created or deleted)
|
|
|
|
type: string
|
|
|
|
x-go-name: Action
|
|
|
|
boardId:
|
|
|
|
description: The ID of the board
|
|
|
|
type: string
|
|
|
|
x-go-name: BoardID
|
|
|
|
insertAt:
|
|
|
|
description: The insertion time
|
2022-04-15 19:21:10 +02:00
|
|
|
format: date-time
|
|
|
|
type: string
|
2022-04-05 17:00:04 +02:00
|
|
|
x-go-name: InsertAt
|
|
|
|
userId:
|
|
|
|
description: The ID of the user
|
|
|
|
type: string
|
|
|
|
x-go-name: UserID
|
|
|
|
required:
|
|
|
|
- boardId
|
|
|
|
- userId
|
|
|
|
- insertAt
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
GetBoardMetadata API (#2569)
* wip
* Added data migration for populating categories
* wip
* Added data migration for populating categories
* Store WIP
* migration WIP
* category CRUD APIs complete
* category block API WIP
* block category update API done
* Fetcehed data into store
* Started displayting sidebar data
* sidebar WIP
* Dashboard - basic changes
* Sidebar dashboard btn and board switcher UI only
* Sidebar dashboard btn and board switcher UI only
* create category dialog WIP
* Create category webapp side done
* Integrated move card to other category
* board to block
* Disabled dashboard route for now as we'll implement it in phase 2
* WIP
* Added logic to open last board/view on per team level
* Add workspace to teams and boards migrations (#1986)
* Add workspace to teams and boards migrations
* Update json annotations on board models
* boards search dialog WIP
* Seach dialog WIP
* Implemented opening boiard from search results
* Boards switcher styliung
* Handled update category WS event
* Template support
* personal server support and styling fixes
* test fix WIP
* Fixed a bug causing boards to not be moved correctly beteen categories
* Fixed webapp tests
* fix
* Store changes (#2011)
* Permissions phase 1 - Websocket updates (#2014)
* Store changes
* Websockets changes
* Permissions phase 1 - Permissions service (#2015)
* Store changes
* Websockets changes
* Permissions service
* Api and app updates (#2016)
* Store changes
* Websockets changes
* Permissions service
* New API and App changes
* Delete and Patch boards and blocks endpoints
* Used correct variable
* Webapp changes WIP
* Open correct team URL
* Fixed get block API
* Used React context for workspace users
* WIP
* On load navigation sorted out
* WIP
* Nav fix
* categories WS broadcast
* Used real search API
* Fixed unfurl ppreview
* set active team in sidebar
* IMplemented navigation on changing team in sidebar
* Misc fixes
* close rows inside transaction (#2045)
* update syntax for mysql (#2044)
* Upadted mutator for new patchBlock API
* Updated patchBlock API to use new URL
* Listeining to correct event in plugin mode
* Implemented WS messages for category operations:
* Fix duplicated build tags on Makefile
* Sidebar enhancements
* Add missing prefix to SQLite migration and fix flaky tests
* Sidebar boards menu enhancement
* Fix board page interactions (#2144)
* Fix patch board card properties error
* Fix board interactions
* Fix insert blocks interactions
* Fix app tests (#2104)
* Add json1 tag to vscode launch (#2157)
* Fix add, delete and update boards and add board patch generation (#2146)
* Fix update boards and add board patch generation
* Make add board and add template work, as well as deleting a board
* Update the state on board deletion
* Delete unused variable
* Fix bad parenthesis
* Fix board creation inside plugin, options were coming null due websocket message serialization
* update property type mutators to use boards API (#2168)
* Add permissions modal (#2196)
* Initial integration
* Permissions modal, websocket updates and API tests implemented
* Avoid updating/removing user if there is only one admin left
* Fix duplicates on board search
* Adds integration test
* Addressing PR review comments
Co-authored-by: Jesús Espino <jespinog@gmail.com>
* Merge
* I'm able to compile now
* Some fixes around tests execution
* Fixing migrations
* Fixing migrations order
* WIP
* Fixing some other compilation problems on tests
* Some typescript tests fixed
* Fixing javascript tests
* Fixing compilation
* Fixing some problems to create boards
* Load the templates on initial load
* Improvements over initial team templates import
* Adding new fields in the database
* Working on adding duplicate board api
* Removing RootID concept entirely
* Improving a bit the subscriptions
* Fixing store tests for notificationHints
* Fixing more tests
* fixing tests
* Fixing tests
* Fixing tests
* Fixing some small bugs related to templates
* Fixing registration link generation/regeneration
* Fixing cypress tests
* Adding store tests for duplicateBoard and duplicateBlock
* Addressing some TODO comments
* Making the export api simpler
* Add redirect component for old workspace urls
* Removing Dashboard code
* Delete only the built-in templates on update
* fixing tests
* Adding users autocompletion
* Updating snapshots
* Fixing bad merge
* fix panic when creating new card in notifysubscriptions (#2352)
* fix lint errors (#2353)
* fix lint errors
* fix panic when creating new card in notifysubscriptions (#2352)
* fix lint errors
* fix unit test
* Revert "fix unit test"
This reverts commit 0ad78aed65745521c0bb45790c9ea91b6c316c44.
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
* fix sql syntax error for SearchUsersByTeam (#2357)
* Fix mentions delivery (#2358)
* fix sql syntax error for SearchUsersByTeam
* fix mentions delivery
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* update api for octoClient calls, pass correct variables to mutator (#2359)
* Fixing tests after merge
* Fix sidebar context menu UI issue (#2399)
* Fix notification diff for text blocks (#2386)
* fix notification diff for text blocks; fix various linter errors.
* fix URLs to cards
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Permissions branch: Fix card links (#2391)
* fix notification diff for text blocks; fix various linter errors.
* fix URLs to cards
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixing sqlite tests
* Fixing server tests
* Update migrations to create global templates. (#2397)
* fix duplicate templates
* revert migrate.go
* update UI for empty templates
* implement updating built-in templates as global (teamId = 0)
* handle error if board not found
* update unit test
* fix more tests
* Update blocks_test.go
Fix merge issue
* fix migration sql error (#2414)
* Fixing frontend tests
* Set target team ID when using a global template (#2419)
* Fix some server tests
* Fixing onboarding creation
* Permissions branch: Fix unit tests and CI errors (part 1) (#2425)
* Fixing some small memory leaks (#2400)
* Fixing some small memory leaks
* fixing tests
* passing the tags to all test targets
* Increasing the timeout of the tests
* Fix some type checkings
* Permissions branch: Fixes all the linter errors (#2429)
* fix linter errors
* Reestructuring the router and splitting in more subcomponents (#2403)
* Reestructuring the router and splitting in more subcomponents
* Removing console.log calls
* Removing unneeded selector
* Addressing PR comment
* Fix redirection to one team when you load directly the boards home path
* Using properly the lastTeamID to redirect the user if needed
* don't allow last admin change/deleted (#2416)
* don't allow last admin change/deleted
* update for i18-extract
* fixed en.json
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
* Splitting BoardPage component into simpler/smaller components (#2435)
* Splitting BoardPage component into simpler/smaller components
* Removing unneeded import
* Replace go migrate with morph permissions (#2424)
* merge origin/replace-go-migrate-with-morph
* run go mod tidy on mattermost-plugin and increase test timeout
* fix merge issue temprorarily
* remove some debug changes
* fixing the linter
* Allow always team 0 (global) templates fetch (#2472)
* Fix problem with viewId 0 in the URL (#2473)
* Migrate from binddata to goembed (#2471)
* Adding join logic to the board switcher (#2434)
* Adding join logic to the board switcher
* Using already existing client function and removing the joinBoard one
* Adding support for autojoin based on url
* Fixing frontend tests
* fix webapp compile error, missing enableSharedBoards (#2501)
* Fixing duplication on postgres
* Adding back views to the sidebar (#2494)
* Fix #2507. Update Swagger comments (#2508)
* Fix the flash of the template selector on board/team switch (#2490)
* Fix the flash of the template selector on board/team switch
* More fixes specially around error handling
* Fixing the bot badge (#2487)
* simplifying a bit the team store sync between channels and focalboard (#2481)
* Fix menu tests (#2528)
* fix failing menu tests
* fix lint error
* Added keyboard shortcut for boards switcher (#2407)
* Added keyboard shortcut for boards switcher
* Fixed a type error
* Added some inline comments
* Fixed lint
* Fixed bug with scroll jumping when the card is opened: (#2477)
- avoid remounting of `ScrollingComponent` for each render of `Kanban` component
- property `autoFocus` set to false for `CalculationOptions` because it triggers `blur` even for the button in Jest tests and closes the menu
- snapshots for tests with `CalculationOptions` updated
* Adding the frontend support for permissions and applying it to a big part of the interface. (#2536)
* Initial work on permissions gates
* Applying permissions gates in more places
* Adding more checks to the interface
* Adding more permissions gates and keeping the store up to date
* fixing some tests
* Fixing some more tests
* Fixing another test
* Fixing all tests and adding some more
* Adding no-permission snapshot tests
* Addressing PR review comments
* Fixing invert behavior
* Permissions branch: No sqlstore calls after app shutdown (#2530)
* fix webapp compile error, missing enableSharedBoards
* refactor app init wip
* - ensure all block change notifications are finished before shutting down app
- fix unit tests for mysql (insert_at only has 1 second resolution!)
* adjust logging
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixed migrations to allow upgrading from previous version (#2535)
* Added mechanism to check if schema migration is needed
* WIP
* WIP
* WIP
* WIP
* Fixed migration
* Fixed for SQLite
* minor cleaniup
* Deleted old schema migration table after running migrations
* Removed a debug log
* Fixed a bug where the code always tried to delete a table which may or may not exist
* Show properly the user avatar in the ShareBoard component (#2542)
* Fixing the last CI problems from the permissions-branch (#2541)
* Fix history ordering
* Giving some times to avoid possible race conditions
* Empty
* Reverting accidental change in the config.json
* Optimizing table view (#2540)
* Optimizing table view
* Reducing the amount of rendering for tables
* Some other performance improvements
* Improve the activeView updates
* Some extra simplifications
* Another small improvement
* Fixing tests
* Fixing linter errors
* Reducing a bit the amount of dependency with big objects in the store
* Small simplification
* Removing Commenter role from the user role selector (#2561)
* Shareboard cleanup (#2550)
* Initial work on permissions gates
* Applying permissions gates in more places
* Adding more checks to the interface
* Adding more permissions gates and keeping the store up to date
* fixing some tests
* Fixing some more tests
* Fixing another test
* Fixing all tests and adding some more
* Adding no-permission snapshot tests
* Addressing PR review comments
* cleanup some shareboard settings
* remove unused property, fix for user items being displayed for non admin
* revert change, allow users to show
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* GetBoardMetadata API
* Integration tests. WIP
* getBoardHistory
* Working integration test
* Fix ordering, add store tests
* Fix: Update board_history update_at on patch
* sqltests
* Fix unmarshall delete boards_history
* testGetBlockMetadata with delete and undelete
* Handle board not found
* Fixing comments and cards with the new optimizations in the store (#2560)
* Fixing property creation (#2563)
* Cleanup
* Fix user selection in table view (#2565)
* Fixing focus new row in table view (#2567)
* Permissions branch: Fix sqlite table lock (CI) (#2568)
* fix sqlite table lock
* remove test db on teardown
* revert .gitignore
* fix goimport on migration code
* fix typo
* more linter fixes
* clean up tmp db for sqlstore tests
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixing snapshots
* Remove debug log
* Return metadata for deleted boards
* Migrating center panel to functional component (#2562)
* Migrating center panel to functional component
* Fixing some tests
* Fixing another test
* Fixing linter errors
* Fixing types errors
* Fixing linter error
* Fixing cypress tests
* Fixing the last cypress test
* Simpliying a bit the code
* Making property insertion more robust
* Updating checkbox test
* License check
* Cleanup and update Swagger docs
* Merge from main
* Fix bad merge
* Fix Linux-app build break
* do mod tidy
* Fix server lint
* Require credentials (not only read token)
* Add missing defer CloseRows
* do mod tidy
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Harshil Sharma <18575143+harshilsharma63@users.noreply.github.com>
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Co-authored-by: kamre <eremchenko@gmail.com>
2022-03-29 23:47:49 +02:00
|
|
|
BoardMetadata:
|
|
|
|
description: BoardMetadata contains metadata for a Board
|
|
|
|
properties:
|
|
|
|
boardId:
|
|
|
|
description: The ID for the board
|
|
|
|
type: string
|
|
|
|
x-go-name: BoardID
|
|
|
|
createdBy:
|
|
|
|
description: The ID of the user that created the board
|
|
|
|
type: string
|
|
|
|
x-go-name: CreatedBy
|
|
|
|
descendantFirstUpdateAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: The earliest time a descendant of this board was added, modified, or deleted
|
GetBoardMetadata API (#2569)
* wip
* Added data migration for populating categories
* wip
* Added data migration for populating categories
* Store WIP
* migration WIP
* category CRUD APIs complete
* category block API WIP
* block category update API done
* Fetcehed data into store
* Started displayting sidebar data
* sidebar WIP
* Dashboard - basic changes
* Sidebar dashboard btn and board switcher UI only
* Sidebar dashboard btn and board switcher UI only
* create category dialog WIP
* Create category webapp side done
* Integrated move card to other category
* board to block
* Disabled dashboard route for now as we'll implement it in phase 2
* WIP
* Added logic to open last board/view on per team level
* Add workspace to teams and boards migrations (#1986)
* Add workspace to teams and boards migrations
* Update json annotations on board models
* boards search dialog WIP
* Seach dialog WIP
* Implemented opening boiard from search results
* Boards switcher styliung
* Handled update category WS event
* Template support
* personal server support and styling fixes
* test fix WIP
* Fixed a bug causing boards to not be moved correctly beteen categories
* Fixed webapp tests
* fix
* Store changes (#2011)
* Permissions phase 1 - Websocket updates (#2014)
* Store changes
* Websockets changes
* Permissions phase 1 - Permissions service (#2015)
* Store changes
* Websockets changes
* Permissions service
* Api and app updates (#2016)
* Store changes
* Websockets changes
* Permissions service
* New API and App changes
* Delete and Patch boards and blocks endpoints
* Used correct variable
* Webapp changes WIP
* Open correct team URL
* Fixed get block API
* Used React context for workspace users
* WIP
* On load navigation sorted out
* WIP
* Nav fix
* categories WS broadcast
* Used real search API
* Fixed unfurl ppreview
* set active team in sidebar
* IMplemented navigation on changing team in sidebar
* Misc fixes
* close rows inside transaction (#2045)
* update syntax for mysql (#2044)
* Upadted mutator for new patchBlock API
* Updated patchBlock API to use new URL
* Listeining to correct event in plugin mode
* Implemented WS messages for category operations:
* Fix duplicated build tags on Makefile
* Sidebar enhancements
* Add missing prefix to SQLite migration and fix flaky tests
* Sidebar boards menu enhancement
* Fix board page interactions (#2144)
* Fix patch board card properties error
* Fix board interactions
* Fix insert blocks interactions
* Fix app tests (#2104)
* Add json1 tag to vscode launch (#2157)
* Fix add, delete and update boards and add board patch generation (#2146)
* Fix update boards and add board patch generation
* Make add board and add template work, as well as deleting a board
* Update the state on board deletion
* Delete unused variable
* Fix bad parenthesis
* Fix board creation inside plugin, options were coming null due websocket message serialization
* update property type mutators to use boards API (#2168)
* Add permissions modal (#2196)
* Initial integration
* Permissions modal, websocket updates and API tests implemented
* Avoid updating/removing user if there is only one admin left
* Fix duplicates on board search
* Adds integration test
* Addressing PR review comments
Co-authored-by: Jesús Espino <jespinog@gmail.com>
* Merge
* I'm able to compile now
* Some fixes around tests execution
* Fixing migrations
* Fixing migrations order
* WIP
* Fixing some other compilation problems on tests
* Some typescript tests fixed
* Fixing javascript tests
* Fixing compilation
* Fixing some problems to create boards
* Load the templates on initial load
* Improvements over initial team templates import
* Adding new fields in the database
* Working on adding duplicate board api
* Removing RootID concept entirely
* Improving a bit the subscriptions
* Fixing store tests for notificationHints
* Fixing more tests
* fixing tests
* Fixing tests
* Fixing tests
* Fixing some small bugs related to templates
* Fixing registration link generation/regeneration
* Fixing cypress tests
* Adding store tests for duplicateBoard and duplicateBlock
* Addressing some TODO comments
* Making the export api simpler
* Add redirect component for old workspace urls
* Removing Dashboard code
* Delete only the built-in templates on update
* fixing tests
* Adding users autocompletion
* Updating snapshots
* Fixing bad merge
* fix panic when creating new card in notifysubscriptions (#2352)
* fix lint errors (#2353)
* fix lint errors
* fix panic when creating new card in notifysubscriptions (#2352)
* fix lint errors
* fix unit test
* Revert "fix unit test"
This reverts commit 0ad78aed65745521c0bb45790c9ea91b6c316c44.
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
* fix sql syntax error for SearchUsersByTeam (#2357)
* Fix mentions delivery (#2358)
* fix sql syntax error for SearchUsersByTeam
* fix mentions delivery
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* update api for octoClient calls, pass correct variables to mutator (#2359)
* Fixing tests after merge
* Fix sidebar context menu UI issue (#2399)
* Fix notification diff for text blocks (#2386)
* fix notification diff for text blocks; fix various linter errors.
* fix URLs to cards
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Permissions branch: Fix card links (#2391)
* fix notification diff for text blocks; fix various linter errors.
* fix URLs to cards
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixing sqlite tests
* Fixing server tests
* Update migrations to create global templates. (#2397)
* fix duplicate templates
* revert migrate.go
* update UI for empty templates
* implement updating built-in templates as global (teamId = 0)
* handle error if board not found
* update unit test
* fix more tests
* Update blocks_test.go
Fix merge issue
* fix migration sql error (#2414)
* Fixing frontend tests
* Set target team ID when using a global template (#2419)
* Fix some server tests
* Fixing onboarding creation
* Permissions branch: Fix unit tests and CI errors (part 1) (#2425)
* Fixing some small memory leaks (#2400)
* Fixing some small memory leaks
* fixing tests
* passing the tags to all test targets
* Increasing the timeout of the tests
* Fix some type checkings
* Permissions branch: Fixes all the linter errors (#2429)
* fix linter errors
* Reestructuring the router and splitting in more subcomponents (#2403)
* Reestructuring the router and splitting in more subcomponents
* Removing console.log calls
* Removing unneeded selector
* Addressing PR comment
* Fix redirection to one team when you load directly the boards home path
* Using properly the lastTeamID to redirect the user if needed
* don't allow last admin change/deleted (#2416)
* don't allow last admin change/deleted
* update for i18-extract
* fixed en.json
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
* Splitting BoardPage component into simpler/smaller components (#2435)
* Splitting BoardPage component into simpler/smaller components
* Removing unneeded import
* Replace go migrate with morph permissions (#2424)
* merge origin/replace-go-migrate-with-morph
* run go mod tidy on mattermost-plugin and increase test timeout
* fix merge issue temprorarily
* remove some debug changes
* fixing the linter
* Allow always team 0 (global) templates fetch (#2472)
* Fix problem with viewId 0 in the URL (#2473)
* Migrate from binddata to goembed (#2471)
* Adding join logic to the board switcher (#2434)
* Adding join logic to the board switcher
* Using already existing client function and removing the joinBoard one
* Adding support for autojoin based on url
* Fixing frontend tests
* fix webapp compile error, missing enableSharedBoards (#2501)
* Fixing duplication on postgres
* Adding back views to the sidebar (#2494)
* Fix #2507. Update Swagger comments (#2508)
* Fix the flash of the template selector on board/team switch (#2490)
* Fix the flash of the template selector on board/team switch
* More fixes specially around error handling
* Fixing the bot badge (#2487)
* simplifying a bit the team store sync between channels and focalboard (#2481)
* Fix menu tests (#2528)
* fix failing menu tests
* fix lint error
* Added keyboard shortcut for boards switcher (#2407)
* Added keyboard shortcut for boards switcher
* Fixed a type error
* Added some inline comments
* Fixed lint
* Fixed bug with scroll jumping when the card is opened: (#2477)
- avoid remounting of `ScrollingComponent` for each render of `Kanban` component
- property `autoFocus` set to false for `CalculationOptions` because it triggers `blur` even for the button in Jest tests and closes the menu
- snapshots for tests with `CalculationOptions` updated
* Adding the frontend support for permissions and applying it to a big part of the interface. (#2536)
* Initial work on permissions gates
* Applying permissions gates in more places
* Adding more checks to the interface
* Adding more permissions gates and keeping the store up to date
* fixing some tests
* Fixing some more tests
* Fixing another test
* Fixing all tests and adding some more
* Adding no-permission snapshot tests
* Addressing PR review comments
* Fixing invert behavior
* Permissions branch: No sqlstore calls after app shutdown (#2530)
* fix webapp compile error, missing enableSharedBoards
* refactor app init wip
* - ensure all block change notifications are finished before shutting down app
- fix unit tests for mysql (insert_at only has 1 second resolution!)
* adjust logging
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixed migrations to allow upgrading from previous version (#2535)
* Added mechanism to check if schema migration is needed
* WIP
* WIP
* WIP
* WIP
* Fixed migration
* Fixed for SQLite
* minor cleaniup
* Deleted old schema migration table after running migrations
* Removed a debug log
* Fixed a bug where the code always tried to delete a table which may or may not exist
* Show properly the user avatar in the ShareBoard component (#2542)
* Fixing the last CI problems from the permissions-branch (#2541)
* Fix history ordering
* Giving some times to avoid possible race conditions
* Empty
* Reverting accidental change in the config.json
* Optimizing table view (#2540)
* Optimizing table view
* Reducing the amount of rendering for tables
* Some other performance improvements
* Improve the activeView updates
* Some extra simplifications
* Another small improvement
* Fixing tests
* Fixing linter errors
* Reducing a bit the amount of dependency with big objects in the store
* Small simplification
* Removing Commenter role from the user role selector (#2561)
* Shareboard cleanup (#2550)
* Initial work on permissions gates
* Applying permissions gates in more places
* Adding more checks to the interface
* Adding more permissions gates and keeping the store up to date
* fixing some tests
* Fixing some more tests
* Fixing another test
* Fixing all tests and adding some more
* Adding no-permission snapshot tests
* Addressing PR review comments
* cleanup some shareboard settings
* remove unused property, fix for user items being displayed for non admin
* revert change, allow users to show
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* GetBoardMetadata API
* Integration tests. WIP
* getBoardHistory
* Working integration test
* Fix ordering, add store tests
* Fix: Update board_history update_at on patch
* sqltests
* Fix unmarshall delete boards_history
* testGetBlockMetadata with delete and undelete
* Handle board not found
* Fixing comments and cards with the new optimizations in the store (#2560)
* Fixing property creation (#2563)
* Cleanup
* Fix user selection in table view (#2565)
* Fixing focus new row in table view (#2567)
* Permissions branch: Fix sqlite table lock (CI) (#2568)
* fix sqlite table lock
* remove test db on teardown
* revert .gitignore
* fix goimport on migration code
* fix typo
* more linter fixes
* clean up tmp db for sqlstore tests
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixing snapshots
* Remove debug log
* Return metadata for deleted boards
* Migrating center panel to functional component (#2562)
* Migrating center panel to functional component
* Fixing some tests
* Fixing another test
* Fixing linter errors
* Fixing types errors
* Fixing linter error
* Fixing cypress tests
* Fixing the last cypress test
* Simpliying a bit the code
* Making property insertion more robust
* Updating checkbox test
* License check
* Cleanup and update Swagger docs
* Merge from main
* Fix bad merge
* Fix Linux-app build break
* do mod tidy
* Fix server lint
* Require credentials (not only read token)
* Add missing defer CloseRows
* do mod tidy
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Harshil Sharma <18575143+harshilsharma63@users.noreply.github.com>
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Co-authored-by: kamre <eremchenko@gmail.com>
2022-03-29 23:47:49 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: DescendantFirstUpdateAt
|
|
|
|
descendantLastUpdateAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: The most recent time a descendant of this board was added, modified, or deleted
|
GetBoardMetadata API (#2569)
* wip
* Added data migration for populating categories
* wip
* Added data migration for populating categories
* Store WIP
* migration WIP
* category CRUD APIs complete
* category block API WIP
* block category update API done
* Fetcehed data into store
* Started displayting sidebar data
* sidebar WIP
* Dashboard - basic changes
* Sidebar dashboard btn and board switcher UI only
* Sidebar dashboard btn and board switcher UI only
* create category dialog WIP
* Create category webapp side done
* Integrated move card to other category
* board to block
* Disabled dashboard route for now as we'll implement it in phase 2
* WIP
* Added logic to open last board/view on per team level
* Add workspace to teams and boards migrations (#1986)
* Add workspace to teams and boards migrations
* Update json annotations on board models
* boards search dialog WIP
* Seach dialog WIP
* Implemented opening boiard from search results
* Boards switcher styliung
* Handled update category WS event
* Template support
* personal server support and styling fixes
* test fix WIP
* Fixed a bug causing boards to not be moved correctly beteen categories
* Fixed webapp tests
* fix
* Store changes (#2011)
* Permissions phase 1 - Websocket updates (#2014)
* Store changes
* Websockets changes
* Permissions phase 1 - Permissions service (#2015)
* Store changes
* Websockets changes
* Permissions service
* Api and app updates (#2016)
* Store changes
* Websockets changes
* Permissions service
* New API and App changes
* Delete and Patch boards and blocks endpoints
* Used correct variable
* Webapp changes WIP
* Open correct team URL
* Fixed get block API
* Used React context for workspace users
* WIP
* On load navigation sorted out
* WIP
* Nav fix
* categories WS broadcast
* Used real search API
* Fixed unfurl ppreview
* set active team in sidebar
* IMplemented navigation on changing team in sidebar
* Misc fixes
* close rows inside transaction (#2045)
* update syntax for mysql (#2044)
* Upadted mutator for new patchBlock API
* Updated patchBlock API to use new URL
* Listeining to correct event in plugin mode
* Implemented WS messages for category operations:
* Fix duplicated build tags on Makefile
* Sidebar enhancements
* Add missing prefix to SQLite migration and fix flaky tests
* Sidebar boards menu enhancement
* Fix board page interactions (#2144)
* Fix patch board card properties error
* Fix board interactions
* Fix insert blocks interactions
* Fix app tests (#2104)
* Add json1 tag to vscode launch (#2157)
* Fix add, delete and update boards and add board patch generation (#2146)
* Fix update boards and add board patch generation
* Make add board and add template work, as well as deleting a board
* Update the state on board deletion
* Delete unused variable
* Fix bad parenthesis
* Fix board creation inside plugin, options were coming null due websocket message serialization
* update property type mutators to use boards API (#2168)
* Add permissions modal (#2196)
* Initial integration
* Permissions modal, websocket updates and API tests implemented
* Avoid updating/removing user if there is only one admin left
* Fix duplicates on board search
* Adds integration test
* Addressing PR review comments
Co-authored-by: Jesús Espino <jespinog@gmail.com>
* Merge
* I'm able to compile now
* Some fixes around tests execution
* Fixing migrations
* Fixing migrations order
* WIP
* Fixing some other compilation problems on tests
* Some typescript tests fixed
* Fixing javascript tests
* Fixing compilation
* Fixing some problems to create boards
* Load the templates on initial load
* Improvements over initial team templates import
* Adding new fields in the database
* Working on adding duplicate board api
* Removing RootID concept entirely
* Improving a bit the subscriptions
* Fixing store tests for notificationHints
* Fixing more tests
* fixing tests
* Fixing tests
* Fixing tests
* Fixing some small bugs related to templates
* Fixing registration link generation/regeneration
* Fixing cypress tests
* Adding store tests for duplicateBoard and duplicateBlock
* Addressing some TODO comments
* Making the export api simpler
* Add redirect component for old workspace urls
* Removing Dashboard code
* Delete only the built-in templates on update
* fixing tests
* Adding users autocompletion
* Updating snapshots
* Fixing bad merge
* fix panic when creating new card in notifysubscriptions (#2352)
* fix lint errors (#2353)
* fix lint errors
* fix panic when creating new card in notifysubscriptions (#2352)
* fix lint errors
* fix unit test
* Revert "fix unit test"
This reverts commit 0ad78aed65745521c0bb45790c9ea91b6c316c44.
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
* fix sql syntax error for SearchUsersByTeam (#2357)
* Fix mentions delivery (#2358)
* fix sql syntax error for SearchUsersByTeam
* fix mentions delivery
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* update api for octoClient calls, pass correct variables to mutator (#2359)
* Fixing tests after merge
* Fix sidebar context menu UI issue (#2399)
* Fix notification diff for text blocks (#2386)
* fix notification diff for text blocks; fix various linter errors.
* fix URLs to cards
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Permissions branch: Fix card links (#2391)
* fix notification diff for text blocks; fix various linter errors.
* fix URLs to cards
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixing sqlite tests
* Fixing server tests
* Update migrations to create global templates. (#2397)
* fix duplicate templates
* revert migrate.go
* update UI for empty templates
* implement updating built-in templates as global (teamId = 0)
* handle error if board not found
* update unit test
* fix more tests
* Update blocks_test.go
Fix merge issue
* fix migration sql error (#2414)
* Fixing frontend tests
* Set target team ID when using a global template (#2419)
* Fix some server tests
* Fixing onboarding creation
* Permissions branch: Fix unit tests and CI errors (part 1) (#2425)
* Fixing some small memory leaks (#2400)
* Fixing some small memory leaks
* fixing tests
* passing the tags to all test targets
* Increasing the timeout of the tests
* Fix some type checkings
* Permissions branch: Fixes all the linter errors (#2429)
* fix linter errors
* Reestructuring the router and splitting in more subcomponents (#2403)
* Reestructuring the router and splitting in more subcomponents
* Removing console.log calls
* Removing unneeded selector
* Addressing PR comment
* Fix redirection to one team when you load directly the boards home path
* Using properly the lastTeamID to redirect the user if needed
* don't allow last admin change/deleted (#2416)
* don't allow last admin change/deleted
* update for i18-extract
* fixed en.json
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
* Splitting BoardPage component into simpler/smaller components (#2435)
* Splitting BoardPage component into simpler/smaller components
* Removing unneeded import
* Replace go migrate with morph permissions (#2424)
* merge origin/replace-go-migrate-with-morph
* run go mod tidy on mattermost-plugin and increase test timeout
* fix merge issue temprorarily
* remove some debug changes
* fixing the linter
* Allow always team 0 (global) templates fetch (#2472)
* Fix problem with viewId 0 in the URL (#2473)
* Migrate from binddata to goembed (#2471)
* Adding join logic to the board switcher (#2434)
* Adding join logic to the board switcher
* Using already existing client function and removing the joinBoard one
* Adding support for autojoin based on url
* Fixing frontend tests
* fix webapp compile error, missing enableSharedBoards (#2501)
* Fixing duplication on postgres
* Adding back views to the sidebar (#2494)
* Fix #2507. Update Swagger comments (#2508)
* Fix the flash of the template selector on board/team switch (#2490)
* Fix the flash of the template selector on board/team switch
* More fixes specially around error handling
* Fixing the bot badge (#2487)
* simplifying a bit the team store sync between channels and focalboard (#2481)
* Fix menu tests (#2528)
* fix failing menu tests
* fix lint error
* Added keyboard shortcut for boards switcher (#2407)
* Added keyboard shortcut for boards switcher
* Fixed a type error
* Added some inline comments
* Fixed lint
* Fixed bug with scroll jumping when the card is opened: (#2477)
- avoid remounting of `ScrollingComponent` for each render of `Kanban` component
- property `autoFocus` set to false for `CalculationOptions` because it triggers `blur` even for the button in Jest tests and closes the menu
- snapshots for tests with `CalculationOptions` updated
* Adding the frontend support for permissions and applying it to a big part of the interface. (#2536)
* Initial work on permissions gates
* Applying permissions gates in more places
* Adding more checks to the interface
* Adding more permissions gates and keeping the store up to date
* fixing some tests
* Fixing some more tests
* Fixing another test
* Fixing all tests and adding some more
* Adding no-permission snapshot tests
* Addressing PR review comments
* Fixing invert behavior
* Permissions branch: No sqlstore calls after app shutdown (#2530)
* fix webapp compile error, missing enableSharedBoards
* refactor app init wip
* - ensure all block change notifications are finished before shutting down app
- fix unit tests for mysql (insert_at only has 1 second resolution!)
* adjust logging
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixed migrations to allow upgrading from previous version (#2535)
* Added mechanism to check if schema migration is needed
* WIP
* WIP
* WIP
* WIP
* Fixed migration
* Fixed for SQLite
* minor cleaniup
* Deleted old schema migration table after running migrations
* Removed a debug log
* Fixed a bug where the code always tried to delete a table which may or may not exist
* Show properly the user avatar in the ShareBoard component (#2542)
* Fixing the last CI problems from the permissions-branch (#2541)
* Fix history ordering
* Giving some times to avoid possible race conditions
* Empty
* Reverting accidental change in the config.json
* Optimizing table view (#2540)
* Optimizing table view
* Reducing the amount of rendering for tables
* Some other performance improvements
* Improve the activeView updates
* Some extra simplifications
* Another small improvement
* Fixing tests
* Fixing linter errors
* Reducing a bit the amount of dependency with big objects in the store
* Small simplification
* Removing Commenter role from the user role selector (#2561)
* Shareboard cleanup (#2550)
* Initial work on permissions gates
* Applying permissions gates in more places
* Adding more checks to the interface
* Adding more permissions gates and keeping the store up to date
* fixing some tests
* Fixing some more tests
* Fixing another test
* Fixing all tests and adding some more
* Adding no-permission snapshot tests
* Addressing PR review comments
* cleanup some shareboard settings
* remove unused property, fix for user items being displayed for non admin
* revert change, allow users to show
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* GetBoardMetadata API
* Integration tests. WIP
* getBoardHistory
* Working integration test
* Fix ordering, add store tests
* Fix: Update board_history update_at on patch
* sqltests
* Fix unmarshall delete boards_history
* testGetBlockMetadata with delete and undelete
* Handle board not found
* Fixing comments and cards with the new optimizations in the store (#2560)
* Fixing property creation (#2563)
* Cleanup
* Fix user selection in table view (#2565)
* Fixing focus new row in table view (#2567)
* Permissions branch: Fix sqlite table lock (CI) (#2568)
* fix sqlite table lock
* remove test db on teardown
* revert .gitignore
* fix goimport on migration code
* fix typo
* more linter fixes
* clean up tmp db for sqlstore tests
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixing snapshots
* Remove debug log
* Return metadata for deleted boards
* Migrating center panel to functional component (#2562)
* Migrating center panel to functional component
* Fixing some tests
* Fixing another test
* Fixing linter errors
* Fixing types errors
* Fixing linter error
* Fixing cypress tests
* Fixing the last cypress test
* Simpliying a bit the code
* Making property insertion more robust
* Updating checkbox test
* License check
* Cleanup and update Swagger docs
* Merge from main
* Fix bad merge
* Fix Linux-app build break
* do mod tidy
* Fix server lint
* Require credentials (not only read token)
* Add missing defer CloseRows
* do mod tidy
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Harshil Sharma <18575143+harshilsharma63@users.noreply.github.com>
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Co-authored-by: kamre <eremchenko@gmail.com>
2022-03-29 23:47:49 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: DescendantLastUpdateAt
|
|
|
|
lastModifiedBy:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: The ID of the user that last modified the most recently modified descendant
|
GetBoardMetadata API (#2569)
* wip
* Added data migration for populating categories
* wip
* Added data migration for populating categories
* Store WIP
* migration WIP
* category CRUD APIs complete
* category block API WIP
* block category update API done
* Fetcehed data into store
* Started displayting sidebar data
* sidebar WIP
* Dashboard - basic changes
* Sidebar dashboard btn and board switcher UI only
* Sidebar dashboard btn and board switcher UI only
* create category dialog WIP
* Create category webapp side done
* Integrated move card to other category
* board to block
* Disabled dashboard route for now as we'll implement it in phase 2
* WIP
* Added logic to open last board/view on per team level
* Add workspace to teams and boards migrations (#1986)
* Add workspace to teams and boards migrations
* Update json annotations on board models
* boards search dialog WIP
* Seach dialog WIP
* Implemented opening boiard from search results
* Boards switcher styliung
* Handled update category WS event
* Template support
* personal server support and styling fixes
* test fix WIP
* Fixed a bug causing boards to not be moved correctly beteen categories
* Fixed webapp tests
* fix
* Store changes (#2011)
* Permissions phase 1 - Websocket updates (#2014)
* Store changes
* Websockets changes
* Permissions phase 1 - Permissions service (#2015)
* Store changes
* Websockets changes
* Permissions service
* Api and app updates (#2016)
* Store changes
* Websockets changes
* Permissions service
* New API and App changes
* Delete and Patch boards and blocks endpoints
* Used correct variable
* Webapp changes WIP
* Open correct team URL
* Fixed get block API
* Used React context for workspace users
* WIP
* On load navigation sorted out
* WIP
* Nav fix
* categories WS broadcast
* Used real search API
* Fixed unfurl ppreview
* set active team in sidebar
* IMplemented navigation on changing team in sidebar
* Misc fixes
* close rows inside transaction (#2045)
* update syntax for mysql (#2044)
* Upadted mutator for new patchBlock API
* Updated patchBlock API to use new URL
* Listeining to correct event in plugin mode
* Implemented WS messages for category operations:
* Fix duplicated build tags on Makefile
* Sidebar enhancements
* Add missing prefix to SQLite migration and fix flaky tests
* Sidebar boards menu enhancement
* Fix board page interactions (#2144)
* Fix patch board card properties error
* Fix board interactions
* Fix insert blocks interactions
* Fix app tests (#2104)
* Add json1 tag to vscode launch (#2157)
* Fix add, delete and update boards and add board patch generation (#2146)
* Fix update boards and add board patch generation
* Make add board and add template work, as well as deleting a board
* Update the state on board deletion
* Delete unused variable
* Fix bad parenthesis
* Fix board creation inside plugin, options were coming null due websocket message serialization
* update property type mutators to use boards API (#2168)
* Add permissions modal (#2196)
* Initial integration
* Permissions modal, websocket updates and API tests implemented
* Avoid updating/removing user if there is only one admin left
* Fix duplicates on board search
* Adds integration test
* Addressing PR review comments
Co-authored-by: Jesús Espino <jespinog@gmail.com>
* Merge
* I'm able to compile now
* Some fixes around tests execution
* Fixing migrations
* Fixing migrations order
* WIP
* Fixing some other compilation problems on tests
* Some typescript tests fixed
* Fixing javascript tests
* Fixing compilation
* Fixing some problems to create boards
* Load the templates on initial load
* Improvements over initial team templates import
* Adding new fields in the database
* Working on adding duplicate board api
* Removing RootID concept entirely
* Improving a bit the subscriptions
* Fixing store tests for notificationHints
* Fixing more tests
* fixing tests
* Fixing tests
* Fixing tests
* Fixing some small bugs related to templates
* Fixing registration link generation/regeneration
* Fixing cypress tests
* Adding store tests for duplicateBoard and duplicateBlock
* Addressing some TODO comments
* Making the export api simpler
* Add redirect component for old workspace urls
* Removing Dashboard code
* Delete only the built-in templates on update
* fixing tests
* Adding users autocompletion
* Updating snapshots
* Fixing bad merge
* fix panic when creating new card in notifysubscriptions (#2352)
* fix lint errors (#2353)
* fix lint errors
* fix panic when creating new card in notifysubscriptions (#2352)
* fix lint errors
* fix unit test
* Revert "fix unit test"
This reverts commit 0ad78aed65745521c0bb45790c9ea91b6c316c44.
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
* fix sql syntax error for SearchUsersByTeam (#2357)
* Fix mentions delivery (#2358)
* fix sql syntax error for SearchUsersByTeam
* fix mentions delivery
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* update api for octoClient calls, pass correct variables to mutator (#2359)
* Fixing tests after merge
* Fix sidebar context menu UI issue (#2399)
* Fix notification diff for text blocks (#2386)
* fix notification diff for text blocks; fix various linter errors.
* fix URLs to cards
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Permissions branch: Fix card links (#2391)
* fix notification diff for text blocks; fix various linter errors.
* fix URLs to cards
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixing sqlite tests
* Fixing server tests
* Update migrations to create global templates. (#2397)
* fix duplicate templates
* revert migrate.go
* update UI for empty templates
* implement updating built-in templates as global (teamId = 0)
* handle error if board not found
* update unit test
* fix more tests
* Update blocks_test.go
Fix merge issue
* fix migration sql error (#2414)
* Fixing frontend tests
* Set target team ID when using a global template (#2419)
* Fix some server tests
* Fixing onboarding creation
* Permissions branch: Fix unit tests and CI errors (part 1) (#2425)
* Fixing some small memory leaks (#2400)
* Fixing some small memory leaks
* fixing tests
* passing the tags to all test targets
* Increasing the timeout of the tests
* Fix some type checkings
* Permissions branch: Fixes all the linter errors (#2429)
* fix linter errors
* Reestructuring the router and splitting in more subcomponents (#2403)
* Reestructuring the router and splitting in more subcomponents
* Removing console.log calls
* Removing unneeded selector
* Addressing PR comment
* Fix redirection to one team when you load directly the boards home path
* Using properly the lastTeamID to redirect the user if needed
* don't allow last admin change/deleted (#2416)
* don't allow last admin change/deleted
* update for i18-extract
* fixed en.json
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
* Splitting BoardPage component into simpler/smaller components (#2435)
* Splitting BoardPage component into simpler/smaller components
* Removing unneeded import
* Replace go migrate with morph permissions (#2424)
* merge origin/replace-go-migrate-with-morph
* run go mod tidy on mattermost-plugin and increase test timeout
* fix merge issue temprorarily
* remove some debug changes
* fixing the linter
* Allow always team 0 (global) templates fetch (#2472)
* Fix problem with viewId 0 in the URL (#2473)
* Migrate from binddata to goembed (#2471)
* Adding join logic to the board switcher (#2434)
* Adding join logic to the board switcher
* Using already existing client function and removing the joinBoard one
* Adding support for autojoin based on url
* Fixing frontend tests
* fix webapp compile error, missing enableSharedBoards (#2501)
* Fixing duplication on postgres
* Adding back views to the sidebar (#2494)
* Fix #2507. Update Swagger comments (#2508)
* Fix the flash of the template selector on board/team switch (#2490)
* Fix the flash of the template selector on board/team switch
* More fixes specially around error handling
* Fixing the bot badge (#2487)
* simplifying a bit the team store sync between channels and focalboard (#2481)
* Fix menu tests (#2528)
* fix failing menu tests
* fix lint error
* Added keyboard shortcut for boards switcher (#2407)
* Added keyboard shortcut for boards switcher
* Fixed a type error
* Added some inline comments
* Fixed lint
* Fixed bug with scroll jumping when the card is opened: (#2477)
- avoid remounting of `ScrollingComponent` for each render of `Kanban` component
- property `autoFocus` set to false for `CalculationOptions` because it triggers `blur` even for the button in Jest tests and closes the menu
- snapshots for tests with `CalculationOptions` updated
* Adding the frontend support for permissions and applying it to a big part of the interface. (#2536)
* Initial work on permissions gates
* Applying permissions gates in more places
* Adding more checks to the interface
* Adding more permissions gates and keeping the store up to date
* fixing some tests
* Fixing some more tests
* Fixing another test
* Fixing all tests and adding some more
* Adding no-permission snapshot tests
* Addressing PR review comments
* Fixing invert behavior
* Permissions branch: No sqlstore calls after app shutdown (#2530)
* fix webapp compile error, missing enableSharedBoards
* refactor app init wip
* - ensure all block change notifications are finished before shutting down app
- fix unit tests for mysql (insert_at only has 1 second resolution!)
* adjust logging
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixed migrations to allow upgrading from previous version (#2535)
* Added mechanism to check if schema migration is needed
* WIP
* WIP
* WIP
* WIP
* Fixed migration
* Fixed for SQLite
* minor cleaniup
* Deleted old schema migration table after running migrations
* Removed a debug log
* Fixed a bug where the code always tried to delete a table which may or may not exist
* Show properly the user avatar in the ShareBoard component (#2542)
* Fixing the last CI problems from the permissions-branch (#2541)
* Fix history ordering
* Giving some times to avoid possible race conditions
* Empty
* Reverting accidental change in the config.json
* Optimizing table view (#2540)
* Optimizing table view
* Reducing the amount of rendering for tables
* Some other performance improvements
* Improve the activeView updates
* Some extra simplifications
* Another small improvement
* Fixing tests
* Fixing linter errors
* Reducing a bit the amount of dependency with big objects in the store
* Small simplification
* Removing Commenter role from the user role selector (#2561)
* Shareboard cleanup (#2550)
* Initial work on permissions gates
* Applying permissions gates in more places
* Adding more checks to the interface
* Adding more permissions gates and keeping the store up to date
* fixing some tests
* Fixing some more tests
* Fixing another test
* Fixing all tests and adding some more
* Adding no-permission snapshot tests
* Addressing PR review comments
* cleanup some shareboard settings
* remove unused property, fix for user items being displayed for non admin
* revert change, allow users to show
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* GetBoardMetadata API
* Integration tests. WIP
* getBoardHistory
* Working integration test
* Fix ordering, add store tests
* Fix: Update board_history update_at on patch
* sqltests
* Fix unmarshall delete boards_history
* testGetBlockMetadata with delete and undelete
* Handle board not found
* Fixing comments and cards with the new optimizations in the store (#2560)
* Fixing property creation (#2563)
* Cleanup
* Fix user selection in table view (#2565)
* Fixing focus new row in table view (#2567)
* Permissions branch: Fix sqlite table lock (CI) (#2568)
* fix sqlite table lock
* remove test db on teardown
* revert .gitignore
* fix goimport on migration code
* fix typo
* more linter fixes
* clean up tmp db for sqlstore tests
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixing snapshots
* Remove debug log
* Return metadata for deleted boards
* Migrating center panel to functional component (#2562)
* Migrating center panel to functional component
* Fixing some tests
* Fixing another test
* Fixing linter errors
* Fixing types errors
* Fixing linter error
* Fixing cypress tests
* Fixing the last cypress test
* Simpliying a bit the code
* Making property insertion more robust
* Updating checkbox test
* License check
* Cleanup and update Swagger docs
* Merge from main
* Fix bad merge
* Fix Linux-app build break
* do mod tidy
* Fix server lint
* Require credentials (not only read token)
* Add missing defer CloseRows
* do mod tidy
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Harshil Sharma <18575143+harshilsharma63@users.noreply.github.com>
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Co-authored-by: kamre <eremchenko@gmail.com>
2022-03-29 23:47:49 +02:00
|
|
|
type: string
|
|
|
|
x-go-name: LastModifiedBy
|
|
|
|
required:
|
|
|
|
- boardId
|
|
|
|
- descendantLastUpdateAt
|
|
|
|
- descendantFirstUpdateAt
|
|
|
|
- createdBy
|
|
|
|
- lastModifiedBy
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2022-03-22 16:24:34 +02:00
|
|
|
BoardPatch:
|
|
|
|
description: BoardPatch is a patch for modify boards
|
|
|
|
properties:
|
|
|
|
deletedCardProperties:
|
|
|
|
description: The board removed card properties
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
x-go-name: DeletedCardProperties
|
|
|
|
deletedProperties:
|
|
|
|
description: The board removed properties
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
x-go-name: DeletedProperties
|
|
|
|
description:
|
|
|
|
description: The description of the board
|
|
|
|
type: string
|
|
|
|
x-go-name: Description
|
|
|
|
icon:
|
|
|
|
description: The icon of the board
|
|
|
|
type: string
|
|
|
|
x-go-name: Icon
|
|
|
|
showDescription:
|
|
|
|
description: Indicates if the board shows the description on the interface
|
|
|
|
type: boolean
|
|
|
|
x-go-name: ShowDescription
|
|
|
|
title:
|
|
|
|
description: The title of the board
|
|
|
|
type: string
|
|
|
|
x-go-name: Title
|
|
|
|
type:
|
|
|
|
$ref: '#/definitions/BoardType'
|
|
|
|
updatedCardProperties:
|
|
|
|
description: The board updated card properties
|
|
|
|
items:
|
|
|
|
additionalProperties:
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
type: array
|
|
|
|
x-go-name: UpdatedCardProperties
|
|
|
|
updatedProperties:
|
|
|
|
additionalProperties:
|
|
|
|
type: object
|
|
|
|
description: The board updated properties
|
|
|
|
type: object
|
|
|
|
x-go-name: UpdatedProperties
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
|
|
|
BoardType:
|
|
|
|
type: string
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
|
|
|
BoardsAndBlocks:
|
|
|
|
description: |-
|
|
|
|
BoardsAndBlocks is used to operate over boards and blocks at the
|
|
|
|
same time
|
|
|
|
properties:
|
|
|
|
blocks:
|
|
|
|
description: The blocks
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Block'
|
|
|
|
type: array
|
|
|
|
x-go-name: Blocks
|
|
|
|
boards:
|
|
|
|
description: The boards
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Board'
|
|
|
|
type: array
|
|
|
|
x-go-name: Boards
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2022-04-15 19:21:10 +02:00
|
|
|
Category:
|
|
|
|
description: Category is a board category
|
|
|
|
properties:
|
|
|
|
createAt:
|
|
|
|
description: The creation time in miliseconds since the current epoch
|
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: CreateAt
|
|
|
|
deleteAt:
|
|
|
|
description: The deleted time in miliseconds since the current epoch. Set to indicate this category is deleted
|
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: DeleteAt
|
|
|
|
id:
|
|
|
|
description: The id for this category
|
|
|
|
type: string
|
|
|
|
x-go-name: ID
|
|
|
|
name:
|
|
|
|
description: The name for this category
|
|
|
|
type: string
|
|
|
|
x-go-name: Name
|
|
|
|
teamID:
|
|
|
|
description: The team id for this category
|
|
|
|
type: string
|
|
|
|
x-go-name: TeamID
|
|
|
|
updateAt:
|
|
|
|
description: The last modified time in miliseconds since the current epoch
|
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: UpdateAt
|
|
|
|
userID:
|
|
|
|
description: The user's id for this category
|
|
|
|
type: string
|
|
|
|
x-go-name: UserID
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- userID
|
|
|
|
- teamID
|
|
|
|
- createAt
|
|
|
|
- updateAt
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
|
|
|
CategoryBoards:
|
|
|
|
description: CategoryBoards is a board category and associated boards
|
|
|
|
properties:
|
|
|
|
boardIDs:
|
|
|
|
description: The IDs of boards in this category
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
x-go-name: BoardIDs
|
|
|
|
createAt:
|
|
|
|
description: The creation time in miliseconds since the current epoch
|
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: CreateAt
|
|
|
|
deleteAt:
|
|
|
|
description: The deleted time in miliseconds since the current epoch. Set to indicate this category is deleted
|
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: DeleteAt
|
|
|
|
id:
|
|
|
|
description: The id for this category
|
|
|
|
type: string
|
|
|
|
x-go-name: ID
|
|
|
|
name:
|
|
|
|
description: The name for this category
|
|
|
|
type: string
|
|
|
|
x-go-name: Name
|
|
|
|
teamID:
|
|
|
|
description: The team id for this category
|
|
|
|
type: string
|
|
|
|
x-go-name: TeamID
|
|
|
|
updateAt:
|
|
|
|
description: The last modified time in miliseconds since the current epoch
|
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: UpdateAt
|
|
|
|
userID:
|
|
|
|
description: The user's id for this category
|
|
|
|
type: string
|
|
|
|
x-go-name: UserID
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- name
|
|
|
|
- userID
|
|
|
|
- teamID
|
|
|
|
- createAt
|
|
|
|
- updateAt
|
|
|
|
- boardIDs
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2021-02-17 21:29:20 +02:00
|
|
|
ChangePasswordRequest:
|
|
|
|
description: ChangePasswordRequest is a user password change request
|
|
|
|
properties:
|
|
|
|
newPassword:
|
|
|
|
description: New password
|
|
|
|
type: string
|
|
|
|
x-go-name: NewPassword
|
|
|
|
oldPassword:
|
|
|
|
description: Old password
|
|
|
|
type: string
|
|
|
|
x-go-name: OldPassword
|
|
|
|
required:
|
|
|
|
- oldPassword
|
|
|
|
- newPassword
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/api
|
2022-04-15 19:21:10 +02:00
|
|
|
ClientConfig:
|
|
|
|
description: ClientConfig is the client configuration
|
|
|
|
properties:
|
|
|
|
enablePublicSharedBoards:
|
|
|
|
description: Is public shared boards enabled
|
|
|
|
type: boolean
|
|
|
|
x-go-name: EnablePublicSharedBoards
|
|
|
|
featureFlags:
|
|
|
|
additionalProperties:
|
|
|
|
type: string
|
|
|
|
description: The server feature flags
|
|
|
|
type: object
|
|
|
|
x-go-name: FeatureFlags
|
|
|
|
telemetry:
|
|
|
|
description: Is telemetry enabled
|
|
|
|
type: boolean
|
|
|
|
x-go-name: Telemetry
|
|
|
|
telemetryid:
|
|
|
|
description: The telemetry ID
|
|
|
|
type: string
|
|
|
|
x-go-name: TelemetryID
|
|
|
|
required:
|
|
|
|
- telemetry
|
|
|
|
- telemetryid
|
|
|
|
- enablePublicSharedBoards
|
|
|
|
- featureFlags
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2022-03-22 16:24:34 +02:00
|
|
|
DeleteBoardsAndBlocks:
|
|
|
|
description: |-
|
|
|
|
DeleteBoardsAndBlocks is used to list the boards and blocks to
|
|
|
|
delete on a request
|
|
|
|
properties:
|
|
|
|
blocks:
|
|
|
|
description: The blocks
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
x-go-name: Blocks
|
|
|
|
boards:
|
|
|
|
description: The boards
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
x-go-name: Boards
|
|
|
|
required:
|
|
|
|
- boards
|
|
|
|
- blocks
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2021-02-17 21:29:20 +02:00
|
|
|
ErrorResponse:
|
|
|
|
description: ErrorResponse is an error response
|
|
|
|
properties:
|
|
|
|
error:
|
|
|
|
description: The error message
|
|
|
|
type: string
|
|
|
|
x-go-name: Error
|
2021-03-26 20:01:54 +02:00
|
|
|
errorCode:
|
|
|
|
description: The error code
|
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: ErrorCode
|
2021-02-17 21:29:20 +02:00
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2022-08-29 09:25:12 +02:00
|
|
|
Preference:
|
|
|
|
description: Preference represents a single user preference. A user can have multiple preferences.
|
|
|
|
properties:
|
|
|
|
user_id:
|
|
|
|
description: The associated user's ID
|
|
|
|
type: string
|
|
|
|
x-go-name: UserId
|
|
|
|
Category:
|
|
|
|
description: The category of preference. Its always "Focalboard" for this project
|
|
|
|
type: string
|
|
|
|
x-go-name: Category
|
|
|
|
Name:
|
|
|
|
description: Preference's name
|
|
|
|
type: string
|
|
|
|
x-go-name: Name
|
|
|
|
value:
|
|
|
|
description: Preference's value
|
|
|
|
type: string
|
|
|
|
x-go-name: Value
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2021-02-17 21:29:20 +02:00
|
|
|
FileUploadResponse:
|
|
|
|
description: FileUploadResponse is the response to a file upload
|
|
|
|
properties:
|
2021-02-23 21:42:28 +02:00
|
|
|
fileId:
|
|
|
|
description: The FileID to retrieve the uploaded file
|
2021-02-17 21:29:20 +02:00
|
|
|
type: string
|
2021-02-23 21:42:28 +02:00
|
|
|
x-go-name: FileID
|
2021-02-17 21:29:20 +02:00
|
|
|
required:
|
2021-02-23 21:42:28 +02:00
|
|
|
- fileId
|
2021-02-17 21:29:20 +02:00
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/api
|
|
|
|
LoginRequest:
|
|
|
|
description: LoginRequest is a login request
|
|
|
|
properties:
|
|
|
|
email:
|
|
|
|
description: If specified, login using email
|
|
|
|
type: string
|
|
|
|
x-go-name: Email
|
|
|
|
password:
|
|
|
|
description: Password
|
|
|
|
type: string
|
|
|
|
x-go-name: Password
|
|
|
|
type:
|
|
|
|
description: Type of login, currently must be set to "normal"
|
|
|
|
type: string
|
|
|
|
x-go-name: Type
|
|
|
|
username:
|
|
|
|
description: If specified, login using username
|
|
|
|
type: string
|
|
|
|
x-go-name: Username
|
|
|
|
required:
|
|
|
|
- type
|
|
|
|
- password
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/api
|
|
|
|
LoginResponse:
|
|
|
|
description: LoginResponse is a login response
|
|
|
|
properties:
|
|
|
|
token:
|
|
|
|
description: Session token
|
|
|
|
type: string
|
|
|
|
x-go-name: Token
|
|
|
|
required:
|
|
|
|
- token
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/api
|
2021-12-15 21:54:23 +02:00
|
|
|
NotificationHint:
|
|
|
|
description: |-
|
|
|
|
NotificationHint provides a hint that a block has been modified and has subscribers that
|
|
|
|
should be notified.
|
|
|
|
properties:
|
|
|
|
block_id:
|
|
|
|
description: BlockID is id of the entity that was updated
|
|
|
|
type: string
|
|
|
|
x-go-name: BlockID
|
|
|
|
block_type:
|
|
|
|
$ref: '#/definitions/BlockType'
|
|
|
|
create_at:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: CreatedAt is the timestamp this notification hint was created in miliseconds since the current epoch
|
2021-12-15 21:54:23 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: CreateAt
|
|
|
|
modified_by_id:
|
|
|
|
description: ModifiedByID is the id of the user who made the block change
|
|
|
|
type: string
|
|
|
|
x-go-name: ModifiedByID
|
|
|
|
notify_at:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: NotifyAt is the timestamp this notification should be scheduled in miliseconds since the current epoch
|
2021-12-15 21:54:23 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: NotifyAt
|
|
|
|
required:
|
|
|
|
- block_type
|
|
|
|
- block_id
|
|
|
|
- create_at
|
|
|
|
- notify_at
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2022-03-22 16:24:34 +02:00
|
|
|
PatchBoardsAndBlocks:
|
|
|
|
description: |-
|
|
|
|
PatchBoardsAndBlocks is used to patch multiple boards and blocks on
|
|
|
|
a single request
|
|
|
|
properties:
|
|
|
|
blockIDs:
|
|
|
|
description: The block IDs to patch
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
x-go-name: BlockIDs
|
|
|
|
blockPatches:
|
|
|
|
description: The block patches
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/BlockPatch'
|
|
|
|
type: array
|
|
|
|
x-go-name: BlockPatches
|
|
|
|
boardIDs:
|
|
|
|
description: The board IDs to patch
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
x-go-name: BoardIDs
|
|
|
|
boardPatches:
|
|
|
|
description: The board patches
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/BoardPatch'
|
|
|
|
type: array
|
|
|
|
x-go-name: BoardPatches
|
|
|
|
required:
|
|
|
|
- boardIDs
|
|
|
|
- boardPatches
|
|
|
|
- blockIDs
|
|
|
|
- blockPatches
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2021-02-17 21:29:20 +02:00
|
|
|
RegisterRequest:
|
|
|
|
description: RegisterRequest is a user registration request
|
|
|
|
properties:
|
|
|
|
email:
|
|
|
|
description: User's email
|
|
|
|
type: string
|
|
|
|
x-go-name: Email
|
|
|
|
password:
|
|
|
|
description: Password
|
|
|
|
type: string
|
|
|
|
x-go-name: Password
|
|
|
|
token:
|
|
|
|
description: Registration authorization token
|
|
|
|
type: string
|
|
|
|
x-go-name: Token
|
|
|
|
username:
|
|
|
|
description: User name
|
|
|
|
type: string
|
|
|
|
x-go-name: Username
|
|
|
|
required:
|
|
|
|
- username
|
|
|
|
- email
|
|
|
|
- password
|
|
|
|
- token
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/api
|
|
|
|
Sharing:
|
|
|
|
description: Sharing is sharing information for a root block
|
|
|
|
properties:
|
|
|
|
enabled:
|
|
|
|
description: Is sharing enabled
|
|
|
|
type: boolean
|
|
|
|
x-go-name: Enabled
|
|
|
|
id:
|
|
|
|
description: ID of the root block
|
|
|
|
type: string
|
|
|
|
x-go-name: ID
|
|
|
|
modifiedBy:
|
|
|
|
description: ID of the user who last modified this
|
|
|
|
type: string
|
|
|
|
x-go-name: ModifiedBy
|
|
|
|
token:
|
|
|
|
description: Access token
|
|
|
|
type: string
|
|
|
|
x-go-name: Token
|
|
|
|
update_at:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: Updated time in miliseconds since the current epoch
|
2021-02-17 21:29:20 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: UpdateAt
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- enabled
|
|
|
|
- token
|
|
|
|
- modifiedBy
|
|
|
|
- update_at
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2021-12-15 21:54:23 +02:00
|
|
|
Subscriber:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: Subscriber is an entity (e.g. user, channel) that can subscribe to events from boards, cards, etc
|
2021-12-15 21:54:23 +02:00
|
|
|
properties:
|
|
|
|
notified_at:
|
|
|
|
description: NotifiedAt is the timestamp this subscriber was last notified
|
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: NotifiedAt
|
|
|
|
subscriber_id:
|
|
|
|
description: SubscriberID is the id of the entity that is subscribing
|
|
|
|
type: string
|
|
|
|
x-go-name: SubscriberID
|
|
|
|
subscriber_type:
|
|
|
|
$ref: '#/definitions/SubscriberType'
|
|
|
|
required:
|
|
|
|
- subscriber_type
|
|
|
|
- subscriber_id
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
|
|
|
SubscriberType:
|
|
|
|
type: string
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
|
|
|
Subscription:
|
|
|
|
properties:
|
|
|
|
blockId:
|
|
|
|
description: BlockID is id of the entity being subscribed to
|
|
|
|
type: string
|
|
|
|
x-go-name: BlockID
|
|
|
|
blockType:
|
|
|
|
$ref: '#/definitions/BlockType'
|
|
|
|
createAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: CreatedAt is the timestamp this subscription was created in miliseconds since the current epoch
|
2021-12-15 21:54:23 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: CreateAt
|
|
|
|
deleteAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: DeleteAt is the timestamp this subscription was deleted in miliseconds since the current epoch, or zero if not deleted
|
2021-12-15 21:54:23 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: DeleteAt
|
|
|
|
notifiedAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: NotifiedAt is the timestamp of the last notification sent for this subscription
|
2021-12-15 21:54:23 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: NotifiedAt
|
|
|
|
subscriberId:
|
|
|
|
description: SubscriberID is the id of the entity that is subscribing
|
|
|
|
type: string
|
|
|
|
x-go-name: SubscriberID
|
|
|
|
subscriberType:
|
|
|
|
$ref: '#/definitions/SubscriberType'
|
|
|
|
required:
|
|
|
|
- blockType
|
|
|
|
- blockId
|
|
|
|
- subscriberType
|
|
|
|
- subscriberId
|
|
|
|
- notifiedAt
|
|
|
|
- createAt
|
|
|
|
- deleteAt
|
|
|
|
title: Subscription is a subscription to a board, card, etc, for a user or channel.
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2022-03-22 16:24:34 +02:00
|
|
|
Team:
|
|
|
|
description: Team is information global to a team
|
|
|
|
properties:
|
|
|
|
id:
|
|
|
|
description: ID of the team
|
|
|
|
type: string
|
|
|
|
x-go-name: ID
|
|
|
|
modifiedBy:
|
|
|
|
description: ID of user who last modified this
|
|
|
|
type: string
|
|
|
|
x-go-name: ModifiedBy
|
|
|
|
settings:
|
|
|
|
additionalProperties:
|
|
|
|
type: object
|
|
|
|
description: Team settings
|
|
|
|
type: object
|
|
|
|
x-go-name: Settings
|
|
|
|
signupToken:
|
|
|
|
description: Token required to register new users
|
|
|
|
type: string
|
|
|
|
x-go-name: SignupToken
|
|
|
|
title:
|
|
|
|
description: Title of the team
|
|
|
|
type: string
|
|
|
|
x-go-name: Title
|
|
|
|
updateAt:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: Updated time in miliseconds since the current epoch
|
2022-03-22 16:24:34 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: UpdateAt
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- signupToken
|
|
|
|
- modifiedBy
|
|
|
|
- updateAt
|
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2021-02-17 21:29:20 +02:00
|
|
|
User:
|
|
|
|
description: User is a user
|
|
|
|
properties:
|
|
|
|
create_at:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: Created time in miliseconds since the current epoch
|
2021-02-17 21:29:20 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: CreateAt
|
|
|
|
delete_at:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: Deleted time in miliseconds since the current epoch, set to indicate user is deleted
|
2021-02-17 21:29:20 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: DeleteAt
|
|
|
|
id:
|
|
|
|
description: The user ID
|
|
|
|
type: string
|
|
|
|
x-go-name: ID
|
2021-12-15 21:54:23 +02:00
|
|
|
is_bot:
|
|
|
|
description: If the user is a bot or not
|
|
|
|
type: boolean
|
|
|
|
x-go-name: IsBot
|
2022-04-13 22:24:32 +02:00
|
|
|
is_guest:
|
|
|
|
description: If the user is a guest or not
|
|
|
|
type: boolean
|
|
|
|
x-go-name: IsGuest
|
2021-02-17 21:29:20 +02:00
|
|
|
props:
|
|
|
|
additionalProperties:
|
|
|
|
type: object
|
|
|
|
description: User settings
|
|
|
|
type: object
|
|
|
|
x-go-name: Props
|
|
|
|
update_at:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: Updated time in miliseconds since the current epoch
|
2021-02-17 21:29:20 +02:00
|
|
|
format: int64
|
|
|
|
type: integer
|
|
|
|
x-go-name: UpdateAt
|
|
|
|
username:
|
|
|
|
description: The user name
|
|
|
|
type: string
|
|
|
|
x-go-name: Username
|
|
|
|
required:
|
|
|
|
- id
|
|
|
|
- username
|
|
|
|
- props
|
|
|
|
- create_at
|
|
|
|
- update_at
|
|
|
|
- delete_at
|
2021-12-15 21:54:23 +02:00
|
|
|
- is_bot
|
2022-04-13 22:24:32 +02:00
|
|
|
- is_guest
|
2021-12-15 21:54:23 +02:00
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
2022-03-22 16:24:34 +02:00
|
|
|
UserPropPatch:
|
|
|
|
description: UserPropPatch is a user property patch
|
2021-02-17 21:29:20 +02:00
|
|
|
properties:
|
2022-03-22 16:24:34 +02:00
|
|
|
deletedFields:
|
|
|
|
description: The user prop removed fields
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
x-go-name: DeletedFields
|
|
|
|
updatedFields:
|
2021-02-17 21:29:20 +02:00
|
|
|
additionalProperties:
|
2022-03-22 16:24:34 +02:00
|
|
|
type: string
|
|
|
|
description: The user prop updated fields
|
2021-02-17 21:29:20 +02:00
|
|
|
type: object
|
2022-03-22 16:24:34 +02:00
|
|
|
x-go-name: UpdatedFields
|
2021-02-17 21:29:20 +02:00
|
|
|
type: object
|
|
|
|
x-go-package: github.com/mattermost/focalboard/server/model
|
|
|
|
host: localhost
|
|
|
|
info:
|
|
|
|
contact:
|
|
|
|
email: api@focalboard.com
|
|
|
|
name: Focalboard
|
|
|
|
url: https://www.focalboard.com
|
2021-12-15 21:54:23 +02:00
|
|
|
description: Focalboard Server
|
2021-02-17 21:29:20 +02:00
|
|
|
license:
|
|
|
|
name: Custom
|
|
|
|
url: https://github.com/mattermost/focalboard/blob/main/LICENSE.txt
|
|
|
|
title: Focalboard Server
|
2021-03-08 19:36:14 +02:00
|
|
|
version: 1.0.0
|
2021-02-17 21:29:20 +02:00
|
|
|
paths:
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards:
|
2021-02-17 21:29:20 +02:00
|
|
|
post:
|
2022-03-22 16:24:34 +02:00
|
|
|
description: Creates a new board
|
|
|
|
operationId: createBoard
|
2021-02-17 21:29:20 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: the board to create
|
2021-02-17 21:29:20 +02:00
|
|
|
in: body
|
2022-03-22 16:24:34 +02:00
|
|
|
name: Body
|
2021-02-17 21:29:20 +02:00
|
|
|
required: true
|
|
|
|
schema:
|
2022-03-22 16:24:34 +02:00
|
|
|
$ref: '#/definitions/Board'
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2021-03-26 20:01:54 +02:00
|
|
|
schema:
|
2022-03-22 16:24:34 +02:00
|
|
|
$ref: '#/definitions/Board'
|
|
|
|
default:
|
2021-02-17 21:29:20 +02:00
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
2022-03-22 16:24:34 +02:00
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards-and-blocks:
|
2022-03-22 16:24:34 +02:00
|
|
|
delete:
|
|
|
|
description: Deletes boards and blocks
|
|
|
|
operationId: deleteBoardsAndBlocks
|
|
|
|
parameters:
|
|
|
|
- description: the boards and blocks to delete
|
|
|
|
in: body
|
|
|
|
name: Body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/DeleteBoardsAndBlocks'
|
2021-12-15 21:54:23 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2022-03-22 16:24:34 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
|
|
|
patch:
|
|
|
|
description: Patches a set of related boards and blocks
|
|
|
|
operationId: patchBoardsAndBlocks
|
|
|
|
parameters:
|
|
|
|
- description: the patches for the boards and blocks
|
|
|
|
in: body
|
|
|
|
name: Body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/PatchBoardsAndBlocks'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/BoardsAndBlocks'
|
|
|
|
default:
|
2021-12-15 21:54:23 +02:00
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2021-03-26 20:01:54 +02:00
|
|
|
post:
|
2022-03-22 16:24:34 +02:00
|
|
|
description: Creates new boards and blocks
|
|
|
|
operationId: insertBoardsAndBlocks
|
2021-02-17 21:29:20 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: the boards and blocks to create
|
2021-03-26 20:01:54 +02:00
|
|
|
in: body
|
2022-03-22 16:24:34 +02:00
|
|
|
name: Body
|
2021-02-17 21:29:20 +02:00
|
|
|
required: true
|
2021-03-26 20:01:54 +02:00
|
|
|
schema:
|
2022-03-22 16:24:34 +02:00
|
|
|
$ref: '#/definitions/BoardsAndBlocks'
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2022-03-22 16:24:34 +02:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/BoardsAndBlocks'
|
|
|
|
default:
|
2021-02-17 21:29:20 +02:00
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
2022-03-22 16:24:34 +02:00
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}:
|
2022-03-22 16:24:34 +02:00
|
|
|
delete:
|
|
|
|
description: Removes a board
|
|
|
|
operationId: deleteBoard
|
2021-02-17 21:29:20 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-02-17 21:29:20 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-02-17 21:29:20 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2022-04-05 17:00:04 +02:00
|
|
|
"404":
|
|
|
|
description: board not found
|
2021-02-17 21:29:20 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
description: Returns a board
|
|
|
|
operationId: getBoard
|
2021-03-26 20:01:54 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-03-26 20:01:54 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-03-26 20:01:54 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
2022-03-22 16:24:34 +02:00
|
|
|
$ref: '#/definitions/Board'
|
2022-04-05 17:00:04 +02:00
|
|
|
"404":
|
|
|
|
description: board not found
|
2022-03-22 16:24:34 +02:00
|
|
|
default:
|
2021-02-17 21:29:20 +02:00
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-03-22 16:24:34 +02:00
|
|
|
patch:
|
|
|
|
description: Partially updates a board
|
|
|
|
operationId: patchBoard
|
|
|
|
parameters:
|
|
|
|
- description: Board ID
|
|
|
|
in: path
|
|
|
|
name: boardID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: board patch to apply
|
|
|
|
in: body
|
|
|
|
name: Body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/BoardPatch'
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2021-03-26 20:01:54 +02:00
|
|
|
schema:
|
2022-03-22 16:24:34 +02:00
|
|
|
$ref: '#/definitions/Board'
|
2022-04-05 17:00:04 +02:00
|
|
|
"404":
|
|
|
|
description: board not found
|
2021-02-17 21:29:20 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/archive/export:
|
2021-03-26 20:01:54 +02:00
|
|
|
get:
|
2022-03-22 16:24:34 +02:00
|
|
|
operationId: archiveExportBoard
|
2021-02-17 21:29:20 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Id of board to export
|
2021-03-26 20:01:54 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-03-26 20:01:54 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-03-22 16:24:34 +02:00
|
|
|
summary: Exports an archive of all blocks for one boards.
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/blocks:
|
2021-03-26 20:01:54 +02:00
|
|
|
get:
|
|
|
|
description: Returns blocks
|
|
|
|
operationId: getBlocks
|
2021-02-17 21:29:20 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-03-26 20:01:54 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-02-17 21:29:20 +02:00
|
|
|
required: true
|
2021-03-26 20:01:54 +02:00
|
|
|
type: string
|
|
|
|
- description: ID of parent block, omit to specify all blocks
|
|
|
|
in: query
|
|
|
|
name: parent_id
|
|
|
|
type: string
|
|
|
|
- description: Type of blocks to return, omit to specify all types
|
|
|
|
in: query
|
|
|
|
name: type
|
|
|
|
type: string
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
2021-03-26 20:01:54 +02:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Block'
|
|
|
|
type: array
|
2022-04-05 17:00:04 +02:00
|
|
|
"404":
|
|
|
|
description: board not found
|
2021-03-26 20:01:54 +02:00
|
|
|
default:
|
2021-02-17 21:29:20 +02:00
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
2021-03-26 20:01:54 +02:00
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2021-02-17 21:29:20 +02:00
|
|
|
post:
|
2021-12-15 21:54:23 +02:00
|
|
|
description: |-
|
|
|
|
Insert blocks. The specified IDs will only be used to link
|
|
|
|
blocks with existing ones, the rest will be replaced by server
|
|
|
|
generated IDs
|
2021-03-26 20:01:54 +02:00
|
|
|
operationId: updateBlocks
|
2021-02-17 21:29:20 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-03-26 20:01:54 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-03-26 20:01:54 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: array of blocks to insert or update
|
2021-02-17 21:29:20 +02:00
|
|
|
in: body
|
2021-03-26 20:01:54 +02:00
|
|
|
name: Body
|
2021-02-17 21:29:20 +02:00
|
|
|
required: true
|
|
|
|
schema:
|
2021-03-26 20:01:54 +02:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Block'
|
|
|
|
type: array
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
2021-12-15 21:54:23 +02:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Block'
|
|
|
|
type: array
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/blocks/:
|
2021-12-15 21:54:23 +02:00
|
|
|
patch:
|
|
|
|
description: Partially updates batch of blocks
|
|
|
|
operationId: patchBlocks
|
|
|
|
parameters:
|
|
|
|
- description: Workspace ID
|
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-12-15 21:54:23 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: block Ids and block patches to apply
|
|
|
|
in: body
|
|
|
|
name: Body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/BlockPatchBatch'
|
|
|
|
produces:
|
|
|
|
- application/json
|
2021-02-17 21:29:20 +02:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2021-03-26 20:01:54 +02:00
|
|
|
default:
|
2021-02-17 21:29:20 +02:00
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
2021-03-26 20:01:54 +02:00
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/blocks/{blockID}:
|
2021-03-26 20:01:54 +02:00
|
|
|
delete:
|
|
|
|
description: Deletes a block
|
|
|
|
operationId: deleteBlock
|
2021-02-17 21:29:20 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-02-17 21:29:20 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-03-26 20:01:54 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: ID of block to delete
|
|
|
|
in: path
|
|
|
|
name: blockID
|
2021-02-17 21:29:20 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2022-04-05 17:00:04 +02:00
|
|
|
"404":
|
|
|
|
description: block not found
|
2021-02-17 21:29:20 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2021-08-06 14:10:24 +02:00
|
|
|
patch:
|
|
|
|
description: Partially updates a block
|
|
|
|
operationId: patchBlock
|
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-08-06 14:10:24 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-08-06 14:10:24 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: ID of block to patch
|
|
|
|
in: path
|
|
|
|
name: blockID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: block patch to apply
|
|
|
|
in: body
|
|
|
|
name: Body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/BlockPatch'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2022-04-05 17:00:04 +02:00
|
|
|
"404":
|
|
|
|
description: block not found
|
2021-08-06 14:10:24 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/blocks/{blockID}/duplicate:
|
2022-03-22 16:24:34 +02:00
|
|
|
post:
|
|
|
|
description: Returns the new created blocks
|
|
|
|
operationId: duplicateBlock
|
|
|
|
parameters:
|
|
|
|
- description: Board ID
|
|
|
|
in: path
|
|
|
|
name: boardID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Block ID
|
|
|
|
in: path
|
|
|
|
name: blockID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Block'
|
|
|
|
type: array
|
2022-04-05 17:00:04 +02:00
|
|
|
"404":
|
|
|
|
description: board or block not found
|
2022-03-22 16:24:34 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/blocks/{blockID}/undelete:
|
|
|
|
post:
|
|
|
|
description: Undeletes a block
|
|
|
|
operationId: undeleteBlock
|
2021-02-17 21:29:20 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-02-17 21:29:20 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-02-17 21:29:20 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
2022-04-13 22:24:32 +02:00
|
|
|
- description: ID of block to undelete
|
2021-03-26 20:01:54 +02:00
|
|
|
in: path
|
|
|
|
name: blockID
|
2021-02-17 21:29:20 +02:00
|
|
|
required: true
|
2021-03-26 20:01:54 +02:00
|
|
|
type: string
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2021-03-26 20:01:54 +02:00
|
|
|
schema:
|
2022-04-13 22:24:32 +02:00
|
|
|
$ref: '#/definitions/BlockPatch'
|
|
|
|
"404":
|
|
|
|
description: block not found
|
2021-02-17 21:29:20 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/duplicate:
|
2022-04-05 17:00:04 +02:00
|
|
|
post:
|
2022-04-13 22:24:32 +02:00
|
|
|
description: Returns the new created board and all the blocks
|
|
|
|
operationId: duplicateBoard
|
2022-04-05 17:00:04 +02:00
|
|
|
parameters:
|
|
|
|
- description: Board ID
|
|
|
|
in: path
|
|
|
|
name: boardID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
2022-04-13 22:24:32 +02:00
|
|
|
$ref: '#/definitions/BoardsAndBlocks'
|
2022-04-05 17:00:04 +02:00
|
|
|
"404":
|
2022-04-13 22:24:32 +02:00
|
|
|
description: board not found
|
2022-04-05 17:00:04 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/join:
|
|
|
|
post:
|
|
|
|
description: Become a member of a board
|
|
|
|
operationId: joinBoard
|
2021-02-17 21:29:20 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-02-17 21:29:20 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-02-17 21:29:20 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
2022-04-13 22:24:32 +02:00
|
|
|
$ref: '#/definitions/BoardMember'
|
|
|
|
"403":
|
|
|
|
description: access denied
|
|
|
|
"404":
|
|
|
|
description: board not found
|
2021-02-17 21:29:20 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/leave:
|
2021-02-17 21:29:20 +02:00
|
|
|
post:
|
2022-04-13 22:24:32 +02:00
|
|
|
description: Remove your own membership from a board
|
|
|
|
operationId: leaveBoard
|
2021-02-17 21:29:20 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-02-17 21:29:20 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-02-17 21:29:20 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2022-04-13 22:24:32 +02:00
|
|
|
"403":
|
|
|
|
description: access denied
|
|
|
|
"404":
|
|
|
|
description: board not found
|
2021-03-26 20:01:54 +02:00
|
|
|
default:
|
2021-02-17 21:29:20 +02:00
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/members:
|
|
|
|
get:
|
|
|
|
description: Returns the members of the board
|
|
|
|
operationId: getMembersForBoard
|
2021-03-26 20:01:54 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-03-26 20:01:54 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-03-26 20:01:54 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2022-03-22 16:24:34 +02:00
|
|
|
schema:
|
2022-04-13 22:24:32 +02:00
|
|
|
items:
|
|
|
|
$ref: '#/definitions/BoardMember'
|
|
|
|
type: array
|
2021-02-17 21:29:20 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
post:
|
|
|
|
description: Adds a new member to a board
|
|
|
|
operationId: addMember
|
2021-03-26 20:01:54 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-03-26 20:01:54 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-03-26 20:01:54 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
2022-04-13 22:24:32 +02:00
|
|
|
- description: membership to replace the current one with
|
|
|
|
in: body
|
|
|
|
name: Body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/BoardMember'
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
2022-04-13 22:24:32 +02:00
|
|
|
$ref: '#/definitions/BoardMember'
|
|
|
|
"404":
|
|
|
|
description: board not found
|
2021-02-17 21:29:20 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/members/{userID}:
|
2022-03-22 16:24:34 +02:00
|
|
|
delete:
|
|
|
|
description: Deletes a member from a board
|
|
|
|
operationId: deleteMember
|
2021-03-26 20:01:54 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-03-26 20:01:54 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-03-26 20:01:54 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: User ID
|
2021-03-26 20:01:54 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: userID
|
2021-03-26 20:01:54 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2022-04-05 17:00:04 +02:00
|
|
|
"404":
|
|
|
|
description: board not found
|
2021-02-17 21:29:20 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
put:
|
|
|
|
description: Updates a board member
|
|
|
|
operationId: updateMember
|
|
|
|
parameters:
|
|
|
|
- description: Board ID
|
|
|
|
in: path
|
|
|
|
name: boardID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: User ID
|
|
|
|
in: path
|
|
|
|
name: userID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: membership to replace the current one with
|
|
|
|
in: body
|
|
|
|
name: Body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/BoardMember'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/BoardMember'
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
|
|
|
/boards/{boardID}/metadata:
|
GetBoardMetadata API (#2569)
* wip
* Added data migration for populating categories
* wip
* Added data migration for populating categories
* Store WIP
* migration WIP
* category CRUD APIs complete
* category block API WIP
* block category update API done
* Fetcehed data into store
* Started displayting sidebar data
* sidebar WIP
* Dashboard - basic changes
* Sidebar dashboard btn and board switcher UI only
* Sidebar dashboard btn and board switcher UI only
* create category dialog WIP
* Create category webapp side done
* Integrated move card to other category
* board to block
* Disabled dashboard route for now as we'll implement it in phase 2
* WIP
* Added logic to open last board/view on per team level
* Add workspace to teams and boards migrations (#1986)
* Add workspace to teams and boards migrations
* Update json annotations on board models
* boards search dialog WIP
* Seach dialog WIP
* Implemented opening boiard from search results
* Boards switcher styliung
* Handled update category WS event
* Template support
* personal server support and styling fixes
* test fix WIP
* Fixed a bug causing boards to not be moved correctly beteen categories
* Fixed webapp tests
* fix
* Store changes (#2011)
* Permissions phase 1 - Websocket updates (#2014)
* Store changes
* Websockets changes
* Permissions phase 1 - Permissions service (#2015)
* Store changes
* Websockets changes
* Permissions service
* Api and app updates (#2016)
* Store changes
* Websockets changes
* Permissions service
* New API and App changes
* Delete and Patch boards and blocks endpoints
* Used correct variable
* Webapp changes WIP
* Open correct team URL
* Fixed get block API
* Used React context for workspace users
* WIP
* On load navigation sorted out
* WIP
* Nav fix
* categories WS broadcast
* Used real search API
* Fixed unfurl ppreview
* set active team in sidebar
* IMplemented navigation on changing team in sidebar
* Misc fixes
* close rows inside transaction (#2045)
* update syntax for mysql (#2044)
* Upadted mutator for new patchBlock API
* Updated patchBlock API to use new URL
* Listeining to correct event in plugin mode
* Implemented WS messages for category operations:
* Fix duplicated build tags on Makefile
* Sidebar enhancements
* Add missing prefix to SQLite migration and fix flaky tests
* Sidebar boards menu enhancement
* Fix board page interactions (#2144)
* Fix patch board card properties error
* Fix board interactions
* Fix insert blocks interactions
* Fix app tests (#2104)
* Add json1 tag to vscode launch (#2157)
* Fix add, delete and update boards and add board patch generation (#2146)
* Fix update boards and add board patch generation
* Make add board and add template work, as well as deleting a board
* Update the state on board deletion
* Delete unused variable
* Fix bad parenthesis
* Fix board creation inside plugin, options were coming null due websocket message serialization
* update property type mutators to use boards API (#2168)
* Add permissions modal (#2196)
* Initial integration
* Permissions modal, websocket updates and API tests implemented
* Avoid updating/removing user if there is only one admin left
* Fix duplicates on board search
* Adds integration test
* Addressing PR review comments
Co-authored-by: Jesús Espino <jespinog@gmail.com>
* Merge
* I'm able to compile now
* Some fixes around tests execution
* Fixing migrations
* Fixing migrations order
* WIP
* Fixing some other compilation problems on tests
* Some typescript tests fixed
* Fixing javascript tests
* Fixing compilation
* Fixing some problems to create boards
* Load the templates on initial load
* Improvements over initial team templates import
* Adding new fields in the database
* Working on adding duplicate board api
* Removing RootID concept entirely
* Improving a bit the subscriptions
* Fixing store tests for notificationHints
* Fixing more tests
* fixing tests
* Fixing tests
* Fixing tests
* Fixing some small bugs related to templates
* Fixing registration link generation/regeneration
* Fixing cypress tests
* Adding store tests for duplicateBoard and duplicateBlock
* Addressing some TODO comments
* Making the export api simpler
* Add redirect component for old workspace urls
* Removing Dashboard code
* Delete only the built-in templates on update
* fixing tests
* Adding users autocompletion
* Updating snapshots
* Fixing bad merge
* fix panic when creating new card in notifysubscriptions (#2352)
* fix lint errors (#2353)
* fix lint errors
* fix panic when creating new card in notifysubscriptions (#2352)
* fix lint errors
* fix unit test
* Revert "fix unit test"
This reverts commit 0ad78aed65745521c0bb45790c9ea91b6c316c44.
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
* fix sql syntax error for SearchUsersByTeam (#2357)
* Fix mentions delivery (#2358)
* fix sql syntax error for SearchUsersByTeam
* fix mentions delivery
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* update api for octoClient calls, pass correct variables to mutator (#2359)
* Fixing tests after merge
* Fix sidebar context menu UI issue (#2399)
* Fix notification diff for text blocks (#2386)
* fix notification diff for text blocks; fix various linter errors.
* fix URLs to cards
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Permissions branch: Fix card links (#2391)
* fix notification diff for text blocks; fix various linter errors.
* fix URLs to cards
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixing sqlite tests
* Fixing server tests
* Update migrations to create global templates. (#2397)
* fix duplicate templates
* revert migrate.go
* update UI for empty templates
* implement updating built-in templates as global (teamId = 0)
* handle error if board not found
* update unit test
* fix more tests
* Update blocks_test.go
Fix merge issue
* fix migration sql error (#2414)
* Fixing frontend tests
* Set target team ID when using a global template (#2419)
* Fix some server tests
* Fixing onboarding creation
* Permissions branch: Fix unit tests and CI errors (part 1) (#2425)
* Fixing some small memory leaks (#2400)
* Fixing some small memory leaks
* fixing tests
* passing the tags to all test targets
* Increasing the timeout of the tests
* Fix some type checkings
* Permissions branch: Fixes all the linter errors (#2429)
* fix linter errors
* Reestructuring the router and splitting in more subcomponents (#2403)
* Reestructuring the router and splitting in more subcomponents
* Removing console.log calls
* Removing unneeded selector
* Addressing PR comment
* Fix redirection to one team when you load directly the boards home path
* Using properly the lastTeamID to redirect the user if needed
* don't allow last admin change/deleted (#2416)
* don't allow last admin change/deleted
* update for i18-extract
* fixed en.json
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
* Splitting BoardPage component into simpler/smaller components (#2435)
* Splitting BoardPage component into simpler/smaller components
* Removing unneeded import
* Replace go migrate with morph permissions (#2424)
* merge origin/replace-go-migrate-with-morph
* run go mod tidy on mattermost-plugin and increase test timeout
* fix merge issue temprorarily
* remove some debug changes
* fixing the linter
* Allow always team 0 (global) templates fetch (#2472)
* Fix problem with viewId 0 in the URL (#2473)
* Migrate from binddata to goembed (#2471)
* Adding join logic to the board switcher (#2434)
* Adding join logic to the board switcher
* Using already existing client function and removing the joinBoard one
* Adding support for autojoin based on url
* Fixing frontend tests
* fix webapp compile error, missing enableSharedBoards (#2501)
* Fixing duplication on postgres
* Adding back views to the sidebar (#2494)
* Fix #2507. Update Swagger comments (#2508)
* Fix the flash of the template selector on board/team switch (#2490)
* Fix the flash of the template selector on board/team switch
* More fixes specially around error handling
* Fixing the bot badge (#2487)
* simplifying a bit the team store sync between channels and focalboard (#2481)
* Fix menu tests (#2528)
* fix failing menu tests
* fix lint error
* Added keyboard shortcut for boards switcher (#2407)
* Added keyboard shortcut for boards switcher
* Fixed a type error
* Added some inline comments
* Fixed lint
* Fixed bug with scroll jumping when the card is opened: (#2477)
- avoid remounting of `ScrollingComponent` for each render of `Kanban` component
- property `autoFocus` set to false for `CalculationOptions` because it triggers `blur` even for the button in Jest tests and closes the menu
- snapshots for tests with `CalculationOptions` updated
* Adding the frontend support for permissions and applying it to a big part of the interface. (#2536)
* Initial work on permissions gates
* Applying permissions gates in more places
* Adding more checks to the interface
* Adding more permissions gates and keeping the store up to date
* fixing some tests
* Fixing some more tests
* Fixing another test
* Fixing all tests and adding some more
* Adding no-permission snapshot tests
* Addressing PR review comments
* Fixing invert behavior
* Permissions branch: No sqlstore calls after app shutdown (#2530)
* fix webapp compile error, missing enableSharedBoards
* refactor app init wip
* - ensure all block change notifications are finished before shutting down app
- fix unit tests for mysql (insert_at only has 1 second resolution!)
* adjust logging
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixed migrations to allow upgrading from previous version (#2535)
* Added mechanism to check if schema migration is needed
* WIP
* WIP
* WIP
* WIP
* Fixed migration
* Fixed for SQLite
* minor cleaniup
* Deleted old schema migration table after running migrations
* Removed a debug log
* Fixed a bug where the code always tried to delete a table which may or may not exist
* Show properly the user avatar in the ShareBoard component (#2542)
* Fixing the last CI problems from the permissions-branch (#2541)
* Fix history ordering
* Giving some times to avoid possible race conditions
* Empty
* Reverting accidental change in the config.json
* Optimizing table view (#2540)
* Optimizing table view
* Reducing the amount of rendering for tables
* Some other performance improvements
* Improve the activeView updates
* Some extra simplifications
* Another small improvement
* Fixing tests
* Fixing linter errors
* Reducing a bit the amount of dependency with big objects in the store
* Small simplification
* Removing Commenter role from the user role selector (#2561)
* Shareboard cleanup (#2550)
* Initial work on permissions gates
* Applying permissions gates in more places
* Adding more checks to the interface
* Adding more permissions gates and keeping the store up to date
* fixing some tests
* Fixing some more tests
* Fixing another test
* Fixing all tests and adding some more
* Adding no-permission snapshot tests
* Addressing PR review comments
* cleanup some shareboard settings
* remove unused property, fix for user items being displayed for non admin
* revert change, allow users to show
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* GetBoardMetadata API
* Integration tests. WIP
* getBoardHistory
* Working integration test
* Fix ordering, add store tests
* Fix: Update board_history update_at on patch
* sqltests
* Fix unmarshall delete boards_history
* testGetBlockMetadata with delete and undelete
* Handle board not found
* Fixing comments and cards with the new optimizations in the store (#2560)
* Fixing property creation (#2563)
* Cleanup
* Fix user selection in table view (#2565)
* Fixing focus new row in table view (#2567)
* Permissions branch: Fix sqlite table lock (CI) (#2568)
* fix sqlite table lock
* remove test db on teardown
* revert .gitignore
* fix goimport on migration code
* fix typo
* more linter fixes
* clean up tmp db for sqlstore tests
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Fixing snapshots
* Remove debug log
* Return metadata for deleted boards
* Migrating center panel to functional component (#2562)
* Migrating center panel to functional component
* Fixing some tests
* Fixing another test
* Fixing linter errors
* Fixing types errors
* Fixing linter error
* Fixing cypress tests
* Fixing the last cypress test
* Simpliying a bit the code
* Making property insertion more robust
* Updating checkbox test
* License check
* Cleanup and update Swagger docs
* Merge from main
* Fix bad merge
* Fix Linux-app build break
* do mod tidy
* Fix server lint
* Require credentials (not only read token)
* Add missing defer CloseRows
* do mod tidy
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Harshil Sharma <18575143+harshilsharma63@users.noreply.github.com>
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Co-authored-by: kamre <eremchenko@gmail.com>
2022-03-29 23:47:49 +02:00
|
|
|
get:
|
|
|
|
description: Returns a board's metadata
|
|
|
|
operationId: getBoardMetadata
|
|
|
|
parameters:
|
|
|
|
- description: Board ID
|
|
|
|
in: path
|
|
|
|
name: boardID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/BoardMetadata'
|
|
|
|
"404":
|
|
|
|
description: board not found
|
|
|
|
"501":
|
|
|
|
description: required license not found
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/sharing:
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
description: Returns sharing information for a board
|
|
|
|
operationId: getSharing
|
2021-12-15 21:54:23 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-12-15 21:54:23 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-12-15 21:54:23 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
2022-03-22 16:24:34 +02:00
|
|
|
$ref: '#/definitions/Sharing'
|
2022-04-05 17:00:04 +02:00
|
|
|
"404":
|
|
|
|
description: board not found
|
2021-12-15 21:54:23 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-03-22 16:24:34 +02:00
|
|
|
post:
|
|
|
|
description: Sets sharing information for a board
|
|
|
|
operationId: postSharing
|
2021-12-15 21:54:23 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Board ID
|
2021-12-15 21:54:23 +02:00
|
|
|
in: path
|
2022-03-22 16:24:34 +02:00
|
|
|
name: boardID
|
2021-12-15 21:54:23 +02:00
|
|
|
required: true
|
|
|
|
type: string
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: sharing information for a root block
|
|
|
|
in: body
|
|
|
|
name: Body
|
2021-12-15 21:54:23 +02:00
|
|
|
required: true
|
2022-03-22 16:24:34 +02:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Sharing'
|
2021-12-15 21:54:23 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/boards/{boardID}/undelete:
|
|
|
|
post:
|
|
|
|
description: Undeletes a board
|
|
|
|
operationId: undeleteBoard
|
|
|
|
parameters:
|
|
|
|
- description: ID of board to undelete
|
|
|
|
in: path
|
|
|
|
name: boardID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-15 19:21:10 +02:00
|
|
|
/clientConfig:
|
|
|
|
get:
|
|
|
|
description: Returns the client configuration
|
|
|
|
operationId: getClientConfig
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ClientConfig'
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
2022-04-13 22:24:32 +02:00
|
|
|
/login:
|
2022-03-22 16:24:34 +02:00
|
|
|
post:
|
|
|
|
description: Login user
|
|
|
|
operationId: login
|
2021-12-15 21:54:23 +02:00
|
|
|
parameters:
|
2022-03-22 16:24:34 +02:00
|
|
|
- description: Login request
|
|
|
|
in: body
|
|
|
|
name: body
|
2021-12-15 21:54:23 +02:00
|
|
|
required: true
|
2022-03-22 16:24:34 +02:00
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/LoginRequest'
|
2021-12-15 21:54:23 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
2022-03-22 16:24:34 +02:00
|
|
|
$ref: '#/definitions/LoginResponse'
|
|
|
|
"401":
|
|
|
|
description: invalid login
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
"500":
|
2021-12-15 21:54:23 +02:00
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
2022-04-13 22:24:32 +02:00
|
|
|
/logout:
|
2022-03-22 16:24:34 +02:00
|
|
|
post:
|
|
|
|
description: Logout user
|
|
|
|
operationId: logout
|
2021-06-04 15:23:15 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
2022-03-22 16:24:34 +02:00
|
|
|
"500":
|
2021-06-04 15:23:15 +02:00
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/register:
|
2022-03-22 16:24:34 +02:00
|
|
|
post:
|
|
|
|
description: Register new user
|
|
|
|
operationId: register
|
|
|
|
parameters:
|
|
|
|
- description: Register request
|
|
|
|
in: body
|
|
|
|
name: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/RegisterRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
"401":
|
|
|
|
description: invalid registration token
|
|
|
|
"500":
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
2022-04-13 22:24:32 +02:00
|
|
|
/subscriptions:
|
2022-03-22 16:24:34 +02:00
|
|
|
post:
|
|
|
|
operationId: createSubscription
|
|
|
|
parameters:
|
|
|
|
- description: subscription definition
|
|
|
|
in: body
|
|
|
|
name: Body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Subscription'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/User'
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-15 19:21:10 +02:00
|
|
|
summary: Creates a subscription to a block for a user. The user will receive change notifications for the block.
|
2022-04-13 22:24:32 +02:00
|
|
|
/subscriptions/{blockID}/{subscriberID}:
|
2022-03-22 16:24:34 +02:00
|
|
|
delete:
|
|
|
|
operationId: deleteSubscription
|
|
|
|
parameters:
|
|
|
|
- description: Block ID
|
|
|
|
in: path
|
|
|
|
name: blockID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Subscriber ID
|
|
|
|
in: path
|
|
|
|
name: subscriberID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-15 19:21:10 +02:00
|
|
|
summary: Deletes a subscription a user has for a a block. The user will no longer receive change notifications for the block.
|
2022-04-13 22:24:32 +02:00
|
|
|
/subscriptions/{subscriberID}:
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
operationId: getSubscriptions
|
|
|
|
parameters:
|
|
|
|
- description: Subscriber ID
|
|
|
|
in: path
|
|
|
|
name: subscriberID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/User'
|
|
|
|
type: array
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
|
|
|
summary: Gets subscriptions for a user.
|
2022-04-13 22:24:32 +02:00
|
|
|
/team/{teamID}/onboard:
|
2022-03-22 16:24:34 +02:00
|
|
|
post:
|
|
|
|
operationId: onboard
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
2022-04-19 07:53:41 +02:00
|
|
|
properties:
|
|
|
|
boardID:
|
|
|
|
description: Board ID
|
|
|
|
type: string
|
|
|
|
teamID:
|
|
|
|
description: Team ID
|
|
|
|
type: string
|
|
|
|
type: object
|
2022-03-22 16:24:34 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
|
|
|
summary: Onboards a user on Boards.
|
2022-04-13 22:24:32 +02:00
|
|
|
/teams:
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
description: Returns information of all the teams
|
|
|
|
operationId: getTeams
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Team'
|
|
|
|
type: array
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/teams/{teamID}:
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
description: Returns information of the root team
|
|
|
|
operationId: getTeam
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Team'
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/teams/{teamID}/archive/export:
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
operationId: archiveExportTeam
|
|
|
|
parameters:
|
|
|
|
- description: Id of team
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
|
|
|
summary: Exports an archive of all blocks for all the boards in a team.
|
2022-04-13 22:24:32 +02:00
|
|
|
/teams/{teamID}/archive/import:
|
2022-04-05 17:00:04 +02:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- multipart/form-data
|
|
|
|
operationId: archiveImport
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: archive file to import
|
|
|
|
in: formData
|
|
|
|
name: file
|
|
|
|
required: true
|
|
|
|
type: file
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
|
|
|
summary: Import an archive of boards.
|
2022-04-13 22:24:32 +02:00
|
|
|
/teams/{teamID}/boards:
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
description: Returns team boards
|
|
|
|
operationId: getBoards
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Board'
|
|
|
|
type: array
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/teams/{teamID}/boards/{boardID}/files:
|
2022-03-22 16:24:34 +02:00
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- multipart/form-data
|
|
|
|
description: Upload a binary file, attached to a root block
|
|
|
|
operationId: uploadFile
|
|
|
|
parameters:
|
|
|
|
- description: ID of the team
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Board ID
|
|
|
|
in: path
|
|
|
|
name: boardID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: The file to upload
|
|
|
|
in: formData
|
|
|
|
name: uploaded file
|
|
|
|
type: file
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/FileUploadResponse'
|
2022-04-05 17:00:04 +02:00
|
|
|
"404":
|
|
|
|
description: board not found
|
2022-03-22 16:24:34 +02:00
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/teams/{teamID}/boards/search:
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
description: Returns the boards that match with a search term
|
|
|
|
operationId: searchBoards
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: The search term. Must have at least one character
|
|
|
|
in: query
|
|
|
|
name: q
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Board'
|
|
|
|
type: array
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-15 19:21:10 +02:00
|
|
|
/teams/{teamID}/categories:
|
|
|
|
get:
|
|
|
|
description: Gets the user's board categories
|
|
|
|
operationId: getUserCategoryBoards
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/CategoryBoards'
|
|
|
|
type: array
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
|
|
|
post:
|
|
|
|
description: Create a category for boards
|
|
|
|
operationId: createCategory
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: category to create
|
|
|
|
in: body
|
|
|
|
name: Body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Category'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Category'
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
|
|
|
/teams/{teamID}/categories/{categoryID}:
|
|
|
|
delete:
|
|
|
|
description: Delete a category
|
|
|
|
operationId: deleteCategory
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Category ID
|
|
|
|
in: path
|
|
|
|
name: categoryID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
|
|
|
put:
|
|
|
|
description: Create a category for boards
|
|
|
|
operationId: updateCategory
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Category ID
|
|
|
|
in: path
|
|
|
|
name: categoryID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: category to update
|
|
|
|
in: body
|
|
|
|
name: Body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Category'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Category'
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
|
|
|
/teams/{teamID}/categories/{categoryID}/boards/{boardID}:
|
|
|
|
post:
|
|
|
|
description: Set the category of a board
|
|
|
|
operationId: updateCategoryBoard
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Category ID
|
|
|
|
in: path
|
|
|
|
name: categoryID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Board ID
|
|
|
|
in: path
|
|
|
|
name: boardID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/teams/{teamID}/regenerate_signup_token:
|
2022-03-22 16:24:34 +02:00
|
|
|
post:
|
|
|
|
description: Regenerates the signup token for the root team
|
|
|
|
operationId: regenerateSignupToken
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/teams/{teamID}/templates:
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
description: Returns team templates
|
|
|
|
operationId: getTemplates
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/Board'
|
|
|
|
type: array
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/teams/{teamID}/users:
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
description: Returns team users
|
|
|
|
operationId: getTeamUsers
|
|
|
|
parameters:
|
|
|
|
- description: Team ID
|
|
|
|
in: path
|
|
|
|
name: teamID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: string to filter users list
|
|
|
|
in: query
|
|
|
|
name: search
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/User'
|
|
|
|
type: array
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/users/{userID}:
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
description: Returns a user
|
|
|
|
operationId: getUser
|
|
|
|
parameters:
|
|
|
|
- description: User ID
|
|
|
|
in: path
|
|
|
|
name: userID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/User'
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/users/{userID}/changepassword:
|
2022-03-22 16:24:34 +02:00
|
|
|
post:
|
|
|
|
description: Change a user's password
|
|
|
|
operationId: changePassword
|
|
|
|
parameters:
|
|
|
|
- description: User ID
|
|
|
|
in: path
|
|
|
|
name: userID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: Change password request
|
|
|
|
in: body
|
|
|
|
name: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ChangePasswordRequest'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
"400":
|
|
|
|
description: invalid request
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
"500":
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/users/{userID}/config:
|
2022-03-22 16:24:34 +02:00
|
|
|
patch:
|
|
|
|
description: Updates user config
|
|
|
|
operationId: updateUserConfig
|
|
|
|
parameters:
|
|
|
|
- description: User ID
|
|
|
|
in: path
|
|
|
|
name: userID
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: User config patch to apply
|
|
|
|
in: body
|
|
|
|
name: Body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/UserPropPatch'
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/users/me:
|
2022-03-22 16:24:34 +02:00
|
|
|
get:
|
|
|
|
description: Returns the currently logged-in user
|
|
|
|
operationId: getMe
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/User'
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2022-04-13 22:24:32 +02:00
|
|
|
/users/me/memberships:
|
2022-03-29 10:14:33 +02:00
|
|
|
get:
|
|
|
|
description: Returns the currently users board memberships
|
|
|
|
operationId: getMyMemberships
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: success
|
|
|
|
schema:
|
|
|
|
items:
|
|
|
|
$ref: '#/definitions/BoardMember'
|
|
|
|
type: array
|
|
|
|
default:
|
|
|
|
description: internal error
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/ErrorResponse'
|
|
|
|
security:
|
|
|
|
- BearerAuth: []
|
2021-02-17 21:29:20 +02:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
schemes:
|
|
|
|
- http
|
|
|
|
- https
|
|
|
|
securityDefinitions:
|
|
|
|
BearerAuth:
|
2022-04-15 19:21:10 +02:00
|
|
|
description: 'Pass session token using Bearer authentication, e.g. set header "Authorization: Bearer <session token>"'
|
2021-02-17 21:29:20 +02:00
|
|
|
in: header
|
|
|
|
name: Authorization
|
|
|
|
type: apiKey
|
|
|
|
swagger: "2.0"
|