wesley-key-sdk 3.0.7 → 4.2.0

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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +168 -131
  3. data/bin/console +4 -4
  4. data/lib/swagger_petstore_open_api30/api_helper.rb +10 -0
  5. data/lib/{cypress_test_api/controllers/base_controller.rb → swagger_petstore_open_api30/apis/base_api.rb} +17 -10
  6. data/lib/swagger_petstore_open_api30/apis/pet_api.rb +287 -0
  7. data/lib/swagger_petstore_open_api30/apis/store_api.rb +131 -0
  8. data/lib/swagger_petstore_open_api30/apis/user_api.rb +233 -0
  9. data/lib/swagger_petstore_open_api30/client.rb +95 -0
  10. data/lib/{cypress_test_api → swagger_petstore_open_api30}/configuration.rb +72 -47
  11. data/lib/{cypress_test_api → swagger_petstore_open_api30}/exceptions/api_exception.rb +4 -4
  12. data/lib/swagger_petstore_open_api30/exceptions/oauth_provider_exception.rb +64 -0
  13. data/lib/swagger_petstore_open_api30/http/api_response.rb +19 -0
  14. data/lib/swagger_petstore_open_api30/http/auth/api_key.rb +52 -0
  15. data/lib/swagger_petstore_open_api30/http/auth/petstore_auth.rb +112 -0
  16. data/lib/swagger_petstore_open_api30/http/http_call_back.rb +10 -0
  17. data/lib/swagger_petstore_open_api30/http/http_method_enum.rb +10 -0
  18. data/lib/swagger_petstore_open_api30/http/http_request.rb +10 -0
  19. data/lib/swagger_petstore_open_api30/http/http_response.rb +10 -0
  20. data/lib/{cypress_test_api → swagger_petstore_open_api30}/http/proxy_settings.rb +4 -4
  21. data/lib/swagger_petstore_open_api30/logging/configuration/api_logging_configuration.rb +186 -0
  22. data/lib/swagger_petstore_open_api30/logging/sdk_logger.rb +17 -0
  23. data/lib/swagger_petstore_open_api30/models/api_response.rb +118 -0
  24. data/lib/{cypress_test_api → swagger_petstore_open_api30}/models/base_model.rb +4 -4
  25. data/lib/swagger_petstore_open_api30/models/category.rb +105 -0
  26. data/lib/swagger_petstore_open_api30/models/oauth_provider_error.rb +62 -0
  27. data/lib/swagger_petstore_open_api30/models/oauth_scope_petstore_auth.rb +36 -0
  28. data/lib/swagger_petstore_open_api30/models/oauth_token.rb +125 -0
  29. data/lib/swagger_petstore_open_api30/models/order.rb +167 -0
  30. data/lib/swagger_petstore_open_api30/models/order_status.rb +40 -0
  31. data/lib/swagger_petstore_open_api30/models/pet.rb +168 -0
  32. data/lib/swagger_petstore_open_api30/models/pet_status.rb +40 -0
  33. data/lib/swagger_petstore_open_api30/models/tag.rb +105 -0
  34. data/lib/swagger_petstore_open_api30/models/user.rb +182 -0
  35. data/lib/swagger_petstore_open_api30/utilities/date_time_helper.rb +11 -0
  36. data/lib/{cypress_test_api → swagger_petstore_open_api30}/utilities/file_wrapper.rb +4 -4
  37. data/lib/swagger_petstore_open_api30/utilities/xml_utilities.rb +12 -0
  38. data/lib/swagger_petstore_open_api30.rb +62 -0
  39. metadata +37 -64
  40. data/lib/cypress_test_api/api_helper.rb +0 -10
  41. data/lib/cypress_test_api/client.rb +0 -58
  42. data/lib/cypress_test_api/controllers/api_controller.rb +0 -102
  43. data/lib/cypress_test_api/http/http_call_back.rb +0 -10
  44. data/lib/cypress_test_api/http/http_method_enum.rb +0 -10
  45. data/lib/cypress_test_api/http/http_request.rb +0 -10
  46. data/lib/cypress_test_api/http/http_response.rb +0 -10
  47. data/lib/cypress_test_api/models/custom_enum.rb +0 -40
  48. data/lib/cypress_test_api/models/deer.rb +0 -68
  49. data/lib/cypress_test_api/models/item.rb +0 -166
  50. data/lib/cypress_test_api/models/item_response.rb +0 -80
  51. data/lib/cypress_test_api/models/lion.rb +0 -68
  52. data/lib/cypress_test_api/models/message.rb +0 -68
  53. data/lib/cypress_test_api/models/message2.rb +0 -71
  54. data/lib/cypress_test_api/models/multiple_arrays_request.rb +0 -70
  55. data/lib/cypress_test_api/models/nac_tag.rb +0 -265
  56. data/lib/cypress_test_api/models/o_auth_scope_o_auth_acg_enum.rb +0 -44
  57. data/lib/cypress_test_api/models/response_http400.rb +0 -62
  58. data/lib/cypress_test_api/models/response_http404.rb +0 -62
  59. data/lib/cypress_test_api/models/status11_enum.rb +0 -40
  60. data/lib/cypress_test_api/models/status1_enum.rb +0 -40
  61. data/lib/cypress_test_api/models/status_enum.rb +0 -40
  62. data/lib/cypress_test_api/models/tokens_request.rb +0 -60
  63. data/lib/cypress_test_api/utilities/date_time_helper.rb +0 -11
  64. data/lib/cypress_test_api.rb +0 -55
  65. data/test/controllers/controller_test_base.rb +0 -23
  66. data/test/controllers/test_api_controller.rb +0 -40
  67. data/test/http_response_catcher.rb +0 -19
