ruby-lokalise-api 2.10.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODE_OF_CONDUCT.md +1 -1
  3. data/.github/CONTRIBUTING.md +2 -2
  4. data/CHANGELOG.md +23 -0
  5. data/README.md +275 -180
  6. data/lib/ruby-lokalise-api.rb +2 -0
  7. data/lib/ruby-lokalise-api/client.rb +1 -0
  8. data/lib/ruby-lokalise-api/collections/base.rb +3 -2
  9. data/lib/ruby-lokalise-api/collections/queued_process.rb +15 -0
  10. data/lib/ruby-lokalise-api/data/attributes.json +12 -1
  11. data/lib/ruby-lokalise-api/resources/base.rb +33 -17
  12. data/lib/ruby-lokalise-api/resources/branch.rb +1 -1
  13. data/lib/ruby-lokalise-api/resources/contributor.rb +1 -1
  14. data/lib/ruby-lokalise-api/resources/custom_translation_status.rb +1 -1
  15. data/lib/ruby-lokalise-api/resources/file.rb +4 -1
  16. data/lib/ruby-lokalise-api/resources/key.rb +1 -1
  17. data/lib/ruby-lokalise-api/resources/key_comment.rb +1 -1
  18. data/lib/ruby-lokalise-api/resources/order.rb +2 -0
  19. data/lib/ruby-lokalise-api/resources/payment_card.rb +1 -1
  20. data/lib/ruby-lokalise-api/resources/project.rb +1 -1
  21. data/lib/ruby-lokalise-api/resources/queued_process.rb +18 -0
  22. data/lib/ruby-lokalise-api/resources/screenshot.rb +1 -1
  23. data/lib/ruby-lokalise-api/resources/snapshot.rb +3 -1
  24. data/lib/ruby-lokalise-api/resources/task.rb +1 -1
  25. data/lib/ruby-lokalise-api/resources/team_user.rb +1 -1
  26. data/lib/ruby-lokalise-api/resources/translation.rb +1 -1
  27. data/lib/ruby-lokalise-api/resources/webhook.rb +1 -1
  28. data/lib/ruby-lokalise-api/rest/comments.rb +5 -5
  29. data/lib/ruby-lokalise-api/rest/contributors.rb +5 -5
  30. data/lib/ruby-lokalise-api/rest/custom_translation_statuses.rb +6 -6
  31. data/lib/ruby-lokalise-api/rest/files.rb +3 -3
  32. data/lib/ruby-lokalise-api/rest/keys.rb +7 -7
  33. data/lib/ruby-lokalise-api/rest/languages.rb +6 -6
  34. data/lib/ruby-lokalise-api/rest/payment_cards.rb +3 -3
  35. data/lib/ruby-lokalise-api/rest/projects.rb +6 -6
  36. data/lib/ruby-lokalise-api/rest/queued_processes.rb +26 -0
  37. data/lib/ruby-lokalise-api/rest/screenshots.rb +5 -5
  38. data/lib/ruby-lokalise-api/rest/snapshots.rb +4 -4
  39. data/lib/ruby-lokalise-api/rest/tasks.rb +5 -5
  40. data/lib/ruby-lokalise-api/rest/team_users.rb +4 -4
  41. data/lib/ruby-lokalise-api/rest/teams.rb +1 -1
  42. data/lib/ruby-lokalise-api/rest/translation_providers.rb +2 -2
  43. data/lib/ruby-lokalise-api/rest/translations.rb +3 -3
  44. data/lib/ruby-lokalise-api/rest/webhooks.rb +5 -5
  45. data/lib/ruby-lokalise-api/version.rb +1 -1
  46. data/ruby-lokalise-api.gemspec +1 -2
  47. data/spec/lib/ruby-lokalise-api/error_spec.rb +8 -0
  48. data/spec/lib/ruby-lokalise-api/rest/branches_spec.rb +12 -0
  49. data/spec/lib/ruby-lokalise-api/rest/comments_spec.rb +12 -0
  50. data/spec/lib/ruby-lokalise-api/rest/contributors_spec.rb +12 -0
  51. data/spec/lib/ruby-lokalise-api/rest/custom_translation_statuses_spec.rb +12 -0
  52. data/spec/lib/ruby-lokalise-api/rest/files_spec.rb +17 -9
  53. data/spec/lib/ruby-lokalise-api/rest/keys_spec.rb +12 -0
  54. data/spec/lib/ruby-lokalise-api/rest/orders_spec.rb +12 -0
  55. data/spec/lib/ruby-lokalise-api/rest/payment_cards_spec.rb +12 -0
  56. data/spec/lib/ruby-lokalise-api/rest/projects_spec.rb +12 -0
  57. data/spec/lib/ruby-lokalise-api/rest/queued_processes_spec.rb +58 -0
  58. data/spec/lib/ruby-lokalise-api/rest/screenshots_spec.rb +12 -0
  59. data/spec/lib/ruby-lokalise-api/rest/snapshots_spec.rb +25 -0
  60. data/spec/lib/ruby-lokalise-api/rest/tasks_spec.rb +12 -0
  61. data/spec/lib/ruby-lokalise-api/rest/team_users_spec.rb +12 -0
  62. data/spec/lib/ruby-lokalise-api/rest/translations_spec.rb +12 -0
  63. data/spec/lib/ruby-lokalise-api/rest/webhooks_spec.rb +13 -0
  64. metadata +11 -6
