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