|
12 | 12 | import com.smartling.api.files.v2.pto.FileTypesListPTO; |
13 | 13 | import com.smartling.api.files.v2.pto.GetFileLastModifiedPTO; |
14 | 14 | import com.smartling.api.files.v2.pto.GetFilesListPTO; |
| 15 | +import com.smartling.api.files.v2.pto.GetRecentlyPublishedFilesPTO; |
15 | 16 | import com.smartling.api.files.v2.pto.ImportTranslationsPTO; |
16 | 17 | import com.smartling.api.files.v2.pto.ImportTranslationsResponse; |
| 18 | +import com.smartling.api.files.v2.pto.RecentlyPublishedFileItemPTO; |
17 | 19 | import com.smartling.api.files.v2.pto.RenameFilePto; |
18 | 20 | import com.smartling.api.files.v2.pto.UploadFilePTO; |
19 | 21 | import com.smartling.api.files.v2.pto.UploadFileResponse; |
|
41 | 43 |
|
42 | 44 | @Produces(APPLICATION_JSON) |
43 | 45 | @Consumes(APPLICATION_JSON) |
44 | | -@Path("/files-api/v2") |
45 | 46 | @DetailedErrorMessage(args = "fileUri") |
46 | 47 | public interface FilesApi extends AutoCloseable |
47 | 48 | { |
48 | 49 | @POST |
49 | | - @Path("/projects/{projectId}/file") |
| 50 | + @Path("/files-api/v2/projects/{projectId}/file") |
50 | 51 | @Consumes(MULTIPART_FORM_DATA) |
51 | 52 | UploadFileResponse uploadFile(@PathParam("projectId") String projectId, @MultipartForm UploadFilePTO uploadFilePTO); |
52 | 53 |
|
53 | 54 | @GET |
54 | | - @Path("/projects/{projectId}/file") |
| 55 | + @Path("/files-api/v2/projects/{projectId}/file") |
55 | 56 | @Produces(WILDCARD) |
56 | 57 | InputStream downloadSourceFile(@PathParam("projectId") String projectId, @QueryParam("fileUri") String fileUri); |
57 | 58 |
|
58 | 59 | @GET |
59 | | - @Path("/projects/{projectId}/file/status") |
| 60 | + @Path("/files-api/v2/projects/{projectId}/file/status") |
60 | 61 | FileStatusResponse getFileStatus(@PathParam("projectId") String projectId, @QueryParam("fileUri") String fileUri); |
61 | 62 |
|
62 | 63 | @GET |
63 | | - @Path("/projects/{projectId}/locales/{localeId}/file/status") |
| 64 | + @Path("/files-api/v2/projects/{projectId}/locales/{localeId}/file/status") |
64 | 65 | FileLocaleStatusResponse getFileLocaleStatus(@PathParam("projectId") String projectId, @PathParam("localeId") String localeId, @QueryParam("fileUri") String fileUri); |
65 | 66 |
|
66 | 67 | @GET |
67 | | - @Path("/projects/{projectId}/locales/{localeId}/file") |
| 68 | + @Path("/files-api/v2/projects/{projectId}/locales/{localeId}/file") |
68 | 69 | @Produces(WILDCARD) |
69 | 70 | InputStream downloadTranslatedFile(@PathParam("projectId") String projectId, @PathParam("localeId") String localeId, @BeanParam DownloadTranslationPTO downloadTranslationPTO); |
70 | 71 |
|
71 | 72 | @GET |
72 | | - @Path("/projects/{projectId}/locales/{localeId}/file") |
| 73 | + @Path("/files-api/v2/projects/{projectId}/locales/{localeId}/file") |
73 | 74 | @Produces(MULTIPART_MIXED) |
74 | 75 | TranslatedFileMultipart downloadTranslatedFileMultipart(@PathParam("projectId") String projectId, @PathParam("localeId") String localeId, @BeanParam DownloadTranslationPTO downloadTranslationPTO); |
75 | 76 |
|
76 | 77 | @GET |
77 | | - @Path("/projects/{projectId}/locales/all/file/zip") |
| 78 | + @Path("/files-api/v2/projects/{projectId}/locales/all/file/zip") |
78 | 79 | @Produces(WILDCARD) |
79 | 80 | InputStream downloadAllFileTranslations(@PathParam("projectId") String projectId, @BeanParam DownloadAllFileTranslationsPTO downloadAllFileTranslationsPTO); |
80 | 81 |
|
81 | 82 | @GET |
82 | | - @Path("/projects/{projectId}/files/zip") |
| 83 | + @Path("/files-api/v2/projects/{projectId}/files/zip") |
83 | 84 | @Produces(WILDCARD) |
84 | 85 | InputStream downloadMultipleFileTranslations(@PathParam("projectId") String projectId, @BeanParam DownloadMultipleTranslationsPTO downloadMultipleTranslationsPTO); |
85 | 86 |
|
86 | 87 | @GET |
87 | | - @Path("/projects/{projectId}/files/list") |
| 88 | + @Path("/files-api/v2/projects/{projectId}/files/list") |
88 | 89 | ListResponse<FileItemPTO> getFilesList(@PathParam("projectId") String projectId, @BeanParam GetFilesListPTO getFilesListPTO); |
89 | 90 |
|
| 91 | + @GET |
| 92 | + @Path("/published-files-api/v2/projects/{projectId}/files/list/recently-published") |
| 93 | + ListResponse<RecentlyPublishedFileItemPTO> getRecentlyPublishedFiles(@PathParam("projectId") String projectId, @BeanParam GetRecentlyPublishedFilesPTO getRecentlyPublishedFilesPTO); |
| 94 | + |
90 | 95 | @GET |
91 | 96 | @Path("/files-api/v2/projects/{projectId}/file-types") |
92 | 97 | FileTypesListPTO getFilesTypesList(@PathParam("projectId") String projectId); |
93 | 98 |
|
94 | 99 | @POST |
95 | | - @Path("/projects/{projectId}/file/rename") |
| 100 | + @Path("/files-api/v2/projects/{projectId}/file/rename") |
96 | 101 | EmptyData renameFile(@PathParam("projectId") String projectId, RenameFilePto renameFilePto); |
97 | 102 |
|
98 | 103 | @POST |
99 | | - @Path("/projects/{projectId}/file/delete") |
| 104 | + @Path("/files-api/v2/projects/{projectId}/file/delete") |
100 | 105 | EmptyData deleteFile(@PathParam("projectId") String projectId, DeleteFilePTO deleteFilePTO); |
101 | 106 |
|
102 | 107 | @GET |
103 | | - @Path("/projects/{projectId}/file/last-modified") |
| 108 | + @Path("/files-api/v2/projects/{projectId}/file/last-modified") |
104 | 109 | ListResponse<FileLocaleLastModifiedPTO> getFileLastModified(@PathParam("projectId") String projectId, @BeanParam GetFileLastModifiedPTO getFileLastModifiedPto); |
105 | 110 |
|
106 | 111 | @GET |
107 | | - @Path("/projects/{projectId}/locales/{localeId}/file/last-modified") |
| 112 | + @Path("/files-api/v2/projects/{projectId}/locales/{localeId}/file/last-modified") |
108 | 113 | FileLocaleLastModifiedPTO getFileLocaleLastModified(@PathParam("projectId") String projectId, @PathParam("localeId") String localeId, @BeanParam GetFileLastModifiedPTO getFileLastModifiedPto); |
109 | 114 |
|
110 | 115 | @POST |
111 | | - @Path("/projects/{projectId}/locales/{localeId}/file/import") |
| 116 | + @Path("/files-api/v2/projects/{projectId}/locales/{localeId}/file/import") |
112 | 117 | @Consumes(MULTIPART_FORM_DATA) |
113 | 118 | ImportTranslationsResponse importTranslations(@PathParam("projectId") String projectId, @PathParam("localeId") String localeId, @MultipartForm ImportTranslationsPTO importTranslationsPTO); |
114 | 119 |
|
115 | 120 | @POST |
116 | | - @Path("/projects/{projectId}/locales/{localeId}/file/get-translations") |
| 121 | + @Path("/files-api/v2/projects/{projectId}/locales/{localeId}/file/get-translations") |
117 | 122 | @Consumes(MULTIPART_FORM_DATA) |
118 | 123 | @Produces(WILDCARD) |
119 | 124 | InputStream exportTranslations(@PathParam("projectId") String projectId, @PathParam("localeId") String localeId, @MultipartForm ExportTranslationsPTO exportTranslationsPTO); |
|
0 commit comments