@@ -4,7 +4,7 @@ module Lokalise
4
4
  class Client
5
5
  # Returns all translation statuses for the given project
6
6
  #
7
- # @see https://lokalise.co/api2docs/ruby/#transition-list-all-custom-translation-statuses-get
7
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-custom-translation-statuses-get
8
8
  # @return [Lokalise::Collection::CustomTranslationStatus<Lokalise::Resources::CustomTranslationStatus>]
9
9
  # @param project_id [String]
10
10
  # @param params [Hash]
@@ -14,7 +14,7 @@ module Lokalise
14
14
 
15
15
  # Returns a single translation status for the given project
16
16
  #
17
- # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-a-custom-translation-status-get
17
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-custom-translation-status-get
18
18
  # @return [Lokalise::Resources::CustomTranslationStatus]
19
19
  # @param project_id [String]
20
20
  # @param status_id [String, Integer]
@@ -24,7 +24,7 @@ module Lokalise
24
24
 
25
25
  # Creates translation status inside the given project
26
26
  #
27
- # @see https://lokalise.co/api2docs/ruby/#transition-create-a-custom-translation-status-post
27
+ # @see https://app.lokalise.com/api2docs/curl/#transition-create-a-custom-translation-status-post
28
28
  # @return Lokalise::Resources::CustomTranslationStatus
29
29
  # @param project_id [String]
30
30
  # @param params Hash
@@ -34,7 +34,7 @@ module Lokalise
34
34
 
35
35
  # Updates the given translation status inside the given project
36
36
  #
37
- # @see https://lokalise.co/api2docs/ruby/#transition-update-a-custom-translation-status-put
37
+ # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-custom-translation-status-put
38
38
  # @return [Lokalise::Resources::CustomTranslationStatus]
39
39
  # @param project_id [String]
40
40
  # @param status_id [String, Integer]
@@ -45,7 +45,7 @@ module Lokalise
45
45
 
46
46
  # Deletes translation status inside the given project
47
47
  #
48
- # @see https://lokalise.co/api2docs/ruby/#transition-delete-a-custom-translation-status-delete
48
+ # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-custom-translation-status-delete
49
49
  # @return [Hash]
50
50
  # @param project_id [String]
51
51
  # @param status_id [String, Integer]
@@ -55,7 +55,7 @@ module Lokalise
55
55
 
56
56
  # Returns an array of available colors that can be assigned to custom translation statuses
57
57
  #
