public class ProjectEndpoints extends Object
| Constructor and Description |
|---|
ProjectEndpoints() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<EmptyResponse> |
bulkModifyProjects(BulkModifyProjects.BulkModifyProjectsRequest request)
This endpoint is used to modify properties about projects in bulk.
|
CompletableFuture<EmptyResponse> |
changeProjectIcon(String projectId,
File file)
This endpoint is used to change the icon of a project.
|
CompletableFuture<EmptyResponse> |
changeProjectIcon(String projectId,
InputStream stream,
String fileName)
This endpoint is used to change the icon of a project.
|
CompletableFuture<Boolean> |
checkSlugAvailability(String slug)
This endpoint is used to check slug availability.
|
CompletableFuture<Project> |
create(CreateProject.CreateProjectRequest request)
This endpoint will create a project based on the request.
|
CompletableFuture<EmptyResponse> |
createGalleryImage(String slug,
CreateGalleryImage.CreateGalleryImageRequest request)
This endpoint is used to create a gallery image for a project.
|
CompletableFuture<EmptyResponse> |
delete(String project)
This endpoint is used to delete a project by its ID.
|
CompletableFuture<EmptyResponse> |
deleteGalleryImage(String slug,
String imageUrl)
This endpoint is used to delete a gallery image for a project.
|
CompletableFuture<EmptyResponse> |
deleteProjectIcon(String projectId)
This endpoint is used to delete a project icon.
|
CompletableFuture<EmptyResponse> |
followProject(String slug)
This endpoint is used to follow a project.
|
CompletableFuture<List<Project>> |
get(List<String> projects)
This endpoint is used to fetch a list of projects by their IDs.
|
CompletableFuture<List<Project>> |
get(String... projects)
This endpoint is used to fetch a list of projects by their IDs.
|
CompletableFuture<Project> |
get(String project)
This endpoint is used to fetch a project by its ID.
|
CompletableFuture<GetProjectDependencies.GetProjectDependenciesResponse> |
getProjectDependencies(String slug)
This endpoint is used to get the dependencies for a project.
|
CompletableFuture<String> |
getProjectIdBySlug(String slug)
This endpoint is used to get the project ID from a slug
|
CompletableFuture<List<Project>> |
getRandomProjects(int count)
This endpoint is used to get a list of random projects
|
CompletableFuture<ModifyProject.ProjectModifications> |
modify(String project,
ModifyProject.ProjectModifications request)
This endpoint is used to modify a project by its ID.
|
CompletableFuture<EmptyResponse> |
modifyGalleryImage(String slug,
ModifyGalleryImage.ModifyGalleryImageRequest request)
This endpoint is used to modify a gallery image for a project.
|
CompletableFuture<EmptyResponse> |
scheduleProject(String projectId,
ScheduleProject.ScheduleProjectRequest request)
This endpoint is used to schedule a project.
|
CompletableFuture<EmptyResponse> |
unfollowProject(String slug)
This endpoint is used to unfollow a project.
|
public CompletableFuture<Project> get(String project)
project - - project The ID of the project to fetch.CompletableFuture that will return the project.public CompletableFuture<List<Project>> get(List<String> projects)
projects - - The IDs of the projects to fetch.CompletableFuture that will return the projects.get(String[])public CompletableFuture<List<Project>> get(String... projects)
projects - - The IDs of the projects to fetch.CompletableFuture that will return the projects.get(List)public CompletableFuture<ModifyProject.ProjectModifications> modify(String project, ModifyProject.ProjectModifications request)
project - - The ID of the project to modify.request - - The request to send.CompletableFuture that will return the modified project.public CompletableFuture<EmptyResponse> delete(String project)
project - - The ID of the project to delete.CompletableFuture that will return an empty response.public CompletableFuture<Project> create(CreateProject.CreateProjectRequest request)
request - - The request to send.CompletableFuture that will return the created project.public CompletableFuture<Boolean> checkSlugAvailability(String slug)
slug - - The slug to check.CompletableFuture that will return true if the slug is
available.public CompletableFuture<String> getProjectIdBySlug(String slug)
slug - - The slug to get the ID from.CompletableFuture that will return the project ID.public CompletableFuture<EmptyResponse> createGalleryImage(String slug, CreateGalleryImage.CreateGalleryImageRequest request)
slug - - The slug of the project to create the image for.request - - The request to send.CompletableFuture that will return an empty response.public CompletableFuture<EmptyResponse> modifyGalleryImage(String slug, ModifyGalleryImage.ModifyGalleryImageRequest request)
slug - - The slug of the project to modify the image for.request - - The request to send.CompletableFuture that will return an empty response.public CompletableFuture<EmptyResponse> deleteGalleryImage(String slug, String imageUrl)
slug - - The slug of the project to delete the image for.imageUrl - - The URL of the image to delete.CompletableFuture that will return an empty response.public CompletableFuture<GetProjectDependencies.GetProjectDependenciesResponse> getProjectDependencies(String slug)
slug - - The slug of the project to get the dependencies for.CompletableFuture that will return the dependencies.public CompletableFuture<EmptyResponse> followProject(String slug)
slug - - The slug of the project to follow.CompletableFuture that will return an empty response.public CompletableFuture<EmptyResponse> unfollowProject(String slug)
slug - - The slug of the project to unfollow.CompletableFuture that will return an empty response.public CompletableFuture<EmptyResponse> changeProjectIcon(String projectId, File file) throws FileNotFoundException
projectId - - The ID of the project to change the icon for.file - - The file to use as the icon.CompletableFuture that will return an empty response.FileNotFoundException - - If the file is not found.changeProjectIcon(String, InputStream, String)public CompletableFuture<EmptyResponse> changeProjectIcon(String projectId, InputStream stream, String fileName)
projectId - - The ID of the project to change the icon for.stream - - The stream to use as the icon.fileName - - The name of the file.CompletableFuture that will return an empty response.changeProjectIcon(String, File)public CompletableFuture<EmptyResponse> deleteProjectIcon(String projectId)
projectId - - The ID of the project to delete the icon for.CompletableFuture that will return an empty response.public CompletableFuture<EmptyResponse> bulkModifyProjects(BulkModifyProjects.BulkModifyProjectsRequest request)
request - - The request to send.CompletableFuture that will return an empty response.public CompletableFuture<List<Project>> getRandomProjects(int count)
count - - The amount of projects to get.CompletableFuture that will return the projects.public CompletableFuture<EmptyResponse> scheduleProject(String projectId, ScheduleProject.ScheduleProjectRequest request)
projectId - - The ID of the project to schedule.request - - The request to send.CompletableFuture that will return an empty response.Copyright © 2026. All rights reserved.