easy-resources 0.5.4 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/lib/easy/resources/version.rb +1 -1
  3. data/spec/dummy/Rakefile +6 -0
  4. data/spec/dummy/app/assets/config/manifest.js +3 -0
  5. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  6. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  7. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  8. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  9. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  10. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  11. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  12. data/spec/dummy/app/jobs/application_job.rb +2 -0
  13. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  14. data/spec/dummy/app/models/application_record.rb +3 -0
  15. data/spec/dummy/app/views/layouts/application.html.erb +15 -0
  16. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  17. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  18. data/spec/dummy/bin/bundle +3 -0
  19. data/spec/dummy/bin/rails +4 -0
  20. data/spec/dummy/bin/rake +4 -0
  21. data/spec/dummy/bin/setup +36 -0
  22. data/spec/dummy/bin/update +31 -0
  23. data/spec/dummy/bin/yarn +11 -0
  24. data/spec/dummy/config.ru +5 -0
  25. data/spec/dummy/config/application.rb +19 -0
  26. data/spec/dummy/config/boot.rb +5 -0
  27. data/spec/dummy/config/cable.yml +10 -0
  28. data/spec/dummy/config/database.yml +25 -0
  29. data/spec/dummy/config/environment.rb +5 -0
  30. data/spec/dummy/config/environments/development.rb +61 -0
  31. data/spec/dummy/config/environments/production.rb +94 -0
  32. data/spec/dummy/config/environments/test.rb +46 -0
  33. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  34. data/spec/dummy/config/initializers/assets.rb +14 -0
  35. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
  37. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  38. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  39. data/spec/dummy/config/initializers/inflections.rb +16 -0
  40. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  41. data/spec/dummy/config/initializers/new_framework_defaults_5_2.rb +38 -0
  42. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  43. data/spec/dummy/config/locales/en.yml +33 -0
  44. data/spec/dummy/config/puma.rb +34 -0
  45. data/spec/dummy/config/routes.rb +3 -0
  46. data/spec/dummy/config/spring.rb +6 -0
  47. data/spec/dummy/config/storage.yml +34 -0
  48. data/spec/dummy/db/test.sqlite3 +0 -0
  49. data/spec/dummy/log/development.log +0 -0
  50. data/spec/dummy/log/test.log +0 -0
  51. data/spec/dummy/package.json +5 -0
  52. data/spec/dummy/public/404.html +67 -0
  53. data/spec/dummy/public/422.html +67 -0
  54. data/spec/dummy/public/500.html +66 -0
  55. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  56. data/spec/dummy/public/apple-touch-icon.png +0 -0
  57. data/spec/dummy/public/favicon.ico +0 -0
  58. data/spec/easy_resources_spec.rb +8 -0
  59. data/spec/fixtures/files/easy_contact.json +71 -0
  60. data/spec/fixtures/files/easy_contact/show.xml +48 -0
  61. data/spec/fixtures/files/easy_crm_case.json +41 -0
  62. data/spec/fixtures/files/easy_crm_case/show.xml +36 -0
  63. data/spec/fixtures/files/easy_server/index.xml +36 -0
  64. data/spec/fixtures/files/easy_server/show.xml +33 -0
  65. data/spec/fixtures/files/easy_web_application/index.xml +32 -0
  66. data/spec/fixtures/files/easy_web_application/show.json +54 -0
  67. data/spec/fixtures/files/easy_web_application/show.xml +16 -0
  68. data/spec/fixtures/files/easy_web_application/with_custom_fields.xml +0 -0
  69. data/spec/fixtures/files/easy_web_application/with_easy_contact.xml +17 -0
  70. data/spec/fixtures/files/easy_web_application/with_easy_crm_case.xml +17 -0
  71. data/spec/fixtures/files/easy_web_application/with_ewaa.xml +7 -0
  72. data/spec/fixtures/files/issue.json +56 -0
  73. data/spec/fixtures/files/issue/show.xml +31 -0
  74. data/spec/fixtures/files/project.json +40 -0
  75. data/spec/fixtures/files/project/show.xml +32 -0
  76. data/spec/models/easy-resources/redmine/easy_contact_spec.rb +26 -0
  77. data/spec/models/easy-resources/redmine/easy_crm_case_spec.rb +19 -0
  78. data/spec/models/easy-resources/redmine/easy_web_application_activity_spec.rb +6 -0
  79. data/spec/models/easy-resources/redmine/easy_web_application_spec.rb +59 -0
  80. data/spec/models/easy-resources/redmine/issue_spec.rb +15 -0
  81. data/spec/models/easy-resources/redmine/project_spec.rb +11 -0
  82. data/spec/models/easy-resources/redmine/redmine_base_spec.rb +8 -0
  83. data/spec/models/easy-resources/resource_spec.rb +42 -0
  84. data/spec/spec_helper.rb +24 -0
  85. data/spec/support/active_resource.rb +57 -0
  86. data/spec/support/fixtures.rb +5 -0
  87. data/spec/support/redmine_active_resource.rb +28 -0
  88. metadata +173 -3
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
File without changes
@@ -0,0 +1,8 @@
1
+ require "easy/resources/version"
2
+
3
+ RSpec.describe Easy::Resources do
4
+ it 'has a version number' do
5
+ expect(Easy::Resources::VERSION).not_to be nil
6
+ end
7
+
8
+ end
@@ -0,0 +1,71 @@
1
+ {
2
+ "easy_contact": {
3
+ "id": 1,
4
+ "easy_contact_type": {
5
+ "id": 1,
6
+ "name": "Personal"
7
+ },
8
+ "firstname": "Darth",
9
+ "lastname": "Maul",
10
+ "assigned_to": {
11
+ "id": 65,
12
+ "name": "Lukáš Pokorný"
13
+ },
14
+ "is_global": true,
15
+ "country_code": "ME",
16
+ "custom_fields": [
17
+ {
18
+ "id": 332,
19
+ "name": "URL",
20
+ "internal_name": null,
21
+ "field_format": "text",
22
+ "value": "darth-maul.dummy.com"
23
+ },
24
+ {
25
+ "id": 144,
26
+ "name": "IČ",
27
+ "internal_name": "registration_no",
28
+ "field_format": "string",
29
+ "value": ""
30
+ },
31
+ {
32
+ "id": 66,
33
+ "name": "Ulice",
34
+ "internal_name": "easy_contacts_street",
35
+ "field_format": "string",
36
+ "value": "Iridonia 0"
37
+ },
38
+ {
39
+ "id": 195,
40
+ "name": "Account type",
41
+ "internal_name": "",
42
+ "field_format": "string",
43
+ "value": "Existing Customer"
44
+ },
45
+ {
46
+ "id": 61,
47
+ "name": "E-mail",
48
+ "internal_name": "easy_contacts_email",
49
+ "field_format": "email",
50
+ "value": "rottenfool@mailinator.com"
51
+ },
52
+ {
53
+ "id": 418,
54
+ "name": "Plan Limit",
55
+ "internal_name": null,
56
+ "field_format": "easy_computed_from_query",
57
+ "value": ""
58
+ },
59
+ {
60
+ "id": 527,
61
+ "name": "Title",
62
+ "internal_name": null,
63
+ "field_format": "list",
64
+ "value": "Mr."
65
+ }
66
+ ],
67
+ "created_on": "2013-08-19T12:21:48Z",
68
+ "updated_on": "2018-01-26T17:47:43Z",
69
+ "author_note": "\u003cp\u003eDarth Maul byl \u003ca href=\"http://cs.starwars.wikia.com/wiki/Zabrak\" title=\"Zabrak\"\u003ezabrak\u003c/a\u003e a narodil se na planetě \u003ca href=\"http://cs.starwars.wikia.com/wiki/Iridonia\" title=\"Iridonia\"\u003eIridonia\u003c/a\u003e. Když byl ještě malý chlapec, nalezl ho tam \u003ca href=\"http://cs.starwars.wikia.com/wiki/Sithsk%C3%BD_Lord\" title=\"Sithský Lord\"\u003esithský lord\u003c/a\u003e \u003ca href=\"http://cs.starwars.wikia.com/wiki/Darth_Sidious\" title=\"Darth Sidious\"\u003eDarth Sidious\u003c/a\u003e a rozhodl se z něj vycvičit \u003ca href=\"http://cs.starwars.wikia.com/wiki/Sith\" title=\"Sith\"\u003eSitha\u003c/a\u003e. Sidious vychovával Maula velice tvrdě a nic neodpouštěl, proto ho časem naučil \"slepé poslušnosti\" a Darth Maul byl \u003ca href=\"http://cs.starwars.wikia.com/wiki/Zabrak\" title=\"Zabrak\"\u003ezabrak\u003c/a\u003e mnohem mocnejši než jakykoliv jiny jeho druhu včetně \u003ca href=\"http://cs.starwars.wikia.com/wiki/Savage_Opress\" title=\"Savage Opress\"\u003eSavage Opress\u003c/a\u003e narodil se na planetě \u003ca href=\"http://cs.starwars.wikia.com/wiki/Iridonia\" title=\"Iridonia\"\u003eIridonia\u003c/a\u003e. Když mu v ranném veku přibyli síly splnil ocekavajici zkoušky jako\u003ca href=\"http://cs.starwars.wikia.com/wiki/Savage_Opress\" title=\"Savage Opress\"\u003eSavage Opress\u003c/a\u003e vzal si ho \u003ca href=\"http://cs.starwars.wikia.com/wiki/Sithsk%C3%BD_Lord\" title=\"Sithský Lord\"\u003esithský lord\u003c/a\u003e \u003ca href=\"http://cs.starwars.wikia.com/wiki/Darth_Sidious\" title=\"Darth Sidious\"\u003eDarth Sidious\u003c/a\u003e a rozhodl se z něj vycvičit \u003ca href=\"http://cs.starwars.wikia.com/wiki/Sith\" title=\"Sith\"\u003eSitha\u003c/a\u003e . Sidious vychovával Maula velice tvrdě a nic neodpouštěl, proto byl Maul stejne nekompromisní i pri bitvach a naučil se tak \"poslušnosti,,−Maul plnil všechna jeho přání. Díky tomu si také (jako jeden z mála Sithů) neměl žádné ambice pro svržení mistra a vládou nad Sithy. Darth Maul je považován za jednoho z nejlepších šeřmířů všech dob.  \u003c/p\u003e\r\n"
70
+ }
71
+ }
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <easy_contact>
3
+ <id>315</id>
4
+ <easy_contact_type id="1">
5
+ <name>Personal</name>
6
+ </easy_contact_type>
7
+ <firstname>Darth</firstname>
8
+ <lastname>Maul</lastname>
9
+ <assigned_to id="65" name="Lukáš Pokorný"/>
10
+ <is_global>true</is_global>
11
+ <eu_member>false</eu_member>
12
+ <country_code>ME</country_code>
13
+ <custom_fields type="array">
14
+ <custom_field id="507" name="Language" internal_name="" field_format="easy_computed_from_query">
15
+ <value></value>
16
+ </custom_field>
17
+ <custom_field id="517" name="Social Network" internal_name="" field_format="link">
18
+ <value></value>
19
+ </custom_field>
20
+ <custom_field id="527" name="Title" internal_name="" field_format="list">
21
+ <value>Mr.</value>
22
+ </custom_field>
23
+ <custom_field id="547" name="Valid phone number?" internal_name="" field_format="bool">
24
+ <value>0</value>
25
+ </custom_field>
26
+ </custom_fields>
27
+ <created_on>2013-08-19T12:21:48Z</created_on>
28
+ <updated_on>2018-05-14T09:04:39Z</updated_on>
29
+ <author_note>&lt;p&gt;Darth Maul byl &lt;a href="http://cs.starwars.wikia.com/wiki/Zabrak" title="Zabrak"&gt;zabrak&lt;/a&gt; a
30
+ narodil se na planetě &lt;a href="http://cs.starwars.wikia.com/wiki/Iridonia" title="Iridonia"&gt;Iridonia&lt;/a&gt;.
31
+ Když byl ještě malý chlapec, nalezl ho tam &lt;a href="http://cs.starwars.wikia.com/wiki/Sithsk%C3%BD_Lord"
32
+ title="Sithský Lord"&gt;sithský lord&lt;/a&gt; &lt;a href="http://cs.starwars.wikia.com/wiki/Darth_Sidious"
33
+ title="Darth Sidious"&gt;Darth Sidious&lt;/a&gt; a rozhodl se z něj vycvičit &lt;a
34
+ href="http://cs.starwars.wikia.com/wiki/Sith" title="Sith"&gt;Sitha&lt;/a&gt;. Sidious vychovával Maula velice tvrdě
35
+ a nic neodpouštěl, proto ho časem naučil "slepé poslušnosti" a Darth Maul byl &lt;a
36
+ href="http://cs.starwars.wikia.com/wiki/Zabrak" title="Zabrak"&gt;zabrak&lt;/a&gt; mnohem mocnejši než jakykoliv
37
+ jiny jeho druhu včetně &lt;a href="http://cs.starwars.wikia.com/wiki/Savage_Opress" title="Savage Opress"&gt;Savage
38
+ Opress&lt;/a&gt; narodil se na planetě &lt;a href="http://cs.starwars.wikia.com/wiki/Iridonia" title="Iridonia"&gt;Iridonia&lt;/a&gt;.
39
+ Když mu v ranném veku přibyli síly splnil ocekavajici zkoušky jako&lt;a
40
+ href="http://cs.starwars.wikia.com/wiki/Savage_Opress" title="Savage Opress"&gt;Savage Opress&lt;/a&gt; vzal si ho &lt;a
41
+ href="http://cs.starwars.wikia.com/wiki/Sithsk%C3%BD_Lord" title="Sithský Lord"&gt;sithský lord&lt;/a&gt; &lt;a
42
+ href="http://cs.starwars.wikia.com/wiki/Darth_Sidious" title="Darth Sidious"&gt;Darth Sidious&lt;/a&gt; a rozhodl se
43
+ z něj vycvičit &lt;a href="http://cs.starwars.wikia.com/wiki/Sith" title="Sith"&gt;Sitha&lt;/a&gt; . Sidious
44
+ vychovával Maula velice tvrdě a nic neodpouštěl, proto byl Maul stejne nekompromisní i pri bitvach a naučil se tak
45
+ "poslušnosti,,−Maul plnil všechna jeho přání. Díky tomu si také (jako jeden z mála Sithů) neměl žádné ambice pro
46
+ svržení mistra a vládou nad Sithy. Darth Maul je považován za jednoho z nejlepších šeřmířů všech dob.  &lt;/p&gt;
47
+ </author_note>
48
+ </easy_contact>
@@ -0,0 +1,41 @@
1
+ {
2
+ "easy_crm_case": {
3
+ "id": 6,
4
+ "name": "New lasers",
5
+ "description": "\u003cp\u003eGuys at Skynet are preparing something big, they need some BCS-4400 lasers.\u003c/p\u003e\r\n\r\n\u003cp\u003eAs usual, it will take a couple of months, but it already looks promising.\u003c/p\u003e\r\n\r\n\u003cp\u003ePreparing quotation.\u003c/p\u003e\r\n",
6
+ "project": {
7
+ "id": 48,
8
+ "name": "CRM"
9
+ },
10
+ "author": {
11
+ "id": 45,
12
+ "name": "Saul Sales Rep"
13
+ },
14
+ "assigned_to": {
15
+ "id": 45,
16
+ "name": "Saul Sales Rep"
17
+ },
18
+ "main_easy_contact": {
19
+ "id": 1,
20
+ "firstname": "Darth",
21
+ "lastname": "Maul"
22
+ },
23
+ "easy_crm_case_status_id": 2,
24
+ "contract_date": "2018-04-08",
25
+ "price": 360000.0,
26
+ "currency": "EUR",
27
+ "created_at": "2017-12-04T15:55:40Z",
28
+ "updated_at": "2017-12-01T22:19:14Z",
29
+ "next_action": "2018-02-17",
30
+ "custom_fields": [
31
+ {
32
+ "id": 25,
33
+ "name": "Type of product",
34
+ "internal_name": null,
35
+ "field_format": "list",
36
+ "value": "Manufacture"
37
+ }
38
+ ],
39
+ "easy_crm_case_items": []
40
+ }
41
+ }
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <easy_crm_case>
3
+ <id>3</id>
4
+ <name>Social portal on Joomla</name>
5
+ <easy_crm_case_status_id>1</easy_crm_case_status_id>
6
+ <easy_crm_case_status id="1" name="Lead"/>
7
+ <assigned_to id="34" name="Jerry Account Manager"/>
8
+ <author id="5" name="Manager Manager"/>
9
+ <project id="17" name="Business expansion"/>
10
+ <main_easy_contact id="15" name="Easy Software Ltd"/>
11
+ <description></description>
12
+ <contract_date>2018-06-11</contract_date>
13
+ <email>telco@erm.com</email>
14
+ <telephone>32332</telephone>
15
+ <price>24400.0</price>
16
+ <currency>EUR</currency>
17
+ <need_reaction>false</need_reaction>
18
+ <is_canceled>false</is_canceled>
19
+ <is_finished>false</is_finished>
20
+ <lead_value/>
21
+ <probability/>
22
+ <created_at>2016-10-27T13:56:23Z</created_at>
23
+ <updated_at>2017-11-29T09:10:26Z</updated_at>
24
+ <custom_fields type="array">
25
+ <custom_field id="71" name="Lead source" internal_name="" field_format="list">
26
+ <value></value>
27
+ </custom_field>
28
+ <custom_field id="32" name="Product line" internal_name="" field_format="list">
29
+ <value>Product 2</value>
30
+ </custom_field>
31
+ <custom_field id="70" name="Product group" internal_name="" field_format="list">
32
+ <value></value>
33
+ </custom_field>
34
+ </custom_fields>
35
+ <easy_crm_case_items type="array"></easy_crm_case_items>
36
+ </easy_crm_case>
@@ -0,0 +1,36 @@
1
+ <easy_servers total_count="1" offset="0" limit="25" type="array">
2
+ <easy_server>
3
+ <id>1</id>
4
+ <type>EasyServers::Application</type>
5
+ <server_type>internal</server_type>
6
+ <server_status>running</server_status>
7
+ <ip_address>512.123.654.78</ip_address>
8
+ <host_name>muj.server.in</host_name>
9
+ <timezone>Europe</timezone>
10
+ <ruby_version/>
11
+ <custom_config/>
12
+ <api_key>secret-key</api_key>
13
+ <cpu_count/>
14
+ <ram_size/>
15
+ <hdd_size/>
16
+ <graph_uptime/>
17
+ <graph_mem/>
18
+ <graph_load/>
19
+ <hardware id="2" host_name="some.hw.server"/>
20
+ <easy_data_center>
21
+ <id>1</id>
22
+ <name>Europe 1</name>
23
+ <region>Europe</region>
24
+ <created_at>2016-10-11T12:59:16Z</created_at>
25
+ <updated_at>2017-12-18T11:34:00Z</updated_at>
26
+ </easy_data_center>
27
+ <created_at>2017-04-18T10:13:49Z</created_at>
28
+ <updated_at>2018-02-20T08:46:42Z</updated_at>
29
+ <custom_fields type="array">
30
+ <custom_field id="2" name="Managed by" internal_name="" field_format="list">
31
+ <value>Manager</value>
32
+ </custom_field>
33
+ </custom_fields>
34
+ </easy_server>
35
+
36
+ </easy_servers>
@@ -0,0 +1,33 @@
1
+ <easy_server>
2
+ <id>1</id>
3
+ <type>EasyServers::Application</type>
4
+ <server_type>internal</server_type>
5
+ <server_status>running</server_status>
6
+ <ip_address>512.123.654.78</ip_address>
7
+ <host_name>muj.server.in</host_name>
8
+ <timezone>Europe</timezone>
9
+ <ruby_version/>
10
+ <custom_config/>
11
+ <api_key>secret-key</api_key>
12
+ <cpu_count/>
13
+ <ram_size/>
14
+ <hdd_size/>
15
+ <graph_uptime/>
16
+ <graph_mem/>
17
+ <graph_load/>
18
+ <hardware id="2" host_name="some.hw.server"/>
19
+ <easy_data_center>
20
+ <id>1</id>
21
+ <name>Europe 1</name>
22
+ <region>Europe</region>
23
+ <created_at>2016-10-11T12:59:16Z</created_at>
24
+ <updated_at>2017-12-18T11:34:00Z</updated_at>
25
+ </easy_data_center>
26
+ <created_at>2017-04-18T10:13:49Z</created_at>
27
+ <updated_at>2018-02-20T08:46:42Z</updated_at>
28
+ <custom_fields type="array">
29
+ <custom_field id="2" name="Managed by" internal_name="" field_format="list">
30
+ <value>Manager</value>
31
+ </custom_field>
32
+ </custom_fields>
33
+ </easy_server>
@@ -0,0 +1,32 @@
1
+ <easy_web_applications total_count="4" offset="0" limit="2" type="array">
2
+ <easy_web_application>
3
+ <id>6</id>
4
+ <easy_external_id>4</easy_external_id>
5
+ <application_type>trial</application_type>
6
+ <url>lukas8.easyproject.cz</url>
7
+ <status>running</status>
8
+ <monitored>false</monitored>
9
+ <version>2017.1.3 (03.02)</version>
10
+ <easy_server id="22" host_name="bigdemo.cz" type="application" server_type="bigdemo"/>
11
+ <author id="14" name="Anonymní"/>
12
+ <internal_user_limit>0</internal_user_limit>
13
+ <git_repository type="string">git@git.easy.cz:package.git</git_repository>
14
+ <created_at>2018-03-22T09:10:47Z</created_at>
15
+ <updated_at>2018-05-24T10:55:28Z</updated_at>
16
+ </easy_web_application>
17
+ <easy_web_application>
18
+ <id>4</id>
19
+ <easy_external_id>5</easy_external_id>
20
+ <application_type>trial</application_type>
21
+ <url>lukas3.easyproject.cz</url>
22
+ <status>stopped</status>
23
+ <monitored>false</monitored>
24
+ <version>2017.1.3 (03.02)</version>
25
+ <easy_server id="22" host_name="bigdemo.cz" type="application" server_type="bigdemo"/>
26
+ <author id="14" name="Anonymní"/>
27
+ <internal_user_limit>0</internal_user_limit>
28
+ <git_repository type="string">git@git.easy.cz:package.git</git_repository>
29
+ <created_at>2018-03-22T09:10:47Z</created_at>
30
+ <updated_at>2018-05-24T10:55:28Z</updated_at>
31
+ </easy_web_application>
32
+ </easy_web_applications>
@@ -0,0 +1,54 @@
1
+ {
2
+ "easy_web_application": {
3
+ "id": 1,
4
+ "easy_external_id": "nvgl32mug4",
5
+ "application_type": "client",
6
+ "url": "client.dummy.com",
7
+ "status": "running",
8
+ "version": "0.1",
9
+ "easy_server": {
10
+ "id": 1,
11
+ "host_name": "client1.dummy.easy2.cloud",
12
+ "type": "application",
13
+ "server_type": "test"
14
+ },
15
+ "author": {
16
+ "id": 1,
17
+ "name": "Lukáš"
18
+ },
19
+ "internal_user_limit": 0,
20
+ "external_user_limit": 0,
21
+ "active_project_limit": 0,
22
+ "last_login_at": "2017-10-17T10:13:58Z",
23
+ "logins_count_in_last_week": 0,
24
+ "last_activity_at": "2017-10-17T10:13:58Z",
25
+ "activities_count_in_last_week": 0,
26
+ "db_url": "https://client.dummy.com/dump.sql.gz",
27
+ "db_api_key": "df1a9c641b628a48d8800e8b75bb1f2",
28
+ "git_repository": "git@git.easy.cz:easyproject_com/stable.git",
29
+ "git_branch": "master",
30
+ "files_url": "https://client.dummy.com/files.tar.gz",
31
+ "callback_url": "https://test.dummy.com/easy_web_applications/1/moved.json",
32
+ "move_to_url": "client.product.com",
33
+ "backup_files_id": "job-backup.server.2017-11-09_02.25.03_48",
34
+ "backup_db_id": "c4d46d5c462d1e7880901e43489cf0c1",
35
+ "activated_plugins": [
36
+ "plugin1",
37
+ "plugin2",
38
+ "plugin3"
39
+ ],
40
+ "previous_status": "stopped",
41
+ "created_at": "2017-01-02T17:52:59Z",
42
+ "updated_at": "2017-11-24T00:18:16Z",
43
+ "custom_fields": [
44
+ {
45
+ "id": 1,
46
+ "name": "Custom Field 1",
47
+ "internal_name": "internal_cf",
48
+ "field_format": "bool",
49
+ "value": "0"
50
+ }
51
+ ],
52
+ "plugins": []
53
+ }
54
+ }