58
- # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-available-colors-for-custom-translation-statuses-get
58
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-available-colors-for-custom-translation-statuses-get
59
59
  # @return [Array]
60
60
  # @param project_id [String]
61
61
  def translation_status_colors(project_id)
@@ -4,7 +4,7 @@ module Lokalise
4
4
  class Client
5
5
  # Returns all translation files for the given project
6
6
  #
7
- # @see https://lokalise.co/api2docs/ruby/#transition-list-all-files-get
7
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-files-get
8
8
  # @return [Lokalise::Collection::File<Lokalise::Resources::File>]
9
9
  # @param project_id [String]
10
10
  # @param params [Hash]
@@ -14,7 +14,7 @@ module Lokalise
14
14
 
15
15
  # Exports translation files as .zip bundle, uploads them to Amazon S3 and returns a URL to the generated bundle. The URL is valid for a year
16
16
  #
17
- # @see https://lokalise.co/api2docs/ruby/#transition-download-files-post
17
+ # @see https://app.lokalise.com/api2docs/curl/#transition-download-files-post
18
18
  # @return [Hash]
19
19
  # @param project_id [String]
20
20
  # @param params [Hash]
@@ -24,7 +24,7 @@ module Lokalise
24
24
 
25
25
  # Imports translation file to the given project. File data must base64-encoded
26
26
  #
27
- # @see https://lokalise.co/api2docs/ruby/#transition-upload-a-file-post
27
+ # @see https://app.lokalise.com/api2docs/curl/#transition-upload-a-file-post
28
28
  # @return [Hash]
29
29
  # @param project_id [String]
30
30
  # @param params [Hash]
@@ -4,7 +4,7 @@ module Lokalise
4
4
  class Client
5
5
  # Returns all translation keys for the given project
6
6
  #
7
- # @see https://lokalise.co/api2docs/ruby/#transition-list-all-keys-get
7
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-keys-get
8
8
  # @return [Lokalise::Collection::Key<Lokalise::Resources::Key>]
9
9
  # @param project_id [String]
10
10
  # @param params [Hash]
@@ -14,7 +14,7 @@ module Lokalise
14
14
 
15
15
  # Returns a single translation key for the given project
16
16
  #
17
- # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-a-key-get
17
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-key-get
18
18
  # @return [Lokalise::Resources::Key]
19
19
  # @param project_id [String]
20
20
  # @param key_id [String, Integer]
@@ -25,7 +25,7 @@ module Lokalise
25
25
 
26
26
  # Creates one or more translation keys for the given project
27
27
  #
28
- # @see https://lokalise.co/api2docs/ruby/#transition-create-keys-post
28
+ # @see https://app.lokalise.com/api2docs/curl/#transition-create-keys-post
29
29
  # @return [Lokalise::Collection::Key<Lokalise::Resources::Key>]
30
30
  # @param project_id [String]
31
31
  # @param params [Hash, Array<Hash>]
@@ -35,7 +35,7 @@ module Lokalise
35
35
 
36
36
  # Updates translation key for the given project
37
37
  #
38
- # @see https://lokalise.co/api2docs/ruby/#transition-update-a-key-put
38
+ # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-key-put
39
39
  # @return [Lokalise::Resources::Key]
40
40
  # @param project_id [String]
41
41
  # @param key_id [String, Integer]
@@ -46,7 +46,7 @@ module Lokalise
46
46
 
47
47
  # Updates one or multiple translation keys for the given project
48
48
  #
49
- # @see https://lokalise.co/api2docs/ruby/#transition-bulk-update-put
49
+ # @see https://app.lokalise.com/api2docs/curl/#transition-bulk-update-put
50
50
  # @return [Lokalise::Collection::Key<Lokalise::Resources::Key>]
51
51
  # @param project_id [String]
52
52
  # @param params [Hash, Array<Hash>]
@@ -56,7 +56,7 @@ module Lokalise
56
56
 
