View difference between Paste ID: UKzBdJYZ and N2ccVUvB
SHOW: | | - or go back to the newest paste.
1
{
2
  "swagger": "2.0",
3
  "info": {
4
    "version": "v1",
5
    "title": "CIS.Navigator.MobileWebApi"
6
  },
7
  "host": "navigatormobileservicesuat.cisgroup.net",
8
  "schemes": [
9
    "https"
10
  ],
11
  "paths": {
12
    "/api/briefcase": {
13
      "get": {
14
        "tags": [
15
          "Briefcase"
16
        ],
17
        "operationId": "Briefcase_Get",
18
        "consumes": [
19
          
20
        ],
21
        "produces": [
22
          "application/json",
23
          "text/json",
24
          "application/xml",
25
          "text/xml"
26
        ],
27
        "responses": {
28
          "200": {
29
            "description": "OK",
30
            "schema": {
31
              "type": "object"
32
            }
33
          }
34
        }
35
      }
36
    },
37
    "/api/briefcase/{id}": {
38
      "get": {
39
        "tags": [
40
          "Briefcase"
41
        ],
42
        "operationId": "Briefcase_Get",
43
        "consumes": [
44
          
45
        ],
46
        "produces": [
47
          "application/json",
48
          "text/json",
49
          "application/xml",
50
          "text/xml"
51
        ],
52
        "parameters": [
53
          {
54
            "name": "id",
55
            "in": "path",
56
            "required": true,
57
            "type": "integer",
58
            "format": "int64"
59
          }
60
        ],
61
        "responses": {
62
          "200": {
63
            "description": "OK",
64
            "schema": {
65
              "type": "object"
66
            }
67
          }
68
        }
69
      }
70
    },
71
    "/api/briefcase/autoclaim": {
72
      "put": {
73
        "tags": [
74
          "Briefcase"
75
        ],
76
        "operationId": "Briefcase_PutAutoClaim",
77
        "consumes": [
78
          "application/json",
79
          "text/json",
80
          "application/xml",
81
          "text/xml",
82
          "application/x-www-form-urlencoded"
83
        ],
84
        "produces": [
85
          "application/json",
86
          "text/json",
87
          "application/xml",
88
          "text/xml"
89
        ],
90
        "parameters": [
91
          {
92
            "name": "assignmentRequest",
93
            "in": "body",
94
            "required": true,
95
            "schema": {
96
              "$ref": "#/definitions/AutoClaimAssignmentRequest"
97
            }
98
          }
99
        ],
100
        "responses": {
101
          "200": {
102
            "description": "OK",
103
            "schema": {
104
              "type": "object"
105
            }
106
          }
107
        }
108
      }
109
    },
110
    "/api/capture": {
111
      "put": {
112
        "tags": [
113
          "Capture"
114
        ],
115
        "operationId": "Capture_Put",
116
        "consumes": [
117
          
118
        ],
119
        "produces": [
120
          "application/json",
121
          "text/json",
122
          "application/xml",
123
          "text/xml"
124
        ],
125
        "responses": {
126
          "200": {
127
            "description": "OK",
128
            "schema": {
129
              "type": "object"
130
            }
131
          }
132
        }
133
      }
134
    },
135
    "/api/capture/{id}": {
136
      "get": {
137
        "tags": [
138
          "Capture"
139
        ],
140
        "operationId": "Capture_Get",
141
        "consumes": [
142
          
143
        ],
144
        "produces": [
145
          "application/json",
146
          "text/json",
147
          "application/xml",
148
          "text/xml"
149
        ],
150
        "parameters": [
151
          {
152
            "name": "id",
153
            "in": "path",
154
            "required": true,
155
            "type": "integer",
156
            "format": "int64"
157
          }
158
        ],
159
        "responses": {
160
          "200": {
161
            "description": "OK",
162
            "schema": {
163
              "type": "object"
164
            }
165
          }
166
        }
167
      },
168
      "post": {
169
        "tags": [
170
          "Capture"
171
        ],
172
        "operationId": "Capture_Post",
173
        "consumes": [
174
          
175
        ],
176
        "produces": [
177
          "application/json",
178
          "text/json",
179
          "application/xml",
180
          "text/xml"
181
        ],
182
        "parameters": [
183
          {
184
            "name": "id",
185
            "in": "path",
186
            "required": true,
187
            "type": "integer",
188
            "format": "int64"
189
          }
190
        ],
191
        "responses": {
192
          "200": {
193
            "description": "OK",
194
            "schema": {
195
              "type": "object"
196
            }
197
          }
198
        }
199
      },
200
      "delete": {
201
        "tags": [
202
          "Capture"
203
        ],
204
        "operationId": "Capture_Delete",
205
        "consumes": [
206
          
207
        ],
208
        "produces": [
209
          "application/json",
210
          "text/json",
211
          "application/xml",
212
          "text/xml"
213
        ],
214
        "parameters": [
215
          {
216
            "name": "id",
217
            "in": "path",
218
            "required": true,
219
            "type": "integer",
220
            "format": "int64"
221
          }
222
        ],
223
        "responses": {
224
          "200": {
225
            "description": "OK",
226
            "schema": {
227
              "type": "object"
228
            }
229
          }
230
        }
231
      }
232
    },
233
    "/api/capture/assignment/{id}": {
234
      "get": {
235
        "tags": [
236
          "Capture"
237
        ],
238
        "operationId": "Capture_GetAssignment",
239
        "consumes": [
240
          
241
        ],
242
        "produces": [
243
          "application/json",
244
          "text/json",
245
          "application/xml",
246
          "text/xml"
247
        ],
248
        "parameters": [
249
          {
250
            "name": "id",
251
            "in": "path",
252
            "required": true,
253
            "type": "integer",
254
            "format": "int64"
255
          }
256
        ],
257
        "responses": {
258
          "200": {
259
            "description": "OK",
260
            "schema": {
261
              "type": "object"
262
            }
263
          }
264
        }
265
      }
266
    },
267
    "/api/capture/assignment/submit/{id}": {
268
      "post": {
269
        "tags": [
270
          "Capture"
271
        ],
272
        "operationId": "Capture_SubmitAssignment",
273
        "consumes": [
274
          "application/json",
275
          "text/json",
276
          "application/xml",
277
          "text/xml",
278
          "application/x-www-form-urlencoded"
279
        ],
280
        "produces": [
281
          "application/json",
282
          "text/json",
283
          "application/xml",
284
          "text/xml"
285
        ],
286
        "parameters": [
287
          {
288
            "name": "id",
289
            "in": "path",
290
            "required": true,
291
            "type": "integer",
292
            "format": "int64"
293
          },
294
          {
295
            "name": "captureAssignmentSubmit",
296
            "in": "body",
297
            "required": true,
298
            "schema": {
299
              "$ref": "#/definitions/CaptureAssignmentSubmit"
300
            }
301
          }
302
        ],
303
        "responses": {
304
          "200": {
305
            "description": "OK",
306
            "schema": {
307
              "type": "object"
308
            }
309
          }
310
        }
311
      }
312
    },
313
    "/api/checklist/{id}": {
314
      "get": {
315
        "tags": [
316
          "Checklist"
317
        ],
318
        "operationId": "Checklist_Get",
319
        "consumes": [
320
          
321
        ],
322
        "produces": [
323
          "application/json",
324
          "text/json",
325
          "application/xml",
326
          "text/xml"
327
        ],
328
        "parameters": [
329
          {
330
            "name": "id",
331
            "in": "path",
332
            "required": true,
333
            "type": "integer",
334
            "format": "int64"
335
          }
336
        ],
337
        "responses": {
338
          "200": {
339
            "description": "OK",
340
            "schema": {
341
              "type": "object"
342
            }
343
          }
344
        }
345
      }
346
    },
347
    "/api/SecuredTest": {
348
      "get": {
349
        "tags": [
350
          "SecuredTest"
351
        ],
352
        "operationId": "SecuredTest_Get",
353
        "consumes": [
354
          
355
        ],
356
        "produces": [
357
          "application/json",
358
          "text/json",
359
          "application/xml",
360
          "text/xml"
361
        ],
362
        "responses": {
363
          "200": {
364
            "description": "OK",
365
            "schema": {
366
              "type": "array",
367
              "items": {
368
                "$ref": "#/definitions/SecuredTestAddress"
369
              }
370
            }
371
          }
372
        }
373
      }
374
    },
375
    "/api/Test": {
376
      "get": {
377
        "tags": [
378
          "Test"
379
        ],
380
        "operationId": "Test_Get",
381
        "consumes": [
382
          
383
        ],
384
        "produces": [
385
          "application/json",
386
          "text/json",
387
          "application/xml",
388
          "text/xml"
389
        ],
390
        "responses": {
391
          "200": {
392
            "description": "OK",
393
            "schema": {
394
              "type": "array",
395
              "items": {
396
                "type": "string"
397
              }
398
            }
399
          }
400
        }
401
      }
402
    },
403
    "/api/user/inspector": {
404
      "put": {
405
        "tags": [
406
          "User"
407
        ],
408
        "operationId": "User_PutInspector",
409
        "consumes": [
410
          "application/json",
411
          "text/json",
412
          "application/xml",
413
          "text/xml",
414
          "application/x-www-form-urlencoded"
415
        ],
416
        "produces": [
417
          "application/json",
418
          "text/json",
419
          "application/xml",
420
          "text/xml"
421
        ],
422
        "parameters": [
423
          {
424
            "name": "inspectorRequest",
425
            "in": "body",
426
            "required": true,
427
            "schema": {
428
              "$ref": "#/definitions/InspectorRequest"
429
            }
430
          }
431
        ],
432
        "responses": {
433
          "200": {
434
            "description": "OK",
435
            "schema": {
436
              "type": "object"
437
            }
438
          }
439
        }
440
      }
441
    },
442
    "/api/user/availability": {
443
      "post": {
444
        "tags": [
445
          "User"
446
        ],
447
        "operationId": "User_PostAvailability",
448
        "consumes": [
449
          "application/json",
450
          "text/json",
451
          "application/xml",
452
          "text/xml",
453
          "application/x-www-form-urlencoded"
454
        ],
455
        "produces": [
456
          "application/json",
457
          "text/json",
458
          "application/xml",
459
          "text/xml"
460
        ],
461
        "parameters": [
462
          {
463
            "name": "availabilityRequest",
464
            "in": "body",
465
            "required": true,
466
            "schema": {
467
              "$ref": "#/definitions/AvailabilityRequest"
468
            }
469
          }
470
        ],
471
        "responses": {
472
          "200": {
473
            "description": "OK",
474
            "schema": {
475
              "type": "object"
476
            }
477
          }
478
        }
479
      }
480
    },
481
    "/api/user/skills": {
482
      "get": {
483
        "tags": [
484
          "User"
485
        ],
486
        "operationId": "User_GetSkills",
487
        "consumes": [
488
          
489
        ],
490
        "produces": [
491
          "application/json",
492
          "text/json",
493
          "application/xml",
494
          "text/xml"
495
        ],
496
        "responses": {
497
          "200": {
498
            "description": "OK",
499
            "schema": {
500
              "type": "object"
501
            }
502
          }
503
        }
504
      }
505
    },
506
    "/api/user/resources": {
507
      "get": {
508
        "tags": [
509
          "User"
510
        ],
511
        "operationId": "User_GetResources",
512
        "consumes": [
513
          
514
        ],
515
        "produces": [
516
          "application/json",
517
          "text/json",
518
          "application/xml",
519
          "text/xml"
520
        ],
521
        "responses": {
522
          "200": {
523
            "description": "OK",
524
            "schema": {
525
              "type": "object"
526
            }
527
          }
528
        }
529
      }
530
    }
531
  },
532
  "definitions": {
533
    "AutoClaimAssignmentRequest": {
534
      "required": [
535
        "autoInformation",
536
        "policyNumber",
537
        "insuredName",
538
        "insuredPhone",
539
        "zipCode"
540
      ],
541
      "type": "object",
542
      "properties": {
543
        "autoInformation": {
544
          "$ref": "#/definitions/AutoInformation"
545
        },
546
        "customerName": {
547
          "maxLength": 50,
548
          "minLength": 0,
549
          "type": "string"
550
        },
551
        "assignmentTypeId": {
552
          "maxLength": 150,
553
          "minLength": 0,
554
          "type": "string"
555
        },
556
        "policyNumber": {
557
          "maxLength": 50,
558
          "minLength": 0,
559
          "type": "string"
560
        },
561
        "insuredName": {
562
          "maxLength": 100,
563
          "minLength": 0,
564
          "type": "string"
565
        },
566
        "insuredPhone": {
567
          "maxLength": 20,
568
          "minLength": 0,
569
          "type": "string"
570
        },
571
        "customerNotes": {
572
          "maxLength": 1000,
573
          "minLength": 0,
574
          "type": "string"
575
        },
576
        "address": {
577
          "maxLength": 100,
578
          "minLength": 0,
579
          "type": "string"
580
        },
581
        "city": {
582
          "maxLength": 50,
583
          "minLength": 0,
584
          "type": "string"
585
        },
586
        "state": {
587
          "maxLength": 2,
588
          "minLength": 0,
589
          "type": "string"
590
        },
591
        "zipCode": {
592
          "maxLength": 5,
593
          "minLength": 0,
594
          "pattern": "^[0-9]*$",
595
          "type": "string"
596
        }
597
      }
598
    },
599
    "AutoInformation": {
600
      "required": [
601
        "year",
602
        "make",
603
        "model"
604
      ],
605
      "type": "object",
606
      "properties": {
607
        "year": {
608
          "type": "string"
609
        },
610
        "make": {
611
          "type": "string"
612
        },
613
        "model": {
614
          "type": "string"
615
        },
616
        "color": {
617
          "type": "string"
618
        },
619
        "vin": {
620
          "type": "string"
621
        }
622
      }
623
    },
624
    "CaptureAssignmentSubmit": {
625
      "type": "object",
626
      "properties": {
627
        "comments": {
628
          "maxLength": 500,
629
          "minLength": 0,
630
          "type": "string"
631
        }
632
      }
633
    },
634
    "SecuredTestAddress": {
635
      "type": "object",
636
      "properties": {
637
        "street1": {
638
          "type": "string"
639
        },
640
        "street2": {
641
          "type": "string"
642
        },
643
        "city": {
644
          "type": "string"
645
        },
646
        "state": {
647
          "type": "string"
648
        },
649
        "zip": {
650
          "type": "string"
651
        },
652
        "country": {
653
          "type": "string"
654
        }
655
      }
656
    },
657
    "InspectorRequest": {
658
      "required": [
659
        "address",
660
        "city",
661
        "state",
662
        "zipCode",
663
        "userName",
664
        "password",
665
        "firstName",
666
        "lastName",
667
        "email",
668
        "phoneNumber"
669
      ],
670
      "type": "object",
671
      "properties": {
672
        "address": {
673
          "maxLength": 100,
674
          "minLength": 0,
675
          "type": "string"
676
        },
677
        "addressLine2": {
678
          "maxLength": 100,
679
          "minLength": 0,
680
          "type": "string"
681
        },
682
        "city": {
683
          "maxLength": 50,
684
          "minLength": 0,
685
          "type": "string"
686
        },
687
        "state": {
688
          "maxLength": 2,
689
          "minLength": 0,
690
          "type": "string"
691
        },
692
        "zipCode": {
693
          "maxLength": 5,
694
          "minLength": 0,
695
          "pattern": "^[0-9]*$",
696
          "type": "string"
697
        },
698
        "region": {
699
          "maxLength": 50,
700
          "minLength": 0,
701
          "type": "string"
702
        },
703
        "skillIds": {
704
          "type": "array",
705
          "items": {
706
            "format": "int32",
707
            "type": "integer"
708
          }
709
        },
710
        "userName": {
711
          "maxLength": 100,
712
          "minLength": 0,
713
          "type": "string"
714
        },
715
        "password": {
716
          "maxLength": 50,
717
          "minLength": 0,
718
          "pattern": "^(?:(?=.*[a-z])(?:(?=.*[A-Z])(?=.*[\\d\\W])|(?=.*\\W)(?=.*\\d))|(?=.*\\W)(?=.*[A-Z])(?=.*\\d)).{8,}$",
719
          "type": "string"
720
        },
721
        "firstName": {
722
          "maxLength": 50,
723
          "minLength": 0,
724
          "type": "string"
725
        },
726
        "lastName": {
727
          "maxLength": 50,
728
          "minLength": 0,
729
          "type": "string"
730
        },
731
        "email": {
732
          "maxLength": 100,
733
          "minLength": 0,
734
          "pattern": "^[\\w!#$%&'*+\\-/=?\\^_`{|}~]+(\\.[\\w!#$%&'*+\\-/=?\\^_`{|}~]+)*@((([\\-\\w]+\\.)+[a-zA-Z]{2,4})|(([0-9]{1,3}\\.){3}[0-9]{1,3}))$",
735
          "type": "string"
736
        },
737
        "phoneNumber": {
738
          "maxLength": 20,
739
          "minLength": 0,
740
          "type": "string"
741
        }
742
      }
743
    },
744
    "AvailabilityRequest": {
745
      "required": [
746
        "name",
747
        "value"
748
      ],
749
      "type": "object",
750
      "properties": {
751
        "name": {
752
          "maxLength": 20,
753
          "minLength": 0,
754
          "type": "string"
755
        },
756
        "value": {
757
          "maxLength": 100,
758
          "minLength": 0,
759
          "type": "string"
760
        }
761
      }
762
    }
763
  },
764
  "securityDefinitions": {
765-
    "bearerAuth": { "type": "http", "scheme": "bearer" },
765+
    "bearerAuth": { "type": "bearer" },
766
    "oauth2": {
767
      "type": "oauth2",
768
      "description": "OAuth2 Implicit Grant",
769
      "flow": "clientCredentials",
770
      "tokenUrl": "https://navigatormobileservicesuat.cisgroup.net/token",
771
      "scopes": {
772
        "read": "Read access to protected resources",
773
        "write": "Write access to protected resources"
774
      }
775
    }
776
  }
777
}