@@ -1,23 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- require 'json'
7
- require 'minitest/autorun'
8
- require 'minitest/hell'
9
- require 'minitest/pride'
10
- require 'minitest/proveit'
11
- require 'cypress_test_api'
12
- require_relative '../http_response_catcher'
13
-
14
- class ControllerTestBase < Minitest::Test
15
- parallelize_me!
16
- include CypressTestApi
17
- include CoreLibrary
18
-
19
- # Initializes the base test controller
20
- def setup_class
21
- @client = Client.from_env(http_callback: HttpResponseCatcher.new)
22
- end
23
- end
@@ -1,40 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- require_relative 'controller_test_base'
7
-
8
- class APIControllerTest < ControllerTestBase
9
- # Called only once for the class before any test has executed
10
- def setup
11
- setup_class
12
- @controller = @client.client
13
- @response_catcher = @controller.http_call_back
14
- end
15
-
16
- # Generates a new OAuth token with the specified scopes.
17
- def test_create_o_auth_token
18
- # Parameters for the API call
19
- body = nil
20
-
21
- # Perform the API call through the SDK function
22
- @controller.create_o_auth_token(body: body)
23
-
24
- # Test response code
25
- assert_equal(201, @response_catcher.response.status_code)
26
- end
27
-
28
- # This endpoint accepts a complex structure with multiple arrays.
29
- def test_test_endpointwith_arrays
30
- # Parameters for the API call
31
- body = nil
32
-
33
- # Perform the API call through the SDK function
34
- @controller.test_endpointwith_arrays(body: body)
35
-
36
- # Test response code
37
- assert_equal(200, @response_catcher.response.status_code)
38
- end
39
-
40
- end
@@ -1,19 +0,0 @@
1
- # cypress_test_api
2
- #
3
- # This file was automatically generated by APIMATIC v3.0
4
- # ( https://www.apimatic.io ).
5
-
6
- class HttpResponseCatcher < CypressTestApi::HttpCallBack
7
- attr_reader :response
8
-
9
- def on_before_request(request)
10
- end
11
-
12
- # Catching the response
13
- def on_after_response(response)
14
- @response = response
15
- end
16
- end
17
-
18
-
19
-