Package io.mailtrap.api.projects
Interface Projects
- All Known Implementing Classes:
ProjectsImpl
public interface Projects
Interface representing the Mailtrap Testing API for interaction with projects
-
Method Summary
Modifier and TypeMethodDescriptioncreateProject
(long accountId, CreateUpdateProjectRequest request) Create a projectdeleteProject
(long accountId, long projectId) Delete project and its inboxesgetProject
(long accountId, long projectId) Get the project and its inboxesgetProjects
(long accountId) List projects and their inboxes to which the API token has access.updateProject
(long accountId, long projectId, CreateUpdateProjectRequest updateRequest) Update project data
-
Method Details
-
createProject
Create a project- Parameters:
accountId
- unique account IDrequest
- request data- Returns:
- Returns attributes of the created project. permissions returns the permissions of the token for the project
-
getProjects
List projects and their inboxes to which the API token has access.- Parameters:
accountId
- unique account ID- Returns:
- the list of projects with nested inboxes. permissions returns the permissions of the token for the project
-
getProject
Get the project and its inboxes- Parameters:
accountId
- unique account IDprojectId
- unique project ID- Returns:
- project attributes and inboxes of this project with their attributes. permissions returns the permissions of the token for the project
-
updateProject
ProjectsResponse updateProject(long accountId, long projectId, CreateUpdateProjectRequest updateRequest) Update project data- Parameters:
accountId
- unique account IDprojectId
- unique project IDupdateRequest
- request data- Returns:
- project attributes and inboxes of this project with their attributes. permissions returns the permissions of the token for the project
-
deleteProject
Delete project and its inboxes- Parameters:
accountId
- unique account IDprojectId
- unique project ID- Returns:
- id of the deleted project
-