trello

package
v0.20.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	Token string `json:"code"`
}

Migration represents the trello migration struct

func (*Migration) AuthURL

func (m *Migration) AuthURL() string

AuthURL returns the url users need to authenticate against @Summary Get the auth url from trello @Description Returns the auth url where the user needs to get its auth code. This code can then be used to migrate everything from trello to Vikunja. @tags migration @Produce json @Security JWTKeyAuth @Success 200 {object} handler.AuthURL "The auth url." @Failure 500 {object} models.Message "Internal server error" @Router /migration/trello/auth [get]

func (*Migration) Migrate

func (m *Migration) Migrate(u *user.User) (err error)

Migrate gets all tasks from trello for a user and puts them into vikunja @Summary Migrate all lists, tasks etc. from trello @Description Migrates all projects, tasks, notes, reminders, subtasks and files from trello to vikunja. @tags migration @Accept json @Produce json @Security JWTKeyAuth @Param migrationCode body trello.Migration true "The auth token previously obtained from the auth url. See the docs for /migration/trello/auth." @Success 200 {object} models.Message "A message telling you everything was migrated successfully." @Failure 500 {object} models.Message "Internal server error" @Router /migration/trello/migrate [post]

func (*Migration) Name

func (m *Migration) Name() string

Name is used to get the name of the trello migration - we're using the docs here to annotate the status route. @Summary Get migration status @Description Returns if the current user already did the migation or not. This is useful to show a confirmation message in the frontend if the user is trying to do the same migration again. @tags migration @Produce json @Security JWTKeyAuth @Success 200 {object} migration.Status "The migration status" @Failure 500 {object} models.Message "Internal server error" @Router /migration/trello/status [get]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL