|
422 | 422 | "title": "V3 Summarized Service Costs", |
423 | 423 | "type": "object" |
424 | 424 | }, |
425 | | - "defaultError": { |
426 | | - "description": "A standard error object.", |
| 425 | + "authErrorResponse": { |
427 | 426 | "properties": { |
428 | | - "code": { |
| 427 | + "error": { |
429 | 428 | "type": "string" |
430 | 429 | }, |
431 | 430 | "message": { |
432 | 431 | "type": "string" |
| 432 | + }, |
| 433 | + "path": { |
| 434 | + "type": "string" |
| 435 | + }, |
| 436 | + "status": { |
| 437 | + "format": "int32", |
| 438 | + "type": "integer" |
| 439 | + }, |
| 440 | + "timeStamp": { |
| 441 | + "format": "date-time", |
| 442 | + "type": "string" |
| 443 | + } |
| 444 | + }, |
| 445 | + "required": [ |
| 446 | + "timeStamp", |
| 447 | + "path", |
| 448 | + "status", |
| 449 | + "error", |
| 450 | + "message" |
| 451 | + ], |
| 452 | + "type": "object" |
| 453 | + }, |
| 454 | + "errorResponse": { |
| 455 | + "properties": { |
| 456 | + "msg": { |
| 457 | + "type": "string" |
433 | 458 | } |
434 | 459 | }, |
435 | 460 | "required": [ |
436 | | - "code" |
| 461 | + "msg" |
437 | 462 | ], |
438 | 463 | "title": "Error", |
439 | 464 | "type": "object" |
|
515 | 540 | "description": "OK" |
516 | 541 | }, |
517 | 542 | "400": { |
| 543 | + "content": { |
| 544 | + "application/json": { |
| 545 | + "schema": { |
| 546 | + "$ref": "#/components/schemas/errorResponse" |
| 547 | + } |
| 548 | + }, |
| 549 | + "text/csv": { |
| 550 | + "schema": { |
| 551 | + "type": "string" |
| 552 | + } |
| 553 | + } |
| 554 | + }, |
518 | 555 | "description": "Bad request" |
519 | 556 | }, |
520 | 557 | "401": { |
521 | 558 | "content": { |
522 | 559 | "application/json": { |
523 | 560 | "schema": { |
524 | | - "type": "object" |
| 561 | + "$ref": "#/components/schemas/authErrorResponse" |
525 | 562 | } |
526 | 563 | } |
527 | 564 | }, |
528 | 565 | "description": "Unauthorized" |
529 | 566 | }, |
530 | | - "404": { |
531 | | - "description": "Customer account not found" |
| 567 | + "403": { |
| 568 | + "content": { |
| 569 | + "application/json": { |
| 570 | + "schema": { |
| 571 | + "$ref": "#/components/schemas/authErrorResponse" |
| 572 | + } |
| 573 | + } |
| 574 | + }, |
| 575 | + "description": "Forbidden" |
532 | 576 | }, |
533 | | - "default": { |
| 577 | + "404": { |
534 | 578 | "content": { |
535 | 579 | "application/json": { |
536 | 580 | "schema": { |
537 | | - "$ref": "#/components/schemas/defaultError" |
| 581 | + "$ref": "#/components/schemas/errorResponse" |
538 | 582 | } |
539 | 583 | }, |
540 | 584 | "text/csv": { |
|
543 | 587 | } |
544 | 588 | } |
545 | 589 | }, |
546 | | - "description": "Not Implemented" |
| 590 | + "description": "Not found" |
547 | 591 | } |
548 | 592 | }, |
549 | 593 | "summary": "V3 Costs for all projects", |
|
636 | 680 | "description": "OK" |
637 | 681 | }, |
638 | 682 | "400": { |
| 683 | + "content": { |
| 684 | + "application/json": { |
| 685 | + "schema": { |
| 686 | + "$ref": "#/components/schemas/errorResponse" |
| 687 | + } |
| 688 | + }, |
| 689 | + "text/csv": { |
| 690 | + "schema": { |
| 691 | + "type": "string" |
| 692 | + } |
| 693 | + } |
| 694 | + }, |
639 | 695 | "description": "Bad request" |
640 | 696 | }, |
641 | 697 | "401": { |
642 | 698 | "content": { |
643 | 699 | "application/json": { |
644 | 700 | "schema": { |
645 | | - "type": "object" |
| 701 | + "$ref": "#/components/schemas/authErrorResponse" |
646 | 702 | } |
647 | 703 | } |
648 | 704 | }, |
649 | 705 | "description": "Unauthorized" |
650 | 706 | }, |
651 | | - "404": { |
652 | | - "description": "Customer account not found" |
| 707 | + "403": { |
| 708 | + "content": { |
| 709 | + "application/json": { |
| 710 | + "schema": { |
| 711 | + "$ref": "#/components/schemas/authErrorResponse" |
| 712 | + } |
| 713 | + } |
| 714 | + }, |
| 715 | + "description": "Forbidden" |
653 | 716 | }, |
654 | | - "default": { |
| 717 | + "404": { |
655 | 718 | "content": { |
656 | 719 | "application/json": { |
657 | 720 | "schema": { |
658 | | - "$ref": "#/components/schemas/defaultError" |
| 721 | + "$ref": "#/components/schemas/errorResponse" |
659 | 722 | } |
660 | 723 | }, |
661 | 724 | "text/csv": { |
|
664 | 727 | } |
665 | 728 | } |
666 | 729 | }, |
667 | | - "description": "Not Implemented" |
| 730 | + "description": "Not found" |
668 | 731 | } |
669 | 732 | }, |
670 | 733 | "summary": "V3 Costs for all projects of all related sub-customers", |
|
754 | 817 | "description": "OK" |
755 | 818 | }, |
756 | 819 | "400": { |
| 820 | + "content": { |
| 821 | + "application/json": { |
| 822 | + "schema": { |
| 823 | + "$ref": "#/components/schemas/errorResponse" |
| 824 | + } |
| 825 | + }, |
| 826 | + "text/csv": { |
| 827 | + "schema": { |
| 828 | + "type": "string" |
| 829 | + } |
| 830 | + } |
| 831 | + }, |
757 | 832 | "description": "Bad request" |
758 | 833 | }, |
759 | 834 | "401": { |
760 | 835 | "content": { |
761 | 836 | "application/json": { |
762 | 837 | "schema": { |
763 | | - "type": "object" |
| 838 | + "$ref": "#/components/schemas/authErrorResponse" |
764 | 839 | } |
765 | 840 | } |
766 | 841 | }, |
767 | 842 | "description": "Unauthorized" |
768 | 843 | }, |
769 | | - "404": { |
770 | | - "description": "Customer account or project not found" |
| 844 | + "403": { |
| 845 | + "content": { |
| 846 | + "application/json": { |
| 847 | + "schema": { |
| 848 | + "$ref": "#/components/schemas/authErrorResponse" |
| 849 | + } |
| 850 | + } |
| 851 | + }, |
| 852 | + "description": "Forbidden" |
771 | 853 | }, |
772 | | - "default": { |
| 854 | + "404": { |
773 | 855 | "content": { |
774 | 856 | "application/json": { |
775 | 857 | "schema": { |
776 | | - "$ref": "#/components/schemas/defaultError" |
| 858 | + "$ref": "#/components/schemas/errorResponse" |
777 | 859 | } |
778 | 860 | }, |
779 | 861 | "text/csv": { |
|
782 | 864 | } |
783 | 865 | } |
784 | 866 | }, |
785 | | - "description": "Not Implemented" |
| 867 | + "description": "Not found" |
786 | 868 | } |
787 | 869 | }, |
788 | 870 | "summary": "V3 Costs for a certain project", |
|
0 commit comments