fitting 2.13.1 → 2.16.1
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.
- checksums.yaml +5 -5
- data/.github/workflows/ruby.yml +33 -0
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/.tool-versions +1 -1
- data/CHANGELOG.md +51 -0
- data/README.md +89 -256
- data/example.png +0 -0
- data/example2.png +0 -0
- data/fitting.gemspec +4 -4
- data/lib/fitting/records/spherical/requests.rb +3 -1
- data/lib/fitting/report/action.rb +53 -0
- data/lib/fitting/report/actions.rb +51 -0
- data/lib/fitting/report/combination.rb +37 -0
- data/lib/fitting/report/combinations.rb +47 -0
- data/lib/fitting/report/console.rb +41 -0
- data/lib/fitting/report/prefix.rb +88 -0
- data/lib/fitting/report/prefixes.rb +56 -0
- data/lib/fitting/report/response.rb +71 -0
- data/lib/fitting/report/responses.rb +48 -0
- data/lib/fitting/report/test.rb +75 -0
- data/lib/fitting/report/tests.rb +69 -0
- data/lib/fitting/tests.rb +0 -1
- data/lib/fitting/version.rb +1 -1
- data/lib/tasks/fitting.rake +68 -31
- data/lib/templates/bomboniere/.gitignore +21 -0
- data/lib/templates/bomboniere/.tool-versions +1 -0
- data/lib/templates/bomboniere/README.md +19 -0
- data/lib/templates/bomboniere/dist/css/app.aa2bcd8a.css +1 -0
- data/lib/templates/bomboniere/dist/css/chunk-vendors.ec5f6c3f.css +1 -0
- data/lib/templates/bomboniere/dist/favicon.ico +0 -0
- data/lib/templates/bomboniere/dist/index.html +1 -0
- data/lib/templates/bomboniere/dist/js/app.e5f1a5ec.js +2 -0
- data/lib/templates/bomboniere/dist/js/app.e5f1a5ec.js.map +1 -0
- data/lib/templates/bomboniere/dist/js/chunk-vendors.0f99b670.js +13 -0
- data/lib/templates/bomboniere/dist/js/chunk-vendors.0f99b670.js.map +1 -0
- data/lib/templates/bomboniere/package-lock.json +9277 -0
- data/lib/templates/bomboniere/package.json +27 -0
- data/lib/templates/bomboniere/public/favicon.ico +0 -0
- data/lib/templates/bomboniere/public/index.html +17 -0
- data/lib/templates/bomboniere/src/App.vue +102 -0
- data/lib/templates/bomboniere/src/assets/logo.png +0 -0
- data/lib/templates/bomboniere/src/components/HelloWorld.vue +201 -0
- data/lib/templates/bomboniere/src/main.js +10 -0
- data/lib/templates/bomboniere/src/router/index.js +31 -0
- data/lib/templates/bomboniere/src/views/About.vue +5 -0
- data/lib/templates/bomboniere/src/views/Action.vue +173 -0
- data/lib/templates/bomboniere/src/views/Home.vue +17 -0
- data/lib/templates/bomboniere/vue.config.js +3 -0
- metadata +64 -27
- data/.travis.yml +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dff340fba9a0bb88736f22f6f2ca3c0842d3e71b1f51228ee693f831e411a654
|
4
|
+
data.tar.gz: da9ca92e4c14ce44112253508840a82a3855227b742707278ac6352bd0f471b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed8f7776052d96e79ae59b75f4f60f94e48abd16cf25b8ecd7709b58860d17d4dbbfa370aa2058fbb7001517e3532d1f27837e200c8e9e7075b020924fd4334b
|
7
|
+
data.tar.gz: bbff5fdab51436db644ed6a6874cd7ffea8be3fe9d8566b57a0115195d8c328c2f4896aa72ef1a0d8466599b68864ff61ab27a301c74591bb9292585f6862039
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ master ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ master ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- name: Set up Ruby
|
24
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
25
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
26
|
+
uses: ruby/setup-ruby@v1
|
27
|
+
# uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
|
28
|
+
with:
|
29
|
+
ruby-version: 2.7
|
30
|
+
- name: Install dependencies
|
31
|
+
run: bundle install
|
32
|
+
- name: Run tests
|
33
|
+
run: bundle exec rake
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.1
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 2.
|
1
|
+
ruby 2.6.1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,56 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
### 2.16.1 - 2021-02-10
|
4
|
+
* patch
|
5
|
+
* make prefix optional [#98](https://github.com/funbox/fitting/issues/98)
|
6
|
+
|
7
|
+
### 2.16.0 - 2021-02-10
|
8
|
+
|
9
|
+
* features
|
10
|
+
* support swagger and openapi [#96](https://github.com/funbox/fitting/issues/96)
|
11
|
+
* patch
|
12
|
+
* let's bump to tomograph '3.0.1' [#95](https://github.com/funbox/fitting/issues/95)
|
13
|
+
|
14
|
+
### 2.15.0 - 2020-10-12
|
15
|
+
|
16
|
+
* features
|
17
|
+
* color for bad response [#79](https://github.com/funbox/fitting/issues/79)
|
18
|
+
* show test details [#81](https://github.com/funbox/fitting/issues/81)
|
19
|
+
* patch
|
20
|
+
* update ruby [#83](https://github.com/funbox/fitting/issues/83)
|
21
|
+
* update bundler [#84](https://github.com/funbox/fitting/issues/84)
|
22
|
+
* update tomograph [#85](https://github.com/funbox/fitting/issues/85)
|
23
|
+
* use github actions for CI instead of Travis [#30](https://github.com/funbox/fitting/issues/30)
|
24
|
+
|
25
|
+
### 2.14.1 - 2020-09-23
|
26
|
+
|
27
|
+
* fixes
|
28
|
+
* fix directory error [#75](https://github.com/funbox/fitting/issues/75)
|
29
|
+
* upgrade node-forge [#77](https://github.com/funbox/fitting/issues/77)
|
30
|
+
|
31
|
+
### 2.14.0 - 2020-09-18
|
32
|
+
|
33
|
+
* features
|
34
|
+
* save tests for all prefixes [#35](https://github.com/funbox/fitting/issues/35)
|
35
|
+
* prefix checking [#37](https://github.com/funbox/fitting/issues/37)
|
36
|
+
* html view for prefix checking [#39](https://github.com/funbox/fitting/issues/39)
|
37
|
+
* add actions join in new html report [#41](https://github.com/funbox/fitting/issues/41)
|
38
|
+
* add responses join in new report [#43](https://github.com/funbox/fitting/issues/43)
|
39
|
+
* add combinations join in new report [#47](https://github.com/funbox/fitting/issues/47)
|
40
|
+
* add action page [#49](https://github.com/funbox/fitting/issues/49)
|
41
|
+
* show more information in new report [#51](https://github.com/funbox/fitting/issues/51)
|
42
|
+
* add accordion for prefixes [#55](https://github.com/funbox/fitting/issues/55)
|
43
|
+
* move json-schemas to separate files [#57](https://github.com/funbox/fitting/issues/57)
|
44
|
+
* add method for tests without actions [#61](https://github.com/funbox/fitting/issues/61)
|
45
|
+
* show tests without responses [#63](https://github.com/funbox/fitting/issues/63)
|
46
|
+
* add console output for new report [#69](https://github.com/funbox/fitting/issues/69)
|
47
|
+
* check test in new console [#71](https://github.com/funbox/fitting/issues/71)
|
48
|
+
* fixes
|
49
|
+
* fix vulnerability CVE-2020-7660 [#53](https://github.com/funbox/fitting/issues/53)
|
50
|
+
* fix cover if response without combinations [#59](https://github.com/funbox/fitting/issues/59)
|
51
|
+
* fix cover if combinations without tests [#66](https://github.com/funbox/fitting/issues/66)
|
52
|
+
* do not check tests without combinations [#73](https://github.com/funbox/fitting/issues/73)
|
53
|
+
|
3
54
|
### 2.13.1 - 2020-04-17
|
4
55
|
|
5
56
|
* fixes
|
data/README.md
CHANGED
@@ -1,42 +1,25 @@
|
|
1
1
|
# Fitting
|
2
|
-
|
3
|
-
|
4
|
-
<img src="https://funbox.ru/badges/sponsored_by_funbox_compact.svg" alt="Sponsored by FunBox" width=250 />
|
5
|
-
</a>
|
6
|
-
|
7
|
-
[](https://badge.fury.io/rb/fitting)
|
8
|
-
[](https://travis-ci.org/funbox/fitting)
|
9
|
-
|
10
|
-
This gem will help you implement your API in strict accordance to the documentation in [API Blueprint](https://apiblueprint.org/) format.
|
11
|
-
To do this, when you run your RSpec tests on controllers, it automatically searches for the corresponding json-schemas in the documentation and then validates responses with them.
|
2
|
+
Coverage API Blueprint, Swagger and OpenAPI with rspec tests for easily make high-quality API and documenatiton.
|
3
|
+

|
12
4
|
|
13
5
|
## Installation
|
14
|
-
|
15
|
-
First you need to install [drafter](https://github.com/apiaryio/drafter).
|
16
|
-
|
17
|
-
Second add this line to your application's Gemfile:
|
18
|
-
|
6
|
+
Add this line to your application's Gemfile:
|
19
7
|
```ruby
|
20
8
|
gem 'fitting'
|
21
9
|
```
|
22
10
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
Or install it yourself as:
|
28
|
-
|
29
|
-
$ gem install fitting
|
30
|
-
|
31
|
-
## Usage
|
32
|
-
|
33
|
-
In your `.fitting.yml`:
|
11
|
+
After that execute:
|
12
|
+
```bash
|
13
|
+
$ bundle
|
14
|
+
```
|
34
15
|
|
35
|
-
|
36
|
-
|
16
|
+
Or install the gem by yourself:
|
17
|
+
```bash
|
18
|
+
$ gem install fitting
|
37
19
|
```
|
38
20
|
|
39
|
-
|
21
|
+
## Usage
|
22
|
+
And next to your `spec_helper.rb`:
|
40
23
|
|
41
24
|
```ruby
|
42
25
|
require 'fitting'
|
@@ -44,270 +27,120 @@ require 'fitting'
|
|
44
27
|
Fitting.save_test_data
|
45
28
|
```
|
46
29
|
|
47
|
-
|
48
|
-
|
49
|
-
Example:
|
30
|
+
Add this to your `.fitting.yml`:
|
50
31
|
|
51
|
-
|
52
|
-
|
53
|
-
{
|
54
|
-
"method": "GET",
|
55
|
-
"path": "/api/v1/book",
|
56
|
-
"body": {},
|
57
|
-
"response": {
|
58
|
-
"status": 200,
|
59
|
-
"body": {
|
60
|
-
"title": "The Martian Chronicles"
|
61
|
-
}
|
62
|
-
},
|
63
|
-
"title": "/spec/controllers/api/v1/books_controller_spec.rb:11",
|
64
|
-
"group": "/spec/controllers/api/v1/books_controller_spec.rb"
|
65
|
-
},
|
66
|
-
{
|
67
|
-
"method": "POST",
|
68
|
-
"path": "/api/v1/book",
|
69
|
-
"body": {},
|
70
|
-
"response": {
|
71
|
-
"status": 200,
|
72
|
-
"body": {
|
73
|
-
"title": "The Old Man and the Sea"
|
74
|
-
}
|
75
|
-
},
|
76
|
-
"title": "/spec/controllers/api/v1/books_controller_spec.rb:22",
|
77
|
-
"group": "/spec/controllers/api/v1/books_controller_spec.rb"
|
78
|
-
},
|
79
|
-
...
|
80
|
-
```
|
32
|
+
### OpenAPI 2.0
|
33
|
+
Also Swagger
|
81
34
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
For match routes and valid json-schemas run
|
88
|
-
|
89
|
-
for bash
|
90
|
-
```
|
91
|
-
rake fitting:documentation_responses[xs]
|
92
|
-
```
|
93
|
-
|
94
|
-
for zsh
|
95
|
-
```
|
96
|
-
rake 'fitting:documentation_responses[xs]'
|
35
|
+
```yaml
|
36
|
+
prefixes:
|
37
|
+
- name: /api/v1
|
38
|
+
openapi2_json_path: doc.json
|
97
39
|
```
|
98
40
|
|
99
|
-
|
41
|
+
### OpenAPI 3.0
|
42
|
+
Also OpenAPI
|
100
43
|
|
44
|
+
```yaml
|
45
|
+
prefixes:
|
46
|
+
- name: /api/v1
|
47
|
+
openapi3_yaml_path: doc.yaml
|
101
48
|
```
|
102
|
-
Fully conforming requests:
|
103
|
-
DELETE /api/v1/book ✔ 200 ✔ 201 ✔ 404
|
104
|
-
DELETE /api/v1/book/{id} ✔ 200 ✔ 201 ✔ 404
|
105
|
-
GET /api/v1/book/{id}/seller ✔ 200 ✔ 201 ✔ 404
|
106
|
-
|
107
|
-
Partially conforming requests:
|
108
|
-
GET /api/v1/book ✖ 200 ✔ 404
|
109
|
-
POST /api/v1/book ✖ 200 ✔ 201 ✔ 404
|
110
|
-
GET /api/v1/book/{id} ✖ 200 ✔ 404 ✔ 200
|
111
|
-
PATCH /api/v1/book/{id} ✖ 200 ✔ 201 ✔ 404
|
112
|
-
|
113
|
-
Non-conforming requests:
|
114
|
-
GET /api/v1/seller ✖ 200 ✖ 201 ✖ 404
|
115
|
-
GET /api/v1/buyer ✖ 200 ✖ 404
|
116
|
-
|
117
|
-
API requests with fully implemented responses: 3 (33.33% of 9).
|
118
|
-
API requests with partially implemented responses: 4 (44.44% of 9).
|
119
|
-
API requests with no implemented responses: 2 (22.22% of 9).
|
120
|
-
|
121
|
-
API responses conforming to the blueprint: 16 (64.00% of 25).
|
122
|
-
API responses with validation errors or untested: 9 (36.00% of 25).
|
123
|
-
```
|
124
|
-
|
125
|
-
### s size
|
126
49
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
Fully conforming requests:
|
131
|
-
DELETE /api/v1/book 100% 200 100% 201 100% 404
|
132
|
-
DELETE /api/v1/book/{id} 100% 200 100% 201 100% 404
|
133
|
-
GET /api/v1/book/{id}/seller 100% 200 100% 201 100% 404
|
134
|
-
|
135
|
-
Partially conforming requests:
|
136
|
-
GET /api/v1/book 0% 200 66% 404
|
137
|
-
POST /api/v1/book 0% 200 90% 201 100% 404
|
138
|
-
GET /api/v1/book/{id} 0% 200 88% 404 10% 200
|
139
|
-
PATCH /api/v1/book/{id} 0% 200 100% 201 10% 404
|
140
|
-
|
141
|
-
Non-conforming requests:
|
142
|
-
GET /api/v1/seller 0% 200 0% 201 0 404
|
143
|
-
GET /api/v1/buyer 0% 200 0% 404
|
144
|
-
|
145
|
-
API requests with fully implemented responses: 3 (33.33% of 9).
|
146
|
-
API requests with partially implemented responses: 4 (44.44% of 9).
|
147
|
-
API requests with no implemented responses: 2 (22.22% of 9).
|
148
|
-
|
149
|
-
API responses conforming to the blueprint: 16 (64.00% of 25).
|
150
|
-
API responses with validation errors or untested: 9 (36.00% of 25).
|
151
|
-
```
|
50
|
+
### API Blueprint
|
51
|
+
First you need to install [drafter](https://github.com/apiaryio/drafter).
|
52
|
+
Works after conversion from API Blueprint to API Elements (in YAML file) with Drafter.
|
152
53
|
|
153
|
-
|
54
|
+
That is, I mean that you first need to do this
|
154
55
|
|
56
|
+
```bash
|
57
|
+
drafter doc.apib -o doc.yaml
|
155
58
|
```
|
156
|
-
request method: GET
|
157
|
-
request path: /api/v1/book
|
158
|
-
response status: 200
|
159
|
-
source json-schema: {"$schema"=>"http://json-schema.org/draft-04/schema#", "type"=>"object", ...}
|
160
|
-
combination: ["required", "pages"]
|
161
|
-
new json-schema: {"$schema"=>"http://json-schema.org/draft-04/schema#", "type"=>"object", ...}
|
162
|
-
```
|
163
|
-
|
164
|
-
### m size
|
165
59
|
|
166
|
-
|
167
|
-
For details `rake fitting:documentation_responses_error[m]`
|
168
|
-
|
169
|
-
### l size
|
170
|
-
|
171
|
-
In addition to the previous comand, you will learn the coverage(oneOf) json-schemas with task `rake fitting:documentation_responses[l]`
|
172
|
-
For details `rake fitting:documentation_responses_error[l]`
|
173
|
-
|
174
|
-
## Check tests cover
|
175
|
-
|
176
|
-
### xs size
|
177
|
-
|
178
|
-
`rake fitting:tests_responses[xs]`
|
179
|
-
|
180
|
-
## Config
|
181
|
-
|
182
|
-
You can specify the settings either in a yaml file `.fitting.yml` or in config.
|
183
|
-
If your project uses several prefixes, for each one you need to create a separate yaml file in the folder `fitting` (`fitting/*.yml`).
|
184
|
-
|
185
|
-
### apib_path
|
186
|
-
|
187
|
-
Path to API Blueprint v3 documentation. There must be an installed [drafter](https://github.com/apiaryio/drafter) to parse it.
|
188
|
-
|
189
|
-
### drafter_yaml_path
|
190
|
-
|
191
|
-
Path to API Blueprint v3 documentation pre-parsed with `drafter` and saved to a YAML file.
|
192
|
-
|
193
|
-
### drafter_4_apib_path
|
194
|
-
|
195
|
-
Path to API Blueprint v4 documentation. There must be an installed [drafter](https://github.com/apiaryio/drafter) to parse it.
|
196
|
-
|
197
|
-
### drafter_4_yaml_path
|
198
|
-
|
199
|
-
Path to API Blueprint v4 documentation pre-parsed with `drafter` and saved to a YAML file.
|
200
|
-
|
201
|
-
### crafter_apib_path
|
202
|
-
|
203
|
-
Path to API Blueprint v4 documentation.
|
204
|
-
|
205
|
-
### crafter_yaml_path
|
206
|
-
|
207
|
-
Path to API Blueprint v4 documentation pre-parsed with `crafter` and saved to a YAML file.
|
208
|
-
|
209
|
-
### tomogram_json_path
|
210
|
-
|
211
|
-
Path to Tomogram documentation pre-parsed with [tomograph](https://github.com/funbox/tomograph) and saved to a JSON file.
|
212
|
-
|
213
|
-
### strict
|
214
|
-
|
215
|
-
Default `false`. If `true` then all properties are condisidered to have `"required": true` and all objects `"additionalProperties": false`.
|
216
|
-
|
217
|
-
### prefix
|
218
|
-
|
219
|
-
Prefix of API requests. Example: `'/api'`. Validation will not be performed if the request path does not start with a prefix.
|
220
|
-
|
221
|
-
### white_list
|
222
|
-
|
223
|
-
Default: all paths. This is an array of paths that are mandatory for implementation.
|
224
|
-
This list does not affect the work of the matcher.
|
225
|
-
This list is only for the report in the console.
|
60
|
+
and then
|
226
61
|
|
227
62
|
```yaml
|
228
|
-
|
229
|
-
/
|
230
|
-
|
231
|
-
- POST
|
232
|
-
/users/{id}:
|
233
|
-
- GET
|
234
|
-
- PATCH
|
235
|
-
/users/{id}/employees:
|
236
|
-
- GET
|
237
|
-
/sessions: []
|
63
|
+
prefixes:
|
64
|
+
- name: /api/v1
|
65
|
+
drafter_yaml_path: doc.yaml
|
238
66
|
```
|
239
67
|
|
240
|
-
|
241
|
-
|
242
|
-
### resource_white_list
|
68
|
+
### Tomograph
|
243
69
|
|
244
|
-
|
245
|
-
This list does not affect the work of the matcher.
|
246
|
-
This list is only for the report in the console.
|
70
|
+
To use additional features of the pre-converted [tomograph](https://github.com/funbox/tomograph)
|
247
71
|
|
248
72
|
```yaml
|
249
|
-
|
250
|
-
/
|
251
|
-
|
252
|
-
- POST /users
|
253
|
-
- GET /users/{id}
|
254
|
-
- PATCH /users/{id}
|
255
|
-
/users/{id}/employees:
|
256
|
-
- GET /users/{id}/employees
|
257
|
-
/sessions: []
|
73
|
+
prefixes:
|
74
|
+
- name: /api/v1
|
75
|
+
tomogram_json_path: doc.json
|
258
76
|
```
|
259
77
|
|
260
|
-
|
261
|
-
|
262
|
-
|
78
|
+
## Run
|
79
|
+
Run tests first to get run artifacts
|
80
|
+
```bash
|
81
|
+
bundle e rspec
|
82
|
+
```
|
263
83
|
|
264
|
-
|
265
|
-
|
84
|
+
and then
|
85
|
+
```bash
|
86
|
+
bundle e rake fitting:report
|
87
|
+
```
|
266
88
|
|
267
|
-
|
89
|
+
Console ouptut
|
268
90
|
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
91
|
+
```text
|
92
|
+
/api/v1
|
93
|
+
POST /api/v1/accounts/{account_id}/inboxes 0% 200 0% 404 0% 403
|
94
|
+
PATCH /api/v1/accounts/{account_id}/inboxes/{id} 0% 200 0% 404 0% 403
|
95
|
+
POST /api/v1/accounts/{account_id}/inboxes/{id}/set_agent_bot 0% 204 100% 404 0% 403
|
96
|
+
GET /api/v1/agent_bots 0% 200 0% 404 0% 403
|
97
|
+
GET /api/v1/accounts/{account_id}/conversations 0% 200 0% 400 0% description
|
98
|
+
POST /api/v1/accounts/{account_id}/conversations 0% 200 0% 403
|
99
|
+
GET /api/v1/accounts/{account_id}/conversations/{id} 59% 200 0% 404 0% 403
|
100
|
+
POST /api/v1/accounts/{account_id}/conversations/{id}/toggle_status 80% 200 0% 404 0% 403
|
101
|
+
GET /api/v1/accounts/{account_id}/conversations/{id}/messages 47% 200 0% 404 0% 403
|
102
|
+
POST /api/v1/accounts/{account_id}/conversations/{id}/messages 0% 200 0% 404 0% 403
|
103
|
+
GET /api/v1/accounts/{account_id}/conversations/{id}/labels 100% 200 0% 404 0% 403
|
104
|
+
POST /api/v1/accounts/{account_id}/conversations/{id}/labels 100% 200 0% 404 0% 403
|
105
|
+
POST /api/v1/accounts/{account_id}/conversations/{id}/assignments 77% 200 0% 404 0% 403
|
106
|
+
GET /api/v1/accounts/{account_id}/contacts 0% 200 0% 400
|
107
|
+
POST /api/v1/accounts/{account_id}/contacts 14% 200 0% 400
|
108
|
+
GET /api/v1/accounts/{account_id}/contacts/{id} 14% 200 0% 404 0% 403
|
109
|
+
PUT /api/v1/accounts/{account_id}/contacts/{id} 0% 204 0% 404 0% 403
|
110
|
+
GET /api/v1/accounts/{account_id}/contacts/{id}/conversations 0% 200 0% 404 0% 403
|
111
|
+
GET /api/v1/accounts/{account_id}/contacts/search 0% 200 0% 401
|
112
|
+
POST /api/v1/accounts/{account_id}/contacts/{id}/contact_inboxes 0% 200 0% 401 100% 422
|
113
|
+
GET /api/v1/profile 88% 200 100% 401
|
273
114
|
|
274
|
-
|
275
|
-
|
276
|
-
|
115
|
+
tests_without_prefixes: 42
|
116
|
+
tests_without_actions: 144
|
117
|
+
tests_without_responses: 43
|
277
118
|
```
|
278
119
|
|
279
|
-
|
120
|
+
And task will create HTML (`fitting/index.html`) reports.
|
280
121
|
|
281
|
-
|
282
|
-
This is an array of paths that are mandatory for implementation.
|
283
|
-
This list does not affect the work of the matcher.
|
284
|
-
This list is only for the report in the console.
|
122
|
+

|
285
123
|
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
- POST /users
|
290
|
-
- GET /users/{id}
|
291
|
-
- PATCH /users/{id}
|
292
|
-
- GET /users/{id}/employees
|
293
|
-
```
|
124
|
+
More information on action coverage
|
125
|
+
|
126
|
+

|
294
127
|
|
295
|
-
|
128
|
+
## prefix name
|
296
129
|
|
297
|
-
|
130
|
+
Setting the prefix name is optional. For example, you can do this:
|
298
131
|
|
299
132
|
```yaml
|
300
|
-
|
301
|
-
-
|
302
|
-
- %r{/api/v1/comments}
|
133
|
+
prefixes:
|
134
|
+
- openapi2_json_path: doc.json
|
303
135
|
```
|
304
136
|
|
305
|
-
It works only for match_schema (NOT FOR strictly_match_schema)
|
306
|
-
|
307
137
|
## Contributing
|
308
138
|
|
309
|
-
Bug reports and pull requests are welcome on GitHub at
|
139
|
+
Bug reports and pull requests are welcome on GitHub at [github.com/funbox/fitting](https://github.com/funbox/fitting).
|
140
|
+
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
310
141
|
|
311
142
|
## License
|
312
143
|
|
313
144
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
145
|
+
|
146
|
+
[](https://funbox.ru)
|