vericred_client 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +201 -0
  3. data/README.md +9 -10
  4. data/docs/DrugsApi.md +7 -9
  5. data/docs/NetworksApi.md +4 -6
  6. data/docs/PlansApi.md +4 -72
  7. data/docs/ProvidersApi.md +7 -20
  8. data/docs/RequestProvidersSearch.md +1 -3
  9. data/docs/ZipCountiesApi.md +3 -3
  10. data/git_push.sh +67 -0
  11. data/lib/vericred_client/api/drugs_api.rb +17 -11
  12. data/lib/vericred_client/api/networks_api.rb +18 -12
  13. data/lib/vericred_client/api/plans_api.rb +15 -141
  14. data/lib/vericred_client/api/providers_api.rb +16 -32
  15. data/lib/vericred_client/api/zip_counties_api.rb +14 -4
  16. data/lib/vericred_client/api_client.rb +13 -3
  17. data/lib/vericred_client/api_error.rb +13 -3
  18. data/lib/vericred_client/configuration.rb +130 -0
  19. data/lib/vericred_client/models/applicant.rb +20 -6
  20. data/lib/vericred_client/models/base.rb +20 -6
  21. data/lib/vericred_client/models/carrier.rb +20 -6
  22. data/lib/vericred_client/models/carrier_subsidiary.rb +20 -6
  23. data/lib/vericred_client/models/county.rb +20 -6
  24. data/lib/vericred_client/models/county_bulk.rb +20 -6
  25. data/lib/vericred_client/models/drug.rb +20 -6
  26. data/lib/vericred_client/models/drug_coverage.rb +20 -6
  27. data/lib/vericred_client/models/drug_coverage_response.rb +20 -6
  28. data/lib/vericred_client/models/drug_package.rb +20 -6
  29. data/lib/vericred_client/models/drug_search_response.rb +20 -6
  30. data/lib/vericred_client/models/meta.rb +20 -6
  31. data/lib/vericred_client/models/network.rb +20 -6
  32. data/lib/vericred_client/models/network_search_response.rb +20 -6
  33. data/lib/vericred_client/models/plan.rb +20 -6
  34. data/lib/vericred_client/models/plan_county.rb +20 -6
  35. data/lib/vericred_client/models/plan_county_bulk.rb +20 -6
  36. data/lib/vericred_client/models/plan_search_response.rb +20 -6
  37. data/lib/vericred_client/models/plan_search_result.rb +20 -6
  38. data/lib/vericred_client/models/plan_zip_county.rb +20 -6
  39. data/lib/vericred_client/models/pricing.rb +20 -6
  40. data/lib/vericred_client/models/provider.rb +20 -6
  41. data/lib/vericred_client/models/provider_show_response.rb +20 -6
  42. data/lib/vericred_client/models/providers_search_response.rb +20 -6
  43. data/lib/vericred_client/models/rating_area.rb +20 -6
  44. data/lib/vericred_client/models/request_plan_find.rb +20 -6
  45. data/lib/vericred_client/models/request_plan_find_applicant.rb +20 -6
  46. data/lib/vericred_client/models/request_plan_find_provider.rb +20 -6
  47. data/lib/vericred_client/models/request_providers_search.rb +21 -9
  48. data/lib/vericred_client/models/state.rb +20 -6
  49. data/lib/vericred_client/models/zip_code.rb +20 -6
  50. data/lib/vericred_client/models/zip_counties_response.rb +20 -6
  51. data/lib/vericred_client/models/zip_county.rb +20 -6
  52. data/lib/vericred_client/models/zip_county_bulk.rb +20 -6
  53. data/lib/vericred_client/models/zip_county_response.rb +20 -6
  54. data/lib/vericred_client/version.rb +14 -4
  55. data/lib/vericred_client.rb +13 -3
  56. data/spec/api/drugs_api_spec.rb +17 -17
  57. data/spec/api/networks_api_spec.rb +16 -12
  58. data/spec/api/plans_api_spec.rb +16 -78
  59. data/spec/api/providers_api_spec.rb +17 -28
  60. data/spec/api/zip_counties_api_spec.rb +15 -9
  61. data/spec/api_client_spec.rb +403 -0
  62. data/spec/configuration_spec.rb +155 -0
  63. data/spec/models/applicant_spec.rb +196 -0
  64. data/spec/models/base_spec.rb +160 -0
  65. data/spec/models/carrier_spec.rb +172 -0
  66. data/spec/models/carrier_subsidiary_spec.rb +172 -0
  67. data/spec/models/county_bulk_spec.rb +172 -0
  68. data/spec/models/county_spec.rb +196 -0
  69. data/spec/models/drug_coverage_response_spec.rb +178 -0
  70. data/spec/models/drug_coverage_spec.rb +190 -0
  71. data/spec/models/drug_package_spec.rb +166 -0
  72. data/spec/models/drug_search_response_spec.rb +172 -0
  73. data/spec/models/drug_spec.rb +178 -0
  74. data/spec/models/meta_spec.rb +160 -0
  75. data/spec/models/network_search_response_spec.rb +166 -0
  76. data/spec/models/network_spec.rb +166 -0
  77. data/spec/models/plan_county_bulk_spec.rb +166 -0
  78. data/spec/models/plan_county_spec.rb +166 -0
  79. data/spec/models/plan_search_response_spec.rb +172 -0
  80. data/spec/models/plan_search_result_spec.rb +562 -0
  81. data/spec/models/plan_spec.rb +544 -0
  82. data/spec/models/plan_zip_county_spec.rb +172 -0
  83. data/spec/models/pricing_spec.rb +220 -0
  84. data/spec/models/provider_show_response_spec.rb +160 -0
  85. data/spec/models/provider_spec.rb +322 -0
  86. data/spec/models/providers_search_response_spec.rb +172 -0
  87. data/spec/models/rating_area_spec.rb +166 -0
  88. data/spec/models/request_plan_find_applicant_spec.rb +160 -0
  89. data/spec/models/request_plan_find_provider_spec.rb +160 -0
  90. data/spec/models/request_plan_find_spec.rb +226 -0
  91. data/spec/models/request_providers_search_spec.rb +202 -0
  92. data/spec/models/state_spec.rb +202 -0
  93. data/spec/models/zip_code_spec.rb +166 -0
  94. data/spec/models/zip_counties_response_spec.rb +178 -0
  95. data/spec/models/zip_county_bulk_spec.rb +178 -0
  96. data/spec/models/zip_county_response_spec.rb +178 -0
  97. data/spec/models/zip_county_spec.rb +172 -0
  98. data/spec/spec_helper.rb +229 -0
  99. data/vericred_client.gemspec +131 -0
  100. metadata +80 -2