57
57
  # Deletes translation key for the given project
58
58
  #
59
- # @see https://lokalise.co/api2docs/ruby/#transition-delete-a-key-delete
59
+ # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-key-delete
60
60
  # @return [Hash]
61
61
  # @param project_id [String]
62
62
  # @param key_id [String, Integer]
@@ -66,7 +66,7 @@ module Lokalise
66
66
 
67
67
  # Deletes one or multiple translation keys for the given project
68
68
  #
69
- # @see https://lokalise.co/api2docs/ruby/#transition-delete-multiple-keys-delete
69
+ # @see https://app.lokalise.com/api2docs/curl/#transition-delete-multiple-keys-delete
70
70
  # @return [Hash]
71
71
  # @param project_id [String]
72
72
  # @param key_ids [String, Integer, Array<String>, Array<Integer>]
@@ -4,7 +4,7 @@ module Lokalise
4
4
  class Client
5
5
  # Returns all languages supported by Lokalise
6
6
  #
7
- # @see https://lokalise.co/api2docs/ruby/#transition-list-system-languages-get
7
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-system-languages-get
8
8
  # @return [Lokalise::Collection::SystemLanguage<Lokalise::Resources::SystemLanguage>]
9
9
  # @param params [Hash]
10
10
  def system_languages(params = {})
@@ -13,7 +13,7 @@ module Lokalise
13
13
 
14
14
  # Returns all languages for the given project
15
15
  #
16
- # @see https://lokalise.co/api2docs/ruby/#transition-list-project-languages-get
16
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-project-languages-get
17
17
  # @return [Lokalise::Collection::ProjectLanguage<Lokalise::Resources::ProjectLanguage>]
18
18
  # @param project_id [String, Integer]
19
19
  # @param params [Hash]
@@ -23,7 +23,7 @@ module Lokalise
23
23
 
24
24
  # Returns a single language for the given project
25
25
  #
26
- # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-a-language-get
26
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-language-get
27
27
  # @return [Lokalise::Resources::ProjectLanguage]
28
28
  # @param project_id [String]
29
29
  # @param language_id [String, Integer]
@@ -33,7 +33,7 @@ module Lokalise
33
33
 
34
34
  # Creates one or more language for the given project
35
35
  #
36
- # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-a-language-get
36
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-language-get
37
37
  # @return [Lokalise::Collection::ProjectLanguage<Lokalise::Resources::ProjectLanguage>]
38
38
  # @param project_id [String]
39
39
  # @param params [Hash]
@@ -43,7 +43,7 @@ module Lokalise
43
43
 
44
44
  # Updates language for the given project
45
45
  #
46
- # @see https://lokalise.co/api2docs/ruby/#transition-update-a-language-put
46
+ # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-language-put
47
47
  # @return [Lokalise::Resources::ProjectLanguage]
48
48
  # @param project_id [String]
49
49
  # @param language_id [String, Integer]
@@ -54,7 +54,7 @@ module Lokalise
54
54
 
55
55
  # Deletes language for the given project
56
56
  #
57
- # @see https://lokalise.co/api2docs/ruby/#transition-delete-a-language-delete
57
+ # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-language-delete
58
58
  # @return [Hash]
59
59
  # @param project_id [String]
60
60
  # @param language_id [String, Integer]
@@ -4,7 +4,7 @@ module Lokalise
4
4
  class Client
5
5
  # Returns all payment cards available to the user authorized with the API token
6
6
  #
7
- # @see https://lokalise.co/api2docs/ruby/#transition-list-all-cards-get
7
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-cards-get
8
8
  # @return [Lokalise::Collection::PaymentCard<Lokalise::Resources::PaymentCard>]
9
9
  # @param params [Hash]
10
10
  def payment_cards(params = {})
@@ -13,7 +13,7 @@ module Lokalise
13
13
 
14
14
  # Returns a single payment card
15
15
  #
16
- # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-a-card-get
16
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-card-get
17
17
  # @return [Lokalise::Resources::PaymentCard]
