Franz-Xaver Geiger | d3f2328 | 2018-03-12 14:26:45 +0100 | [diff] [blame] | 1 | { |
| 2 | "swagger": "2.0", |
| 3 | "info": { |
| 4 | "title": "Hiccup API", |
| 5 | "description": "", |
| 6 | "version": "" |
| 7 | }, |
| 8 | "paths": { |
| 9 | "/hiccup/api/v1/devices/": { |
| 10 | "post": { |
| 11 | "tags": [ |
| 12 | "devices" |
| 13 | ], |
| 14 | "consumes": [ |
| 15 | "application/json" |
| 16 | ], |
| 17 | "responses": { |
| 18 | "201": { |
| 19 | "description": "" |
| 20 | } |
| 21 | }, |
| 22 | "parameters": [ |
| 23 | { |
| 24 | "schema": { |
| 25 | "required": [ |
| 26 | "board_date", |
| 27 | "last_heartbeat", |
| 28 | "user" |
| 29 | ], |
| 30 | "type": "object", |
| 31 | "properties": { |
| 32 | "board_date": { |
| 33 | "type": "string", |
| 34 | "description": "" |
| 35 | }, |
| 36 | "next_per_heartbeat_key": { |
| 37 | "type": "string", |
| 38 | "description": "" |
| 39 | }, |
| 40 | "next_per_crashreport_key": { |
| 41 | "type": "string", |
| 42 | "description": "" |
| 43 | }, |
| 44 | "token": { |
| 45 | "type": "string", |
| 46 | "description": "" |
| 47 | }, |
| 48 | "user": { |
| 49 | "type": "string", |
| 50 | "description": "" |
| 51 | }, |
| 52 | "imei": { |
| 53 | "type": "string", |
| 54 | "description": "" |
| 55 | }, |
| 56 | "chipset": { |
| 57 | "type": "string", |
| 58 | "description": "" |
| 59 | }, |
| 60 | "last_heartbeat": { |
| 61 | "type": "string", |
| 62 | "description": "" |
| 63 | } |
| 64 | } |
| 65 | }, |
| 66 | "name": "data", |
| 67 | "in": "body" |
| 68 | } |
| 69 | ], |
| 70 | "operationId": "devices_create" |
| 71 | } |
| 72 | }, |
| 73 | "/hiccup/api/v1/devices/register/": { |
| 74 | "post": { |
| 75 | "tags": [ |
| 76 | "register" |
| 77 | ], |
| 78 | "responses": { |
| 79 | "201": { |
| 80 | "description": "" |
| 81 | } |
| 82 | }, |
| 83 | "parameters": [], |
| 84 | "operationId": "register_create" |
| 85 | } |
| 86 | }, |
| 87 | "/hiccup/api/v1/devices/{device__uuid}/crashreports/{device_local_id}/": { |
| 88 | "get": { |
| 89 | "tags": [ |
| 90 | "crashreports" |
| 91 | ], |
| 92 | "responses": { |
| 93 | "200": { |
| 94 | "description": "" |
| 95 | } |
| 96 | }, |
| 97 | "parameters": [ |
| 98 | { |
| 99 | "description": "", |
| 100 | "required": true, |
| 101 | "type": "string", |
| 102 | "name": "device__uuid", |
| 103 | "in": "path" |
| 104 | }, |
| 105 | { |
| 106 | "description": "", |
| 107 | "required": true, |
| 108 | "type": "string", |
| 109 | "name": "device_local_id", |
| 110 | "in": "path" |
| 111 | }, |
| 112 | { |
| 113 | "description": "", |
| 114 | "required": false, |
| 115 | "type": "string", |
| 116 | "name": "limit", |
| 117 | "in": "query" |
| 118 | }, |
| 119 | { |
| 120 | "description": "", |
| 121 | "required": false, |
| 122 | "type": "string", |
| 123 | "name": "offset", |
| 124 | "in": "query" |
| 125 | } |
| 126 | ], |
| 127 | "operationId": "crashreports_read" |
| 128 | }, |
| 129 | "put": { |
| 130 | "tags": [ |
| 131 | "crashreports" |
| 132 | ], |
| 133 | "consumes": [ |
| 134 | "application/json" |
| 135 | ], |
| 136 | "responses": { |
| 137 | "200": { |
| 138 | "description": "" |
| 139 | } |
| 140 | }, |
| 141 | "parameters": [ |
| 142 | { |
| 143 | "description": "", |
| 144 | "required": true, |
| 145 | "type": "string", |
| 146 | "name": "device__uuid", |
| 147 | "in": "path" |
| 148 | }, |
| 149 | { |
| 150 | "description": "", |
| 151 | "required": true, |
| 152 | "type": "string", |
| 153 | "name": "device_local_id", |
| 154 | "in": "path" |
| 155 | }, |
| 156 | { |
| 157 | "schema": { |
| 158 | "required": [ |
| 159 | "uuid", |
| 160 | "date", |
| 161 | "app_version", |
| 162 | "uptime", |
| 163 | "build_fingerprint", |
| 164 | "boot_reason", |
| 165 | "power_on_reason", |
| 166 | "power_off_reason" |
| 167 | ], |
| 168 | "type": "object", |
| 169 | "properties": { |
| 170 | "uptime": { |
| 171 | "type": "string", |
| 172 | "description": "" |
| 173 | }, |
| 174 | "is_fake_report": { |
| 175 | "type": "string", |
| 176 | "description": "" |
| 177 | }, |
| 178 | "uuid": { |
| 179 | "type": "string", |
| 180 | "description": "" |
| 181 | }, |
| 182 | "boot_reason": { |
| 183 | "type": "string", |
| 184 | "description": "" |
| 185 | }, |
| 186 | "power_on_reason": { |
| 187 | "type": "string", |
| 188 | "description": "" |
| 189 | }, |
| 190 | "build_fingerprint": { |
| 191 | "type": "string", |
| 192 | "description": "" |
| 193 | }, |
| 194 | "power_off_reason": { |
| 195 | "type": "string", |
| 196 | "description": "" |
| 197 | }, |
| 198 | "radio_version": { |
| 199 | "type": "string", |
| 200 | "description": "" |
| 201 | }, |
| 202 | "next_logfile_key": { |
| 203 | "type": "string", |
| 204 | "description": "" |
| 205 | }, |
| 206 | "date": { |
| 207 | "type": "string", |
| 208 | "description": "" |
| 209 | }, |
| 210 | "app_version": { |
| 211 | "type": "string", |
| 212 | "description": "" |
| 213 | }, |
| 214 | "device_local_id": { |
| 215 | "type": "string", |
| 216 | "description": "" |
| 217 | } |
| 218 | } |
| 219 | }, |
| 220 | "name": "data", |
| 221 | "in": "body" |
| 222 | } |
| 223 | ], |
| 224 | "operationId": "crashreports_update" |
| 225 | }, |
| 226 | "patch": { |
| 227 | "tags": [ |
| 228 | "crashreports" |
| 229 | ], |
| 230 | "consumes": [ |
| 231 | "application/json" |
| 232 | ], |
| 233 | "responses": { |
| 234 | "200": { |
| 235 | "description": "" |
| 236 | } |
| 237 | }, |
| 238 | "parameters": [ |
| 239 | { |
| 240 | "description": "", |
| 241 | "required": true, |
| 242 | "type": "string", |
| 243 | "name": "device__uuid", |
| 244 | "in": "path" |
| 245 | }, |
| 246 | { |
| 247 | "description": "", |
| 248 | "required": true, |
| 249 | "type": "string", |
| 250 | "name": "device_local_id", |
| 251 | "in": "path" |
| 252 | }, |
| 253 | { |
| 254 | "schema": { |
| 255 | "type": "object", |
| 256 | "properties": { |
| 257 | "uptime": { |
| 258 | "type": "string", |
| 259 | "description": "" |
| 260 | }, |
| 261 | "is_fake_report": { |
| 262 | "type": "string", |
| 263 | "description": "" |
| 264 | }, |
| 265 | "uuid": { |
| 266 | "type": "string", |
| 267 | "description": "" |
| 268 | }, |
| 269 | "boot_reason": { |
| 270 | "type": "string", |
| 271 | "description": "" |
| 272 | }, |
| 273 | "power_on_reason": { |
| 274 | "type": "string", |
| 275 | "description": "" |
| 276 | }, |
| 277 | "build_fingerprint": { |
| 278 | "type": "string", |
| 279 | "description": "" |
| 280 | }, |
| 281 | "power_off_reason": { |
| 282 | "type": "string", |
| 283 | "description": "" |
| 284 | }, |
| 285 | "radio_version": { |
| 286 | "type": "string", |
| 287 | "description": "" |
| 288 | }, |
| 289 | "next_logfile_key": { |
| 290 | "type": "string", |
| 291 | "description": "" |
| 292 | }, |
| 293 | "date": { |
| 294 | "type": "string", |
| 295 | "description": "" |
| 296 | }, |
| 297 | "app_version": { |
| 298 | "type": "string", |
| 299 | "description": "" |
| 300 | }, |
| 301 | "device_local_id": { |
| 302 | "type": "string", |
| 303 | "description": "" |
| 304 | } |
| 305 | } |
| 306 | }, |
| 307 | "name": "data", |
| 308 | "in": "body" |
| 309 | } |
| 310 | ], |
| 311 | "operationId": "crashreports_partial_update" |
| 312 | }, |
| 313 | "delete": { |
| 314 | "tags": [ |
| 315 | "crashreports" |
| 316 | ], |
| 317 | "responses": { |
| 318 | "204": { |
| 319 | "description": "" |
| 320 | } |
| 321 | }, |
| 322 | "parameters": [ |
| 323 | { |
| 324 | "description": "", |
| 325 | "required": true, |
| 326 | "type": "string", |
| 327 | "name": "device__uuid", |
| 328 | "in": "path" |
| 329 | }, |
| 330 | { |
| 331 | "description": "", |
| 332 | "required": true, |
| 333 | "type": "string", |
| 334 | "name": "device_local_id", |
| 335 | "in": "path" |
| 336 | } |
| 337 | ], |
| 338 | "operationId": "crashreports_destroy" |
| 339 | } |
| 340 | }, |
| 341 | "/hiccup/api/v1/devices/{uuid}/": { |
| 342 | "get": { |
| 343 | "tags": [ |
| 344 | "devices" |
| 345 | ], |
| 346 | "responses": { |
| 347 | "200": { |
| 348 | "description": "" |
| 349 | } |
| 350 | }, |
| 351 | "parameters": [ |
| 352 | { |
| 353 | "description": "", |
| 354 | "required": true, |
| 355 | "type": "string", |
| 356 | "name": "uuid", |
| 357 | "in": "path" |
| 358 | }, |
| 359 | { |
| 360 | "description": "", |
| 361 | "required": false, |
| 362 | "type": "string", |
| 363 | "name": "limit", |
| 364 | "in": "query" |
| 365 | }, |
| 366 | { |
| 367 | "description": "", |
| 368 | "required": false, |
| 369 | "type": "string", |
| 370 | "name": "offset", |
| 371 | "in": "query" |
| 372 | } |
| 373 | ], |
| 374 | "operationId": "devices_read" |
| 375 | }, |
| 376 | "put": { |
| 377 | "tags": [ |
| 378 | "devices" |
| 379 | ], |
| 380 | "consumes": [ |
| 381 | "application/json" |
| 382 | ], |
| 383 | "responses": { |
| 384 | "200": { |
| 385 | "description": "" |
| 386 | } |
| 387 | }, |
| 388 | "parameters": [ |
| 389 | { |
| 390 | "description": "", |
| 391 | "required": true, |
| 392 | "type": "string", |
| 393 | "name": "uuid", |
| 394 | "in": "path" |
| 395 | }, |
| 396 | { |
| 397 | "schema": { |
| 398 | "required": [ |
| 399 | "board_date", |
| 400 | "last_heartbeat", |
| 401 | "user" |
| 402 | ], |
| 403 | "type": "object", |
| 404 | "properties": { |
| 405 | "board_date": { |
| 406 | "type": "string", |
| 407 | "description": "" |
| 408 | }, |
| 409 | "next_per_heartbeat_key": { |
| 410 | "type": "string", |
| 411 | "description": "" |
| 412 | }, |
| 413 | "next_per_crashreport_key": { |
| 414 | "type": "string", |
| 415 | "description": "" |
| 416 | }, |
| 417 | "token": { |
| 418 | "type": "string", |
| 419 | "description": "" |
| 420 | }, |
| 421 | "user": { |
| 422 | "type": "string", |
| 423 | "description": "" |
| 424 | }, |
| 425 | "imei": { |
| 426 | "type": "string", |
| 427 | "description": "" |
| 428 | }, |
| 429 | "chipset": { |
| 430 | "type": "string", |
| 431 | "description": "" |
| 432 | }, |
| 433 | "last_heartbeat": { |
| 434 | "type": "string", |
| 435 | "description": "" |
| 436 | } |
| 437 | } |
| 438 | }, |
| 439 | "name": "data", |
| 440 | "in": "body" |
| 441 | } |
| 442 | ], |
| 443 | "operationId": "devices_update" |
| 444 | }, |
| 445 | "patch": { |
| 446 | "tags": [ |
| 447 | "devices" |
| 448 | ], |
| 449 | "consumes": [ |
| 450 | "application/json" |
| 451 | ], |
| 452 | "responses": { |
| 453 | "200": { |
| 454 | "description": "" |
| 455 | } |
| 456 | }, |
| 457 | "parameters": [ |
| 458 | { |
| 459 | "description": "", |
| 460 | "required": true, |
| 461 | "type": "string", |
| 462 | "name": "uuid", |
| 463 | "in": "path" |
| 464 | }, |
| 465 | { |
| 466 | "schema": { |
| 467 | "type": "object", |
| 468 | "properties": { |
| 469 | "board_date": { |
| 470 | "type": "string", |
| 471 | "description": "" |
| 472 | }, |
| 473 | "next_per_heartbeat_key": { |
| 474 | "type": "string", |
| 475 | "description": "" |
| 476 | }, |
| 477 | "next_per_crashreport_key": { |
| 478 | "type": "string", |
| 479 | "description": "" |
| 480 | }, |
| 481 | "token": { |
| 482 | "type": "string", |
| 483 | "description": "" |
| 484 | }, |
| 485 | "user": { |
| 486 | "type": "string", |
| 487 | "description": "" |
| 488 | }, |
| 489 | "imei": { |
| 490 | "type": "string", |
| 491 | "description": "" |
| 492 | }, |
| 493 | "chipset": { |
| 494 | "type": "string", |
| 495 | "description": "" |
| 496 | }, |
| 497 | "last_heartbeat": { |
| 498 | "type": "string", |
| 499 | "description": "" |
| 500 | } |
| 501 | } |
| 502 | }, |
| 503 | "name": "data", |
| 504 | "in": "body" |
| 505 | } |
| 506 | ], |
| 507 | "operationId": "devices_partial_update" |
| 508 | }, |
| 509 | "delete": { |
| 510 | "tags": [ |
| 511 | "devices" |
| 512 | ], |
| 513 | "responses": { |
| 514 | "204": { |
| 515 | "description": "" |
| 516 | } |
| 517 | }, |
| 518 | "parameters": [ |
| 519 | { |
| 520 | "description": "", |
| 521 | "required": true, |
| 522 | "type": "string", |
| 523 | "name": "uuid", |
| 524 | "in": "path" |
| 525 | } |
| 526 | ], |
| 527 | "operationId": "devices_destroy" |
| 528 | } |
| 529 | }, |
| 530 | "/hiccup/api/v1/devices/{uuid}/crashreports/": { |
| 531 | "post": { |
| 532 | "tags": [ |
| 533 | "crashreports" |
| 534 | ], |
| 535 | "consumes": [ |
| 536 | "application/json" |
| 537 | ], |
| 538 | "responses": { |
| 539 | "201": { |
| 540 | "description": "" |
| 541 | } |
| 542 | }, |
| 543 | "parameters": [ |
| 544 | { |
| 545 | "description": "", |
| 546 | "required": true, |
| 547 | "type": "string", |
| 548 | "name": "uuid", |
| 549 | "in": "path" |
| 550 | }, |
| 551 | { |
| 552 | "schema": { |
| 553 | "required": [ |
| 554 | "uuid", |
| 555 | "date", |
| 556 | "app_version", |
| 557 | "uptime", |
| 558 | "build_fingerprint", |
| 559 | "boot_reason", |
| 560 | "power_on_reason", |
| 561 | "power_off_reason" |
| 562 | ], |
| 563 | "type": "object", |
| 564 | "properties": { |
| 565 | "uptime": { |
| 566 | "type": "string", |
| 567 | "description": "" |
| 568 | }, |
| 569 | "is_fake_report": { |
| 570 | "type": "string", |
| 571 | "description": "" |
| 572 | }, |
| 573 | "uuid": { |
| 574 | "type": "string", |
| 575 | "description": "" |
| 576 | }, |
| 577 | "boot_reason": { |
| 578 | "type": "string", |
| 579 | "description": "" |
| 580 | }, |
| 581 | "power_on_reason": { |
| 582 | "type": "string", |
| 583 | "description": "" |
| 584 | }, |
| 585 | "build_fingerprint": { |
| 586 | "type": "string", |
| 587 | "description": "" |
| 588 | }, |
| 589 | "power_off_reason": { |
| 590 | "type": "string", |
| 591 | "description": "" |
| 592 | }, |
| 593 | "radio_version": { |
| 594 | "type": "string", |
| 595 | "description": "" |
| 596 | }, |
| 597 | "next_logfile_key": { |
| 598 | "type": "string", |
| 599 | "description": "" |
| 600 | }, |
| 601 | "date": { |
| 602 | "type": "string", |
| 603 | "description": "" |
| 604 | }, |
| 605 | "app_version": { |
| 606 | "type": "string", |
| 607 | "description": "" |
| 608 | }, |
| 609 | "device_local_id": { |
| 610 | "type": "string", |
| 611 | "description": "" |
| 612 | } |
| 613 | } |
| 614 | }, |
| 615 | "name": "data", |
| 616 | "in": "body" |
| 617 | } |
| 618 | ], |
| 619 | "operationId": "crashreports_create" |
| 620 | } |
| 621 | }, |
| 622 | "/hiccup/api/v1/devices/{uuid}/crashreports/{device_local_id}/logfile_put/{filename}/": { |
| 623 | "post": { |
| 624 | "tags": [ |
| 625 | "logfile_put" |
| 626 | ], |
| 627 | "responses": { |
| 628 | "201": { |
| 629 | "description": "" |
| 630 | } |
| 631 | }, |
| 632 | "parameters": [ |
| 633 | { |
| 634 | "description": "", |
| 635 | "required": true, |
| 636 | "type": "string", |
| 637 | "name": "device_local_id", |
| 638 | "in": "path" |
| 639 | }, |
| 640 | { |
| 641 | "description": "", |
| 642 | "required": true, |
| 643 | "type": "string", |
| 644 | "name": "uuid", |
| 645 | "in": "path" |
| 646 | }, |
| 647 | { |
| 648 | "description": "", |
| 649 | "required": true, |
| 650 | "type": "string", |
| 651 | "name": "filename", |
| 652 | "in": "path" |
| 653 | } |
| 654 | ], |
| 655 | "operationId": "logfile_put_create" |
| 656 | } |
| 657 | }, |
| 658 | "/hiccup/api/v1/devices/{uuid}/heartbeats/": { |
| 659 | "post": { |
| 660 | "tags": [ |
| 661 | "heartbeats" |
| 662 | ], |
| 663 | "consumes": [ |
| 664 | "application/json" |
| 665 | ], |
| 666 | "responses": { |
| 667 | "201": { |
| 668 | "description": "" |
| 669 | } |
| 670 | }, |
| 671 | "parameters": [ |
| 672 | { |
| 673 | "description": "", |
| 674 | "required": true, |
| 675 | "type": "string", |
| 676 | "name": "uuid", |
| 677 | "in": "path" |
| 678 | }, |
| 679 | { |
| 680 | "schema": { |
| 681 | "required": [ |
| 682 | "uuid", |
| 683 | "date", |
| 684 | "app_version", |
| 685 | "uptime", |
| 686 | "build_fingerprint" |
| 687 | ], |
| 688 | "type": "object", |
| 689 | "properties": { |
| 690 | "uptime": { |
| 691 | "type": "string", |
| 692 | "description": "" |
| 693 | }, |
| 694 | "uuid": { |
| 695 | "type": "string", |
| 696 | "description": "" |
| 697 | }, |
| 698 | "build_fingerprint": { |
| 699 | "type": "string", |
| 700 | "description": "" |
| 701 | }, |
| 702 | "radio_version": { |
| 703 | "type": "string", |
| 704 | "description": "" |
| 705 | }, |
| 706 | "date": { |
| 707 | "type": "string", |
| 708 | "description": "" |
| 709 | }, |
| 710 | "app_version": { |
| 711 | "type": "string", |
| 712 | "description": "" |
| 713 | }, |
| 714 | "device_local_id": { |
| 715 | "type": "string", |
| 716 | "description": "" |
| 717 | } |
| 718 | } |
| 719 | }, |
| 720 | "name": "data", |
| 721 | "in": "body" |
| 722 | } |
| 723 | ], |
| 724 | "operationId": "heartbeats_create" |
| 725 | } |
| 726 | }, |
| 727 | "/hiccup/api/v1/devices/{uuid}/heartbeats/{device_local_id}/": { |
| 728 | "get": { |
| 729 | "tags": [ |
| 730 | "heartbeats" |
| 731 | ], |
| 732 | "responses": { |
| 733 | "200": { |
| 734 | "description": "" |
| 735 | } |
| 736 | }, |
| 737 | "parameters": [ |
| 738 | { |
| 739 | "description": "", |
| 740 | "required": true, |
| 741 | "type": "string", |
| 742 | "name": "uuid", |
| 743 | "in": "path" |
| 744 | }, |
| 745 | { |
| 746 | "description": "", |
| 747 | "required": true, |
| 748 | "type": "string", |
| 749 | "name": "device_local_id", |
| 750 | "in": "path" |
| 751 | }, |
| 752 | { |
| 753 | "description": "", |
| 754 | "required": false, |
| 755 | "type": "string", |
| 756 | "name": "limit", |
| 757 | "in": "query" |
| 758 | }, |
| 759 | { |
| 760 | "description": "", |
| 761 | "required": false, |
| 762 | "type": "string", |
| 763 | "name": "offset", |
| 764 | "in": "query" |
| 765 | } |
| 766 | ], |
| 767 | "operationId": "heartbeats_read" |
| 768 | }, |
| 769 | "put": { |
| 770 | "tags": [ |
| 771 | "heartbeats" |
| 772 | ], |
| 773 | "consumes": [ |
| 774 | "application/json" |
| 775 | ], |
| 776 | "responses": { |
| 777 | "200": { |
| 778 | "description": "" |
| 779 | } |
| 780 | }, |
| 781 | "parameters": [ |
| 782 | { |
| 783 | "description": "", |
| 784 | "required": true, |
| 785 | "type": "string", |
| 786 | "name": "uuid", |
| 787 | "in": "path" |
| 788 | }, |
| 789 | { |
| 790 | "description": "", |
| 791 | "required": true, |
| 792 | "type": "string", |
| 793 | "name": "device_local_id", |
| 794 | "in": "path" |
| 795 | }, |
| 796 | { |
| 797 | "schema": { |
| 798 | "required": [ |
| 799 | "uuid", |
| 800 | "date", |
| 801 | "app_version", |
| 802 | "uptime", |
| 803 | "build_fingerprint" |
| 804 | ], |
| 805 | "type": "object", |
| 806 | "properties": { |
| 807 | "uptime": { |
| 808 | "type": "string", |
| 809 | "description": "" |
| 810 | }, |
| 811 | "uuid": { |
| 812 | "type": "string", |
| 813 | "description": "" |
| 814 | }, |
| 815 | "build_fingerprint": { |
| 816 | "type": "string", |
| 817 | "description": "" |
| 818 | }, |
| 819 | "radio_version": { |
| 820 | "type": "string", |
| 821 | "description": "" |
| 822 | }, |
| 823 | "date": { |
| 824 | "type": "string", |
| 825 | "description": "" |
| 826 | }, |
| 827 | "app_version": { |
| 828 | "type": "string", |
| 829 | "description": "" |
| 830 | }, |
| 831 | "device_local_id": { |
| 832 | "type": "string", |
| 833 | "description": "" |
| 834 | } |
| 835 | } |
| 836 | }, |
| 837 | "name": "data", |
| 838 | "in": "body" |
| 839 | } |
| 840 | ], |
| 841 | "operationId": "heartbeats_update" |
| 842 | }, |
| 843 | "patch": { |
| 844 | "tags": [ |
| 845 | "heartbeats" |
| 846 | ], |
| 847 | "consumes": [ |
| 848 | "application/json" |
| 849 | ], |
| 850 | "responses": { |
| 851 | "200": { |
| 852 | "description": "" |
| 853 | } |
| 854 | }, |
| 855 | "parameters": [ |
| 856 | { |
| 857 | "description": "", |
| 858 | "required": true, |
| 859 | "type": "string", |
| 860 | "name": "uuid", |
| 861 | "in": "path" |
| 862 | }, |
| 863 | { |
| 864 | "description": "", |
| 865 | "required": true, |
| 866 | "type": "string", |
| 867 | "name": "device_local_id", |
| 868 | "in": "path" |
| 869 | }, |
| 870 | { |
| 871 | "schema": { |
| 872 | "type": "object", |
| 873 | "properties": { |
| 874 | "uptime": { |
| 875 | "type": "string", |
| 876 | "description": "" |
| 877 | }, |
| 878 | "uuid": { |
| 879 | "type": "string", |
| 880 | "description": "" |
| 881 | }, |
| 882 | "build_fingerprint": { |
| 883 | "type": "string", |
| 884 | "description": "" |
| 885 | }, |
| 886 | "radio_version": { |
| 887 | "type": "string", |
| 888 | "description": "" |
| 889 | }, |
| 890 | "date": { |
| 891 | "type": "string", |
| 892 | "description": "" |
| 893 | }, |
| 894 | "app_version": { |
| 895 | "type": "string", |
| 896 | "description": "" |
| 897 | }, |
| 898 | "device_local_id": { |
| 899 | "type": "string", |
| 900 | "description": "" |
| 901 | } |
| 902 | } |
| 903 | }, |
| 904 | "name": "data", |
| 905 | "in": "body" |
| 906 | } |
| 907 | ], |
| 908 | "operationId": "heartbeats_partial_update" |
| 909 | }, |
| 910 | "delete": { |
| 911 | "tags": [ |
| 912 | "heartbeats" |
| 913 | ], |
| 914 | "responses": { |
| 915 | "204": { |
| 916 | "description": "" |
| 917 | } |
| 918 | }, |
| 919 | "parameters": [ |
| 920 | { |
| 921 | "description": "", |
| 922 | "required": true, |
| 923 | "type": "string", |
| 924 | "name": "uuid", |
| 925 | "in": "path" |
| 926 | }, |
| 927 | { |
| 928 | "description": "", |
| 929 | "required": true, |
| 930 | "type": "string", |
| 931 | "name": "device_local_id", |
| 932 | "in": "path" |
| 933 | } |
| 934 | ], |
| 935 | "operationId": "heartbeats_destroy" |
| 936 | } |
| 937 | }, |
| 938 | "/hiccup/api/v1/logfiles/{pk}/": { |
| 939 | "get": { |
| 940 | "tags": [ |
| 941 | "logfiles" |
| 942 | ], |
| 943 | "responses": { |
| 944 | "200": { |
| 945 | "description": "" |
| 946 | } |
| 947 | }, |
| 948 | "parameters": [ |
| 949 | { |
| 950 | "description": "", |
| 951 | "required": true, |
| 952 | "type": "string", |
| 953 | "name": "pk", |
| 954 | "in": "path" |
| 955 | }, |
| 956 | { |
| 957 | "description": "", |
| 958 | "required": false, |
| 959 | "type": "string", |
| 960 | "name": "limit", |
| 961 | "in": "query" |
| 962 | }, |
| 963 | { |
| 964 | "description": "", |
| 965 | "required": false, |
| 966 | "type": "string", |
| 967 | "name": "offset", |
| 968 | "in": "query" |
| 969 | } |
| 970 | ], |
| 971 | "operationId": "logfiles_read" |
| 972 | }, |
| 973 | "put": { |
| 974 | "tags": [ |
| 975 | "logfiles" |
| 976 | ], |
| 977 | "consumes": [ |
| 978 | "application/json" |
| 979 | ], |
| 980 | "responses": { |
| 981 | "200": { |
| 982 | "description": "" |
| 983 | } |
| 984 | }, |
| 985 | "parameters": [ |
| 986 | { |
| 987 | "description": "", |
| 988 | "required": true, |
| 989 | "type": "string", |
| 990 | "name": "pk", |
| 991 | "in": "path" |
| 992 | }, |
| 993 | { |
| 994 | "schema": { |
| 995 | "required": [ |
| 996 | "logfile", |
| 997 | "crashreport" |
| 998 | ], |
| 999 | "type": "object", |
| 1000 | "properties": { |
| 1001 | "logfile": { |
| 1002 | "type": "string", |
| 1003 | "description": "" |
| 1004 | }, |
| 1005 | "crashreport": { |
| 1006 | "type": "string", |
| 1007 | "description": "" |
| 1008 | }, |
| 1009 | "crashreport_local_id": { |
| 1010 | "type": "string", |
| 1011 | "description": "" |
| 1012 | }, |
| 1013 | "logfile_type": { |
| 1014 | "type": "string", |
| 1015 | "description": "" |
| 1016 | } |
| 1017 | } |
| 1018 | }, |
| 1019 | "name": "data", |
| 1020 | "in": "body" |
| 1021 | } |
| 1022 | ], |
| 1023 | "operationId": "logfiles_update" |
| 1024 | }, |
| 1025 | "patch": { |
| 1026 | "tags": [ |
| 1027 | "logfiles" |
| 1028 | ], |
| 1029 | "consumes": [ |
| 1030 | "application/json" |
| 1031 | ], |
| 1032 | "responses": { |
| 1033 | "200": { |
| 1034 | "description": "" |
| 1035 | } |
| 1036 | }, |
| 1037 | "parameters": [ |
| 1038 | { |
| 1039 | "description": "", |
| 1040 | "required": true, |
| 1041 | "type": "string", |
| 1042 | "name": "pk", |
| 1043 | "in": "path" |
| 1044 | }, |
| 1045 | { |
| 1046 | "schema": { |
| 1047 | "type": "object", |
| 1048 | "properties": { |
| 1049 | "logfile": { |
| 1050 | "type": "string", |
| 1051 | "description": "" |
| 1052 | }, |
| 1053 | "crashreport": { |
| 1054 | "type": "string", |
| 1055 | "description": "" |
| 1056 | }, |
| 1057 | "crashreport_local_id": { |
| 1058 | "type": "string", |
| 1059 | "description": "" |
| 1060 | }, |
| 1061 | "logfile_type": { |
| 1062 | "type": "string", |
| 1063 | "description": "" |
| 1064 | } |
| 1065 | } |
| 1066 | }, |
| 1067 | "name": "data", |
| 1068 | "in": "body" |
| 1069 | } |
| 1070 | ], |
| 1071 | "operationId": "logfiles_partial_update" |
| 1072 | }, |
| 1073 | "delete": { |
| 1074 | "tags": [ |
| 1075 | "logfiles" |
| 1076 | ], |
| 1077 | "responses": { |
| 1078 | "204": { |
| 1079 | "description": "" |
| 1080 | } |
| 1081 | }, |
| 1082 | "parameters": [ |
| 1083 | { |
| 1084 | "description": "", |
| 1085 | "required": true, |
| 1086 | "type": "string", |
| 1087 | "name": "pk", |
| 1088 | "in": "path" |
| 1089 | } |
| 1090 | ], |
| 1091 | "operationId": "logfiles_destroy" |
| 1092 | } |
| 1093 | }, |
| 1094 | "/hiccup/docs/": { |
| 1095 | "get": { |
| 1096 | "tags": [ |
| 1097 | "docs" |
| 1098 | ], |
| 1099 | "responses": { |
| 1100 | "200": { |
| 1101 | "description": "" |
| 1102 | } |
| 1103 | }, |
| 1104 | "parameters": [], |
| 1105 | "operationId": "docs_read" |
| 1106 | } |
| 1107 | }, |
| 1108 | "/hiccup_stats/api/v1/device_overview/{uuid}/": { |
| 1109 | "get": { |
| 1110 | "tags": [ |
| 1111 | "device_overview" |
| 1112 | ], |
| 1113 | "responses": { |
| 1114 | "200": { |
| 1115 | "description": "" |
| 1116 | } |
| 1117 | }, |
| 1118 | "parameters": [ |
| 1119 | { |
| 1120 | "description": "", |
| 1121 | "required": true, |
| 1122 | "type": "string", |
| 1123 | "name": "uuid", |
| 1124 | "in": "path" |
| 1125 | } |
| 1126 | ], |
| 1127 | "operationId": "device_overview_read" |
| 1128 | } |
| 1129 | }, |
| 1130 | "/hiccup_stats/api/v1/device_report_history/{uuid}/": { |
| 1131 | "get": { |
| 1132 | "tags": [ |
| 1133 | "device_report_history" |
| 1134 | ], |
| 1135 | "responses": { |
| 1136 | "200": { |
| 1137 | "description": "" |
| 1138 | } |
| 1139 | }, |
| 1140 | "parameters": [ |
| 1141 | { |
| 1142 | "description": "", |
| 1143 | "required": true, |
| 1144 | "type": "string", |
| 1145 | "name": "uuid", |
| 1146 | "in": "path" |
| 1147 | } |
| 1148 | ], |
| 1149 | "operationId": "device_report_history_read" |
| 1150 | } |
| 1151 | }, |
| 1152 | "/hiccup_stats/api/v1/device_update_history/{uuid}/": { |
| 1153 | "get": { |
| 1154 | "tags": [ |
| 1155 | "device_update_history" |
| 1156 | ], |
| 1157 | "responses": { |
| 1158 | "200": { |
| 1159 | "description": "" |
| 1160 | } |
| 1161 | }, |
| 1162 | "parameters": [ |
| 1163 | { |
| 1164 | "description": "", |
| 1165 | "required": true, |
| 1166 | "type": "string", |
| 1167 | "name": "uuid", |
| 1168 | "in": "path" |
| 1169 | } |
| 1170 | ], |
| 1171 | "operationId": "device_update_history_read" |
| 1172 | } |
| 1173 | }, |
| 1174 | "/hiccup_stats/api/v1/logfile_download/{id}/": { |
| 1175 | "get": { |
| 1176 | "tags": [ |
| 1177 | "logfile_download" |
| 1178 | ], |
| 1179 | "responses": { |
| 1180 | "200": { |
| 1181 | "description": "" |
| 1182 | } |
| 1183 | }, |
| 1184 | "parameters": [ |
| 1185 | { |
| 1186 | "description": "", |
| 1187 | "required": true, |
| 1188 | "type": "string", |
| 1189 | "name": "id", |
| 1190 | "in": "path" |
| 1191 | } |
| 1192 | ], |
| 1193 | "operationId": "logfile_download_read" |
| 1194 | } |
| 1195 | }, |
| 1196 | "/hiccup_stats/api/v1/status/": { |
| 1197 | "get": { |
| 1198 | "tags": [ |
| 1199 | "status" |
| 1200 | ], |
| 1201 | "responses": { |
| 1202 | "200": { |
| 1203 | "description": "" |
| 1204 | } |
| 1205 | }, |
| 1206 | "parameters": [], |
| 1207 | "operationId": "status_read" |
| 1208 | } |
| 1209 | }, |
| 1210 | "/hiccup_stats/api/v1/version_daily/": { |
| 1211 | "get": { |
| 1212 | "tags": [ |
| 1213 | "version_daily" |
| 1214 | ], |
| 1215 | "responses": { |
| 1216 | "200": { |
| 1217 | "description": "" |
| 1218 | } |
| 1219 | }, |
| 1220 | "parameters": [ |
| 1221 | { |
| 1222 | "description": "", |
| 1223 | "required": false, |
| 1224 | "type": "string", |
| 1225 | "name": "limit", |
| 1226 | "in": "query" |
| 1227 | }, |
| 1228 | { |
| 1229 | "description": "", |
| 1230 | "required": false, |
| 1231 | "type": "string", |
| 1232 | "name": "offset", |
| 1233 | "in": "query" |
| 1234 | }, |
| 1235 | { |
| 1236 | "description": "", |
| 1237 | "required": false, |
| 1238 | "type": "string", |
| 1239 | "name": "date", |
| 1240 | "in": "query" |
| 1241 | }, |
| 1242 | { |
| 1243 | "description": "", |
| 1244 | "required": false, |
| 1245 | "type": "string", |
| 1246 | "name": "heartbeats", |
| 1247 | "in": "query" |
| 1248 | }, |
| 1249 | { |
| 1250 | "description": "", |
| 1251 | "required": false, |
| 1252 | "type": "string", |
| 1253 | "name": "prob_crashes", |
| 1254 | "in": "query" |
| 1255 | }, |
| 1256 | { |
| 1257 | "description": "", |
| 1258 | "required": false, |
| 1259 | "type": "string", |
| 1260 | "name": "smpl", |
| 1261 | "in": "query" |
| 1262 | }, |
| 1263 | { |
| 1264 | "description": "", |
| 1265 | "required": false, |
| 1266 | "type": "string", |
| 1267 | "name": "other", |
| 1268 | "in": "query" |
| 1269 | }, |
| 1270 | { |
| 1271 | "description": "", |
| 1272 | "required": false, |
| 1273 | "type": "string", |
| 1274 | "name": "version", |
| 1275 | "in": "query" |
| 1276 | }, |
| 1277 | { |
| 1278 | "description": "", |
| 1279 | "required": false, |
| 1280 | "type": "string", |
| 1281 | "name": "date_start", |
| 1282 | "in": "query" |
| 1283 | }, |
| 1284 | { |
| 1285 | "description": "", |
| 1286 | "required": false, |
| 1287 | "type": "string", |
| 1288 | "name": "date_end", |
| 1289 | "in": "query" |
| 1290 | }, |
| 1291 | { |
| 1292 | "description": "", |
| 1293 | "required": false, |
| 1294 | "type": "string", |
| 1295 | "name": "version__build_fingerprint", |
| 1296 | "in": "query" |
| 1297 | }, |
| 1298 | { |
| 1299 | "description": "", |
| 1300 | "required": false, |
| 1301 | "type": "string", |
| 1302 | "name": "version__is_official_release", |
| 1303 | "in": "query" |
| 1304 | }, |
| 1305 | { |
| 1306 | "description": "", |
| 1307 | "required": false, |
| 1308 | "type": "string", |
| 1309 | "name": "version__is_beta_release", |
| 1310 | "in": "query" |
| 1311 | } |
| 1312 | ], |
| 1313 | "operationId": "version_daily_read" |
| 1314 | } |
| 1315 | }, |
| 1316 | "/hiccup_stats/api/v1/versions/": { |
| 1317 | "get": { |
| 1318 | "tags": [ |
| 1319 | "versions" |
| 1320 | ], |
| 1321 | "responses": { |
| 1322 | "200": { |
| 1323 | "description": "" |
| 1324 | } |
| 1325 | }, |
| 1326 | "parameters": [ |
| 1327 | { |
| 1328 | "description": "", |
| 1329 | "required": false, |
| 1330 | "type": "string", |
| 1331 | "name": "limit", |
| 1332 | "in": "query" |
| 1333 | }, |
| 1334 | { |
| 1335 | "description": "", |
| 1336 | "required": false, |
| 1337 | "type": "string", |
| 1338 | "name": "offset", |
| 1339 | "in": "query" |
| 1340 | }, |
| 1341 | { |
| 1342 | "description": "", |
| 1343 | "required": false, |
| 1344 | "type": "string", |
| 1345 | "name": "is_official_release", |
| 1346 | "in": "query" |
| 1347 | }, |
| 1348 | { |
| 1349 | "description": "", |
| 1350 | "required": false, |
| 1351 | "type": "string", |
| 1352 | "name": "is_beta_release", |
| 1353 | "in": "query" |
| 1354 | }, |
| 1355 | { |
| 1356 | "description": "", |
| 1357 | "required": false, |
| 1358 | "type": "string", |
| 1359 | "name": "first_seen_on", |
| 1360 | "in": "query" |
| 1361 | }, |
| 1362 | { |
| 1363 | "description": "", |
| 1364 | "required": false, |
| 1365 | "type": "string", |
| 1366 | "name": "released_on", |
| 1367 | "in": "query" |
| 1368 | }, |
| 1369 | { |
| 1370 | "description": "", |
| 1371 | "required": false, |
| 1372 | "type": "string", |
| 1373 | "name": "heartbeats", |
| 1374 | "in": "query" |
| 1375 | }, |
| 1376 | { |
| 1377 | "description": "", |
| 1378 | "required": false, |
| 1379 | "type": "string", |
| 1380 | "name": "prob_crashes", |
| 1381 | "in": "query" |
| 1382 | }, |
| 1383 | { |
| 1384 | "description": "", |
| 1385 | "required": false, |
| 1386 | "type": "string", |
| 1387 | "name": "smpl", |
| 1388 | "in": "query" |
| 1389 | }, |
| 1390 | { |
| 1391 | "description": "", |
| 1392 | "required": false, |
| 1393 | "type": "string", |
| 1394 | "name": "other", |
| 1395 | "in": "query" |
| 1396 | }, |
| 1397 | { |
| 1398 | "description": "", |
| 1399 | "required": false, |
| 1400 | "type": "string", |
| 1401 | "name": "build_fingerprint", |
| 1402 | "in": "query" |
| 1403 | }, |
| 1404 | { |
| 1405 | "description": "", |
| 1406 | "required": false, |
| 1407 | "type": "string", |
| 1408 | "name": "first_seen_before", |
| 1409 | "in": "query" |
| 1410 | }, |
| 1411 | { |
| 1412 | "description": "", |
| 1413 | "required": false, |
| 1414 | "type": "string", |
| 1415 | "name": "first_seen_after", |
| 1416 | "in": "query" |
| 1417 | }, |
| 1418 | { |
| 1419 | "description": "", |
| 1420 | "required": false, |
| 1421 | "type": "string", |
| 1422 | "name": "released_before", |
| 1423 | "in": "query" |
| 1424 | }, |
| 1425 | { |
| 1426 | "description": "", |
| 1427 | "required": false, |
| 1428 | "type": "string", |
| 1429 | "name": "released_after", |
| 1430 | "in": "query" |
| 1431 | } |
| 1432 | ], |
| 1433 | "operationId": "versions_read" |
| 1434 | } |
| 1435 | } |
| 1436 | }, |
| 1437 | "securityDefinitions": { |
| 1438 | "basic": { |
| 1439 | "type": "basic" |
| 1440 | } |
| 1441 | } |
| 1442 | } |