@@ -1,4 +1,135 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ #
3
+ =begin
4
+ #Vericred API
5
+
6
+ #Vericred's API allows you to search for Health Plans that a specific doctor
7
+ accepts.
8
+
9
+ ## Getting Started
10
+
11
+ Visit our [Developer Portal](https://vericred.3scale.net) to
12
+ create an account.
13
+
14
+ Once you have created an account, you can create one Application for
15
+ Production and another for our Sandbox (select the appropriate Plan when
16
+ you create the Application).
17
+
18
+ ## Authentication
19
+
20
+ To authenticate, pass the API Key you created in the Developer Portal as
21
+ a `Vericred-Api-Key` header.
22
+
23
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
24
+
25
+ ## Versioning
26
+
27
+ Vericred's API default to the latest version. However, if you need a specific
28
+ version, you can request it with an `Accept-Version` header.
29
+
30
+ The current version is `v3`. Previous versions are `v1` and `v2`.
31
+
32
+ `curl -H 'Vericred-Api-Key: YOUR_KEY' -H 'Accept-Version: v2' "https://api.vericred.com/providers?search_term=Foo&zip_code=11215"`
33
+
34
+ ## Pagination
35
+
36
+ Endpoints that accept `page` and `per_page` parameters are paginated. They expose
37
+ four additional fields that contain data about your position in the response,
38
+ namely `Total`, `Per-Page`, `Link`, and `Page` as described in [RFC-5988](https://tools.ietf.org/html/rfc5988).
39
+
40
+ For example, to display 5 results per page and view the second page of a
41
+ `GET` to `/networks`, your final request would be `GET /networks?....page=2&per_page=5`.
42
+
43
+ ## Sideloading
44
+
45
+ When we return multiple levels of an object graph (e.g. `Provider`s and their `State`s
46
+ we sideload the associated data. In this example, we would provide an Array of
47
+ `State`s and a `state_id` for each provider. This is done primarily to reduce the
48
+ payload size since many of the `Provider`s will share a `State`
49
+
50
+ ```
51
+ {
52
+ providers: [{ id: 1, state_id: 1}, { id: 2, state_id: 1 }],
53
+ states: [{ id: 1, code: 'NY' }]
54
+ }
55
+ ```
56
+
57
+ If you need the second level of the object graph, you can just match the
58
+ corresponding id.
59
+
60
+ ## Selecting specific data
61
+
62
+ All endpoints allow you to specify which fields you would like to return.
63
+ This allows you to limit the response to contain only the data you need.
64
+
65
+ For example, let's take a request that returns the following JSON by default
66
+
67
+ ```
68
+ {
69
+ provider: {
70
+ id: 1,
71
+ name: 'John',
72
+ phone: '1234567890',
73
+ field_we_dont_care_about: 'value_we_dont_care_about'
74
+ },
75
+ states: [{
76
+ id: 1,
77
+ name: 'New York',
78
+ code: 'NY',
79
+ field_we_dont_care_about: 'value_we_dont_care_about'
80
+ }]
81
+ }
82
+ ```
83
+
84
+ To limit our results to only return the fields we care about, we specify the
85
+ `select` query string parameter for the corresponding fields in the JSON
86
+ document.
87
+
88
+ In this case, we want to select `name` and `phone` from the `provider` key,
89
+ so we would add the parameters `select=provider.name,provider.phone`.
90
+ We also want the `name` and `code` from the `states` key, so we would
91
+ add the parameters `select=states.name,staes.code`. The id field of
92
+ each document is always returned whether or not it is requested.
93
+
94
+ Our final request would be `GET /providers/12345?select=provider.name,provider.phone,states.name,states.code`
95
+
96
+ The response would be
97
+
98
+ ```
99
+ {
100
+ provider: {
101
+ id: 1,
102
+ name: 'John',
103
+ phone: '1234567890'
104
+ },
105
+ states: [{
106
+ id: 1,
107
+ name: 'New York',
108
+ code: 'NY'
109
+ }]
110
+ }
111
+ ```
112
+
113
+
114
+
115
+ OpenAPI spec version: 1.0.0
116
+
117
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
118
+
119
+ Licensed under the Apache License, Version 2.0 (the "License");
120
+ you may not use this file except in compliance with the License.
121
+ You may obtain a copy of the License at
122
+
123
+ http://www.apache.org/licenses/LICENSE-2.0
124
+
125
+ Unless required by applicable law or agreed to in writing, software
126
+ distributed under the License is distributed on an "AS IS" BASIS,
127
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
128
+ See the License for the specific language governing permissions and
129
+ limitations under the License.
130
+
131
+ =end
132
+
2
133
  $:.push File.expand_path("../lib", __FILE__)
3
134
  require "vericred_client/version"
4
135
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vericred_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vericred Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-27 00:00:00.000000000 Z
11
+ date: 2016-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -197,6 +197,7 @@ executables: []
197
197
  extensions: []
198
198
  extra_rdoc_files: []
199
199
  files:
200
+ - LICENSE
200
201
  - README.md
201
202
  - docs/Applicant.md
202
203
  - docs/Base.md
@@ -238,6 +239,7 @@ files:
238
239
  - docs/ZipCounty.md
239
240
  - docs/ZipCountyBulk.md
240
241
  - docs/ZipCountyResponse.md
242
+ - git_push.sh
241
243
  - lib/vericred_client.rb
242
244
  - lib/vericred_client/api/drugs_api.rb
243
245
  - lib/vericred_client/api/networks_api.rb
@@ -288,6 +290,44 @@ files:
288
290
  - spec/api/plans_api_spec.rb
289
291
  - spec/api/providers_api_spec.rb
290
292
  - spec/api/zip_counties_api_spec.rb
293
+ - spec/api_client_spec.rb
294
+ - spec/configuration_spec.rb
295
+ - spec/models/applicant_spec.rb
296
+ - spec/models/base_spec.rb
297
+ - spec/models/carrier_spec.rb
298
+ - spec/models/carrier_subsidiary_spec.rb
299
+ - spec/models/county_bulk_spec.rb
300
+ - spec/models/county_spec.rb
301
+ - spec/models/drug_coverage_response_spec.rb
302
+ - spec/models/drug_coverage_spec.rb
303
+ - spec/models/drug_package_spec.rb
304
+ - spec/models/drug_search_response_spec.rb
305
+ - spec/models/drug_spec.rb
306
+ - spec/models/meta_spec.rb
307
+ - spec/models/network_search_response_spec.rb
308
+ - spec/models/network_spec.rb
309
+ - spec/models/plan_county_bulk_spec.rb
310
+ - spec/models/plan_county_spec.rb
311
+ - spec/models/plan_search_response_spec.rb
312
+ - spec/models/plan_search_result_spec.rb
313
+ - spec/models/plan_spec.rb
314
+ - spec/models/plan_zip_county_spec.rb
315
+ - spec/models/pricing_spec.rb
316
+ - spec/models/provider_show_response_spec.rb
317
+ - spec/models/provider_spec.rb
318
+ - spec/models/providers_search_response_spec.rb
319
+ - spec/models/rating_area_spec.rb
320
+ - spec/models/request_plan_find_applicant_spec.rb
321
+ - spec/models/request_plan_find_provider_spec.rb
322
+ - spec/models/request_plan_find_spec.rb
323
+ - spec/models/request_providers_search_spec.rb
324
+ - spec/models/state_spec.rb
325
+ - spec/models/zip_code_spec.rb
326
+ - spec/models/zip_counties_response_spec.rb
327
+ - spec/models/zip_county_bulk_spec.rb
328
+ - spec/models/zip_county_response_spec.rb
329
+ - spec/models/zip_county_spec.rb
330
+ - spec/spec_helper.rb
291
331
  - vericred_client.gemspec
292
332
  homepage: https://github.com/vericred_client
293
333
  licenses:
@@ -319,3 +359,41 @@ test_files:
319
359
  - spec/api/plans_api_spec.rb
320
360
  - spec/api/providers_api_spec.rb
321
361
  - spec/api/zip_counties_api_spec.rb
362
+ - spec/api_client_spec.rb
363
+ - spec/configuration_spec.rb
364
+ - spec/models/applicant_spec.rb
365
+ - spec/models/base_spec.rb
366
+ - spec/models/carrier_spec.rb
367
+ - spec/models/carrier_subsidiary_spec.rb
368
+ - spec/models/county_bulk_spec.rb
369
+ - spec/models/county_spec.rb
370
+ - spec/models/drug_coverage_response_spec.rb
371
+ - spec/models/drug_coverage_spec.rb
372
+ - spec/models/drug_package_spec.rb
373
+ - spec/models/drug_search_response_spec.rb
374
+ - spec/models/drug_spec.rb
375
+ - spec/models/meta_spec.rb
376
+ - spec/models/network_search_response_spec.rb
377
+ - spec/models/network_spec.rb
378
+ - spec/models/plan_county_bulk_spec.rb
379
+ - spec/models/plan_county_spec.rb
380
+ - spec/models/plan_search_response_spec.rb
381
+ - spec/models/plan_search_result_spec.rb
382
+ - spec/models/plan_spec.rb
383
+ - spec/models/plan_zip_county_spec.rb
384
+ - spec/models/pricing_spec.rb
385
+ - spec/models/provider_show_response_spec.rb
386
+ - spec/models/provider_spec.rb
387
+ - spec/models/providers_search_response_spec.rb
388
+ - spec/models/rating_area_spec.rb
389
+ - spec/models/request_plan_find_applicant_spec.rb
390
+ - spec/models/request_plan_find_provider_spec.rb
391
+ - spec/models/request_plan_find_spec.rb
392
+ - spec/models/request_providers_search_spec.rb
393
+ - spec/models/state_spec.rb
394
+ - spec/models/zip_code_spec.rb
395
+ - spec/models/zip_counties_response_spec.rb
396
+ - spec/models/zip_county_bulk_spec.rb
397
+ - spec/models/zip_county_response_spec.rb
398
+ - spec/models/zip_county_spec.rb
399
+ - spec/spec_helper.rb