18
18
  # @param card_id [String, Integer]
19
19
  def payment_card(card_id)
@@ -31,7 +31,7 @@ module Lokalise
31
31
 
32
32
  # Deletes the payment card
33
33
  #
34
- # @see https://lokalise.co/api2docs/ruby/#transition-delete-a-card-delete
34
+ # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-card-delete
35
35
  # @return [Hash]
36
36
  # @param card_id [String, Integer]
37
37
  def destroy_payment_card(card_id)
@@ -4,7 +4,7 @@ module Lokalise
4
4
  class Client
5
5
  # Returns all projects available to the user authorized with the API token
6
6
  #
7
- # @see https://lokalise.co/api2docs/ruby/#transition-list-all-projects-get
7
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-projects-get
8
8
  # @return [Lokalise::Collection::Project<Lokalise::Resources::Project>]
9
9
  # @param params [Hash]
10
10
  def projects(params = {})
@@ -13,7 +13,7 @@ module Lokalise
13
13
 
14
14
  # Returns a single project
15
15
  #
16
- # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-a-project-get
16
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-project-get
17
17
  # @return [Lokalise::Resources::Project]
18
18
  # @param project_id [String, Integer]
19
19
  def project(project_id)
@@ -22,7 +22,7 @@ module Lokalise
22
22
 
23
23
  # Creates project
24
24
  #
25
- # @see https://lokalise.co/api2docs/ruby/#transition-create-a-project-post
25
+ # @see https://app.lokalise.com/api2docs/curl/#transition-create-a-project-post
26
26
  # @return [Lokalise::Resources::Project]
27
27
  # @param params [Hash]
28
28
  def create_project(params)
@@ -31,7 +31,7 @@ module Lokalise
31
31
 
32
32
  # Updates project
33
33
  #
34
- # @see https://lokalise.co/api2docs/ruby/#transition-update-a-project-put
34
+ # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-project-put
35
35
  # @return [Lokalise::Resources::Project]
36
36
  # @param project_id [String, Integer]
37
37
  # @param params [Hash]
@@ -41,7 +41,7 @@ module Lokalise
41
41
 
42
42
  # Deletes all keys and translations from the project
43
43
  #
44
- # @see https://lokalise.co/api2docs/ruby/#transition-empty-a-project-put
44
+ # @see https://app.lokalise.com/api2docs/curl/#transition-empty-a-project-put
45
45
  # @return [Hash]
46
46
  # @param project_id [String, Integer]
47
47
  def empty_project(project_id)
@@ -50,7 +50,7 @@ module Lokalise
50
50
 
51
51
  # Deletes the project
52
52
  #
53
- # @see https://lokalise.co/api2docs/ruby/#transition-delete-a-project-delete
53
+ # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-project-delete
54
54
  # @return [Hash]
55
55
  # @param project_id [String, Integer]
56
56
  def destroy_project(project_id)
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lokalise
4
+ class Client
5
+ # Returns all queued processes for the given project
6
+ #
7
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-processes-get
8
+ # @return [Lokalise::Collection::QueuedProcess<Lokalise::Resources::QueuedProcess>]
9
+ # @param project_id [String]
10
+ # @param params [Hash]
11
+ def queued_processes(project_id, params = {})
12
+ c_r Lokalise::Collections::QueuedProcess, :all, project_id, params
13
+ end
14
+
15
+ # Returns a queued process for the given project
16
+ #
17
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-process-get
18
+ # @return [Lokalise::Resources::QueuedProcess]
19
+ # @param project_id [String]
20
+ # @param process_id [String]
21
+ def queued_process(project_id, process_id)
22
+ c_r Lokalise::Resources::QueuedProcess, :find,
23
+ [project_id, process_id]
24
+ end
25
+ end
26
+ end
@@ -4,7 +4,7 @@ module Lokalise
4
4
  class Client
5
5
  # Returns all screenshots for the given project
