Projects
Controller
@RestController
@RequestMapping(path = "BASE_EQUINOX_ENDPOINT + USERS_KEY + "/{" + IDENTIFIER_KEY + "}/" + PROJECTS_KEY"
)
The ProjectsController
class is useful
to manage all the project operations
Author
N7ghtm4r3 - Tecknobit
See also
EquinoxController
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
projectsHelper
instance to
manage the projects database operations
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
WRONG_CHANGE_NOTES_ERROR_MESSAGE
message to use when the change notes list is not valid
Link copied to clipboard
Link copied to clipboard
WRONG_PROJECT_DESCRIPTION_ERROR_MESSAGE
message to use when the description of the project is not a
valid description
Link copied to clipboard
WRONG_PROJECT_NAME_ERROR_MESSAGE
message to use when the name of the project is not a valid
name
Link copied to clipboard
WRONG_PROJECT_NAME_EXISTS_ERROR_MESSAGE
message to use when the name of the project is already used
Link copied to clipboard
WRONG_PROJECT_REPOSITORY_ERROR_MESSAGE
message to use when the repository of the project is not
valid
Link copied to clipboard
WRONG_PROJECT_VERSION_ERROR_MESSAGE
message to use when the version of the project is not valid
Link copied to clipboard
WRONG_PUBLISH_UPDATE_REQUEST_ERROR_MESSAGE
message to use when a request to publish an update is not
valid
Link copied to clipboard
WRONG_START_UPDATE_REQUEST_ERROR_MESSAGE
message to use when a request to start an update is not
valid
Link copied to clipboard
WRONG_UPDATE_TARGET_VERSION_ERROR_MESSAGE
message to use when the target version of an update is not
valid
Link copied to clipboard
WRONG_UPDATE_TARGET_VERSION_EXISTS_ERROR_MESSAGE
message to use when the version of an update is already used
Functions
Link copied to clipboard
@PutMapping(path = ""/{" + PROJECT_IDENTIFIER_KEY + "}" + UPDATES_PATH + "{" + UPDATE_IDENTIFIER_KEY + "}" + ADD_CHANGE_NOTE_ENDPOINT",
headers = []
)
Method to add a change note to an update
Link copied to clipboard
@PostMapping(headers = []
)
Method to add a new project
Link copied to clipboard
@DeleteMapping(path = "/{" + PROJECT_IDENTIFIER_KEY + "}" + UPDATES_PATH + "{" + UPDATE_IDENTIFIER_KEY + "}/" + NOTES_KEY
+ "/{" + NOTE_IDENTIFIER_KEY + "}",
headers = []
)
Method to delete a change note
Link copied to clipboard
@DeleteMapping(path = "/{" + PROJECT_IDENTIFIER_KEY + "}",
headers = []
)
Method to delete a project
Link copied to clipboard
@DeleteMapping(path = "/{" + PROJECT_IDENTIFIER_KEY + "}" + UPDATES_PATH + "{" + UPDATE_IDENTIFIER_KEY + "}",
headers = []
)
Method to delete an update
Link copied to clipboard
@PatchMapping(path = "/{" + PROJECT_IDENTIFIER_KEY + "}" + UPDATES_PATH + "{" + UPDATE_IDENTIFIER_KEY + "}/" + NOTES_KEY +
"/{" + NOTE_IDENTIFIER_KEY + "}",
headers = []
)
Method to edit an existing change note of an
update
Link copied to clipboard
@PostMapping(path = "/{" + PROJECT_IDENTIFIER_KEY + "}",
headers = []
)
Method to edit an existing project
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@GetMapping(path = "/authored",
headers = []
)
Method to get the authored projects list
Link copied to clipboard
@GetMapping(path = "/in_development",
headers = []
)
Method to get a IN_DEVELOPMENT
projects list
Link copied to clipboard
Link copied to clipboard
@GetMapping(headers = []
)
Method to get a projects list
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@PatchMapping(path = ""/{" + PROJECT_IDENTIFIER_KEY + "}" + UPDATES_PATH + "{" + UPDATE_IDENTIFIER_KEY + "}/" + NOTES_KEY
+ "/{" + NOTE_IDENTIFIER_KEY + "}" + MARK_CHANGE_NOTE_AS_DONE_ENDPOINT",
headers = []
)
Method to mark a change note as done
Link copied to clipboard
@PatchMapping(path = ""/{" + PROJECT_IDENTIFIER_KEY + "}" + UPDATES_PATH + "{" + UPDATE_IDENTIFIER_KEY + "}/" + NOTES_KEY
+ "/{" + NOTE_IDENTIFIER_KEY + "}" + MARK_CHANGE_NOTE_AS_TODO_ENDPOINT",
headers = []
)
Method to mark a change note as to-do
Link copied to clipboard
@PatchMapping(path = ""/{" + PROJECT_IDENTIFIER_KEY + "}" + UPDATES_PATH + "{" + UPDATE_IDENTIFIER_KEY + "}" + PUBLISH_UPDATE_ENDPOINT",
headers = []
)
Method to publish an update of a project
Link copied to clipboard
@PostMapping(path = ""/{" + PROJECT_IDENTIFIER_KEY + "}" + UPDATES_PATH + SCHEDULE_UPDATE_ENDPOINT",
headers = []
)
Method to schedule an update for a project
Link copied to clipboard
@PatchMapping(path = ""/{" + PROJECT_IDENTIFIER_KEY + "}" + UPDATES_PATH + "{" + UPDATE_IDENTIFIER_KEY + "}" + START_UPDATE_ENDPOINT",
headers = []
)
Method to start an update of a project
Link copied to clipboard
Link copied to clipboard
private open fun workWithProject(id: String, token: String, payload: ProjectDTO, projectId: String): String
Method to add or edit a project