Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix url links #40

Merged
merged 1 commit into from
Sep 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crowdin_api/api_resources/dictionaries/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DictionariesResource(BaseResource):
Use API to get the list of organization dictionaries and to edit a specific dictionary.

Link to documentation:
https://support.crowdin.com/api/v2/#tag/Dictionaries
https://developer.crowdin.com/api/v2/#tag/Dictionaries
"""

def list_dictionaries(
Expand All @@ -28,7 +28,7 @@ def list_dictionaries(
List Dictionaries.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.dictionaries.getMany
https://developer.crowdin.com/api/v2/#operation/api.projects.dictionaries.getMany
"""

params = self.get_page_params(page=page, offset=offset, limit=limit)
Expand All @@ -45,7 +45,7 @@ def edit_dictionary(self, projectId: int, languageId: str, data: Iterable[Dictio
Edit Dictionary.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.dictionaries.patch
https://developer.crowdin.com/api/v2/#operation/api.projects.dictionaries.patch
"""

return self.requester.request(
Expand Down
16 changes: 8 additions & 8 deletions crowdin_api/api_resources/distributions/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class DistributionsResource(BaseResource):
Resource for Distributions.

Link to documentation:
https://support.crowdin.com/api/v2/#tag/Distributions
https://developer.crowdin.com/api/v2/#tag/Distributions
"""

def get_distributions_path(self, projectId: int, hash: Optional[str] = None):
Expand All @@ -29,7 +29,7 @@ def list_distributions(
List Distributions.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.distributions.getMany
https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.getMany
"""

return self.requester.request(
Expand All @@ -43,7 +43,7 @@ def add_distribution(self, projectId: int, name: str, fileIds: Iterable[int]):
Add Distribution.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.distributions.post
https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.post
"""

return self.requester.request(
Expand All @@ -57,7 +57,7 @@ def get_distribution(self, projectId: int, hash: str):
Get Distribution.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.distributions.get
https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.get
"""

return self.requester.request(
Expand All @@ -70,7 +70,7 @@ def delete_distribution(self, projectId: int, hash: str):
Delete Distribution.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.distributions.delete
https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.delete
"""

return self.requester.request(
Expand All @@ -85,7 +85,7 @@ def edit_distribution(
Edit Distribution.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.distributions.patch
https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.patch
"""

return self.requester.request(
Expand All @@ -99,7 +99,7 @@ def get_distribution_release(self, projectId: int, hash: str):
Get Distribution Release.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.distributions.release.get
https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.release.get
"""

return self.requester.request(
Expand All @@ -112,7 +112,7 @@ def release_distribution(self, projectId: int, hash: str):
Release Distribution.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.distributions.release.post
https://developer.crowdin.com/api/v2/#operation/api.projects.distributions.release.post
"""

return self.requester.request(
Expand Down
34 changes: 17 additions & 17 deletions crowdin_api/api_resources/glossaries/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GlossariesResource(BaseResource):
operations and shall be completed with sequence of API methods.

Link to documentation:
https://support.crowdin.com/api/v2/#tag/Glossaries
https://developer.crowdin.com/api/v2/#tag/Glossaries
"""

# Glossaries
Expand All @@ -37,7 +37,7 @@ def list_glossaries(
List Glossaries.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.getMany
https://developer.crowdin.com/api/v2/#operation/api.glossaries.getMany
"""

return self.requester.request(
Expand All @@ -51,7 +51,7 @@ def add_glossary(self, name: str, languageId: str):
Add Glossary.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.post
https://developer.crowdin.com/api/v2/#operation/api.glossaries.post
"""

return self.requester.request(
Expand All @@ -65,7 +65,7 @@ def get_glossary(self, glossaryId: int):
Get Glossary.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.get
https://developer.crowdin.com/api/v2/#operation/api.glossaries.get
"""

return self.requester.request(
Expand All @@ -78,7 +78,7 @@ def delete_glossary(self, glossaryId: int):
Delete Glossary.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.delete
https://developer.crowdin.com/api/v2/#operation/api.glossaries.delete
"""

return self.requester.request(
Expand All @@ -91,7 +91,7 @@ def edit_glossary(self, glossaryId: int, data: Iterable[GlossaryPatchRequest]):
Edit Glossary.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.patch
https://developer.crowdin.com/api/v2/#operation/api.glossaries.patch
"""

return self.requester.request(
Expand All @@ -112,7 +112,7 @@ def export_glossary(self, glossaryId: int, format: Optional[ExportFormat] = None
Export Glossary.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.exports.post
https://developer.crowdin.com/api/v2/#operation/api.glossaries.exports.post
"""

return self.requester.request(
Expand All @@ -126,7 +126,7 @@ def check_glossary_export_status(self, glossaryId: int, exportId: str):
Check Glossary Export Status.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.exports.get
https://developer.crowdin.com/api/v2/#operation/api.glossaries.exports.get
"""

return self.requester.request(
Expand All @@ -139,7 +139,7 @@ def download_glossary(self, glossaryId: int, exportId: str):
Download Glossary.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.exports.download.download
https://developer.crowdin.com/api/v2/#operation/api.glossaries.exports.download.download
"""

glossary_export_path = self.get_glossary_export_path(
Expand All @@ -163,7 +163,7 @@ def import_glossary(
Import Glossary.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.imports.post
https://developer.crowdin.com/api/v2/#operation/api.glossaries.imports.post
"""

return self.requester.request(
Expand All @@ -181,7 +181,7 @@ def check_glossary_import_status(self, glossaryId: int, importId: str):
Check Glossary Import Status.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.imports.get
https://developer.crowdin.com/api/v2/#operation/api.glossaries.imports.get
"""

return self.requester.request(
Expand Down Expand Up @@ -210,7 +210,7 @@ def list_terms(
List Terms.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.terms.getMany
https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.getMany
"""

params = {
Expand Down Expand Up @@ -240,7 +240,7 @@ def add_term(
Add Term.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.terms.post
https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.post
"""

return self.requester.request(
Expand All @@ -265,7 +265,7 @@ def clear_glossary(
Clear Glossary.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.terms.deleteMany
https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.deleteMany
"""

return self.requester.request(
Expand All @@ -282,7 +282,7 @@ def get_term(self, glossaryId: int, termId: int):
Get Term.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.terms.get
https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.get
"""

return self.requester.request(
Expand All @@ -295,7 +295,7 @@ def delete_term(self, glossaryId: int, termId: int):
Delete Term.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.terms.delete
https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.delete
"""

return self.requester.request(
Expand All @@ -308,7 +308,7 @@ def edit_term(self, glossaryId: int, termId: int, data: Iterable[TermPatchReques
Edit Term.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.glossaries.terms.patch
https://developer.crowdin.com/api/v2/#operation/api.glossaries.terms.patch
"""

return self.requester.request(
Expand Down
16 changes: 8 additions & 8 deletions crowdin_api/api_resources/labels/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class LabelsResource(BaseResource):
Resource for Labels.

Link to documentation:
https://support.crowdin.com/api/v2/#tag/Labels
https://developer.crowdin.com/api/v2/#tag/Labels
"""

def get_labels_path(self, projectId: int, labelId: Optional[int] = None):
Expand All @@ -29,7 +29,7 @@ def list_labels(
List Labels.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.labels.getMany
https://developer.crowdin.com/api/v2/#operation/api.projects.labels.getMany
"""

return self.requester.request(
Expand All @@ -43,7 +43,7 @@ def add_label(self, projectId: int, title: str):
Add Label.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.labels.post
https://developer.crowdin.com/api/v2/#operation/api.projects.labels.post
"""

return self.requester.request(
Expand All @@ -57,7 +57,7 @@ def get_label(self, projectId: int, labelId: int):
Get Label.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.labels.get
https://developer.crowdin.com/api/v2/#operation/api.projects.labels.get
"""

return self.requester.request(
Expand All @@ -70,7 +70,7 @@ def delete_label(self, projectId: int, labelId: int):
Delete Label.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.labels.delete
https://developer.crowdin.com/api/v2/#operation/api.projects.labels.delete
"""

return self.requester.request(
Expand All @@ -83,7 +83,7 @@ def edit_label(self, projectId: int, labelId: int, data: Iterable[LabelsPatchReq
Edit Label.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.labels.patch
https://developer.crowdin.com/api/v2/#operation/api.projects.labels.patch
"""

return self.requester.request(
Expand All @@ -97,7 +97,7 @@ def assign_label_to_strings(self, projectId: int, labelId: int, stringIds: Itera
Assign Label to Strings.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.labels.strings.post
https://developer.crowdin.com/api/v2/#operation/api.projects.labels.strings.post
"""

return self.requester.request(
Expand All @@ -111,7 +111,7 @@ def unassign_label_from_strings(self, projectId: int, labelId: int, stringIds: I
Unassign Label from Strings.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.projects.labels.strings.deleteMany
https://developer.crowdin.com/api/v2/#operation/api.projects.labels.strings.deleteMany
"""

return self.requester.request(
Expand Down
12 changes: 6 additions & 6 deletions crowdin_api/api_resources/languages/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LanguagesResource(BaseResource):
Use API to get the list of all supported languages and retrieve additional details
(e.g. text direction, internal code) on specific language.

Link to documentation: https://support.crowdin.com/api/v2/#tag/Languages
Link to documentation: https://developer.crowdin.com/api/v2/#tag/Languages
"""

def get_languages_path(self, languageId: Optional[str] = None):
Expand All @@ -33,7 +33,7 @@ def list_supported_languages(
List Supported Languages.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.languages.getMany
https://developer.crowdin.com/api/v2/#operation/api.languages.getMany
"""

return self.requester.request(
Expand All @@ -57,7 +57,7 @@ def add_custom_language(
Add Custom Language.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.languages.post
https://developer.crowdin.com/api/v2/#operation/api.languages.post
"""

return self.requester.request(
Expand All @@ -80,7 +80,7 @@ def get_language(self, languageId: str):
Get Language.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.languages.get
https://developer.crowdin.com/api/v2/#operation/api.languages.get
"""

return self.requester.request(
Expand All @@ -92,7 +92,7 @@ def delete_custom_language(self, languageId: str):
Delete Custom Language.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.languages.delete
https://developer.crowdin.com/api/v2/#operation/api.languages.delete
"""

return self.requester.request(
Expand All @@ -104,7 +104,7 @@ def edit_custom_language(self, languageId: str, data: Iterable[LanguagesPatchReq
Edit Custom Language.

Link to documentation:
https://support.crowdin.com/api/v2/#operation/api.languages.patch
https://developer.crowdin.com/api/v2/#operation/api.languages.patch
"""

return self.requester.request(
Expand Down
Loading