6
6
  #
7
- # @see https://lokalise.co/api2docs/ruby/#transition-list-all-screenshots-get
7
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-screenshots-get
8
8
  # @return [Lokalise::Collection::Screenshot<Lokalise::Resources::Screenshot>]
9
9
  # @param project_id [String]
10
10
  # @param params [Hash]
@@ -14,7 +14,7 @@ module Lokalise
14
14
 
15
15
  # Returns a single screenshot for the given project
16
16
  #
17
- # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-a-screenshot-get
17
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-screenshot-get
18
18
  # @return [Lokalise::Resources::Screenshot]
19
19
  # @param project_id [String]
20
20
  # @param screenshot_id [String, Integer]
@@ -24,7 +24,7 @@ module Lokalise
24
24
 
25
25
  # Creates one or more screenshots for the given project
26
26
  #
27
- # @see https://lokalise.co/api2docs/ruby/#transition-create-screenshots-post
27
+ # @see https://app.lokalise.com/api2docs/curl/#transition-create-screenshots-post
28
28
  # @return [Lokalise::Collection::Screenshot<Lokalise::Resources::Screenshot>]
29
29
  # @param project_id [String]
30
30
  # @param params [Hash]
@@ -34,7 +34,7 @@ module Lokalise
34
34
 
35
35
  # Updates screenshot
36
36
  #
37
- # @see https://lokalise.co/api2docs/ruby/#transition-update-a-screenshot-put
37
+ # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-screenshot-put
38
38
  # @return [Lokalise::Resources::Screenshot]
39
39
  # @param project_id [String]
40
40
  # @param screenshot_id [String, Integer]
@@ -45,7 +45,7 @@ module Lokalise
45
45
 
46
46
  # Deletes screenshot
47
47
  #
48
- # @see https://lokalise.co/api2docs/ruby/#transition-delete-a-screenshot-delete
48
+ # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-screenshot-delete
49
49
  # @return [Hash]
50
50
  # @param project_id [String]
51
51
  # @param screenshot_id [String, Integer]
@@ -4,7 +4,7 @@ module Lokalise
4
4
  class Client
5
5
  # Returns all snapshots for the given project
6
6
  #
7
- # @see https://lokalise.co/api2docs/ruby/#transition-list-all-snapshots-get
7
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-snapshots-get
8
8
  # @return [Lokalise::Collection::Snapshot<Lokalise::Resources::Snapshot>]
9
9
  # @param project_id [String]
10
10
  # @param params [Hash]
@@ -14,7 +14,7 @@ module Lokalise
14
14
 
15
15
  # Creates snapshot for the given project
16
16
  #
17
- # @see https://lokalise.co/api2docs/ruby/#transition-create-a-snapshot-post
17
+ # @see https://app.lokalise.com/api2docs/curl/#transition-create-a-snapshot-post
18
18
  # @return [Lokalise::Resources::Snapshot]
19
19
  # @param project_id [String]
20
20
  # @param params [Hash]
@@ -24,7 +24,7 @@ module Lokalise
24
24
 
25
25
  # Restore project from the given snapshot by producing project's copy
26
26
  #
27
- # @see https://lokalise.co/api2docs/ruby/#transition-restore-a-snapshot-post
27
+ # @see https://app.lokalise.com/api2docs/curl/#transition-restore-a-snapshot-post
28
28
  # @return [Lokalise::Resources::Project]
29
29
  # @param project_id [String]
30
30
  # @param snapshot_id [String, Integer]
@@ -34,7 +34,7 @@ module Lokalise
34
34
 
35
35
  # Deletes snapshot
36
36
  #
37
- # @see https://lokalise.co/api2docs/ruby/#transition-delete-a-snapshot-delete
37
+ # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-snapshot-delete
38
38
  # @return [Hash]
39
39
  # @param project_id [String]
40
40
  # @param snapshot_id [String, Integer]
@@ -4,7 +4,7 @@ module Lokalise
4
4
  class Client
5
5
  # Returns all tasks for the given project
6
6
  #
7
- # @see https://lokalise.co/api2docs/ruby/#transition-list-all-tasks-get
7
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-tasks-get
8
8
  # @return [Lokalise::Collection::Task<Lokalise::Resources::Task>]
9
9
  # @param project_id [String]
10
10
  # @param params [Hash]
@@ -14,7 +14,7 @@ module Lokalise
14
14
 
15
15
  # Returns a single task for the given project
16
16
  #
17
- # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-a-task-get
17
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-task-get
18
18
  # @return [Lokalise::Resources::Task]
19
19
  # @param project_id [String]
20
20
  # @param task_id [String, Integer]
@@ -24,7 +24,7 @@ module Lokalise
24
24
 
25
25
  # Creates task for the given project
26
26
  #
27
- # @see https://lokalise.co/api2docs/ruby/#transition-create-a-task-post
27
+ # @see https://app.lokalise.com/api2docs/curl/#transition-create-a-task-post
28
28
  # @return [Lokalise::Resources::Task]
29
29
  # @param project_id [String]
30
30
  # @param params [Hash]
@@ -34,7 +34,7 @@ module Lokalise
34
34
 
35
35
  # Updates task for the given project
36
36
  #
37
- # @see https://lokalise.co/api2docs/ruby/#transition-update-a-task-put
37
+ # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-task-put
38
38
  # @return [Lokalise::Resources::Task]
39
39
  # @param project_id [String]
40
40
  # @param task_id [String, Integer]
@@ -45,7 +45,7 @@ module Lokalise
45
45
 
46
46
  # Deletes task for the given project
47
47
  #
48
- # @see https://lokalise.co/api2docs/ruby/#transition-delete-a-task-delete
48
+ # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-task-delete
49
49
  # @return [Hash]
50
50
  # @param project_id [String]
51
51
  # @param task_id [String, Integer]
@@ -4,7 +4,7 @@ module Lokalise
4
4
  class Client
5
5
  # Returns all team users for the given team
6
6
  #
7
- # @see https://lokalise.co/api2docs/ruby/#transition-list-all-team-users-get
7
+ # @see https://app.lokalise.com/api2docs/curl/#transition-list-all-team-users-get
8
8
  # @return [Lokalise::Collection::TeamUser<Lokalise::Resources::TeamUser>]
9
9
  # @param team_id [String]
10
10
  # @param params [Hash]
@@ -14,7 +14,7 @@ module Lokalise
14
14
 
15
15
  # Returns team user from the given team
16
16
  #
17
- # @see https://lokalise.co/api2docs/ruby/#transition-retrieve-a-team-user-get
17
+ # @see https://app.lokalise.com/api2docs/curl/#transition-retrieve-a-team-user-get
18
18
  # @return [Lokalise::Resources::TeamUser]
19
19
  # @param team_id [String]
20
20
  # @param user_id [String, Integer]
@@ -24,7 +24,7 @@ module Lokalise
24
24
 
25
25
  # Updates team user for the given team
26
26
  #
27
- # @see https://lokalise.co/api2docs/ruby/#transition-update-a-team-user-put
27
+ # @see https://app.lokalise.com/api2docs/curl/#transition-update-a-team-user-put
28
28
  # @return [Lokalise::Resources::TeamUser]
29
29
  # @param team_id [String]
30
30
  # @param user_id [String, Integer]
@@ -35,7 +35,7 @@ module Lokalise
35
35
 
36
36
  # Deletes team user from the given team
37
37
  #
38
- # @see https://lokalise.co/api2docs/ruby/#transition-delete-a-team-user-delete
38
+ # @see https://app.lokalise.com/api2docs/curl/#transition-delete-a-team-user-delete
39
39
  # @return [Lokalise::Resources::TeamUser]
40
40
  # @param team_id [String]
41
41
  # @param user_id [String, Integer]