|
700 | 700 | "get": { |
701 | 701 | "operationId": "CampaignController_findAll", |
702 | 702 | "summary": "List Campaigns", |
703 | | - "parameters": [ |
704 | | - { |
705 | | - "name": "limit", |
706 | | - "required": false, |
707 | | - "in": "query", |
708 | | - "description": "This is the maximum number of items to return. Defaults to 100.", |
709 | | - "schema": { |
710 | | - "minimum": 0, |
711 | | - "maximum": 1000, |
712 | | - "type": "number" |
713 | | - } |
714 | | - }, |
715 | | - { |
716 | | - "name": "createdAtGt", |
717 | | - "required": false, |
718 | | - "in": "query", |
719 | | - "description": "This will return items where the createdAt is greater than the specified value.", |
720 | | - "schema": { |
721 | | - "format": "date-time", |
722 | | - "type": "string" |
723 | | - } |
724 | | - }, |
725 | | - { |
726 | | - "name": "createdAtLt", |
727 | | - "required": false, |
728 | | - "in": "query", |
729 | | - "description": "This will return items where the createdAt is less than the specified value.", |
730 | | - "schema": { |
731 | | - "format": "date-time", |
732 | | - "type": "string" |
733 | | - } |
734 | | - }, |
735 | | - { |
736 | | - "name": "createdAtGe", |
737 | | - "required": false, |
738 | | - "in": "query", |
739 | | - "description": "This will return items where the createdAt is greater than or equal to the specified value.", |
740 | | - "schema": { |
741 | | - "format": "date-time", |
742 | | - "type": "string" |
743 | | - } |
744 | | - }, |
745 | | - { |
746 | | - "name": "createdAtLe", |
747 | | - "required": false, |
748 | | - "in": "query", |
749 | | - "description": "This will return items where the createdAt is less than or equal to the specified value.", |
750 | | - "schema": { |
751 | | - "format": "date-time", |
752 | | - "type": "string" |
753 | | - } |
754 | | - }, |
755 | | - { |
756 | | - "name": "updatedAtGt", |
757 | | - "required": false, |
758 | | - "in": "query", |
759 | | - "description": "This will return items where the updatedAt is greater than the specified value.", |
760 | | - "schema": { |
761 | | - "format": "date-time", |
762 | | - "type": "string" |
763 | | - } |
764 | | - }, |
765 | | - { |
766 | | - "name": "updatedAtLt", |
767 | | - "required": false, |
768 | | - "in": "query", |
769 | | - "description": "This will return items where the updatedAt is less than the specified value.", |
770 | | - "schema": { |
771 | | - "format": "date-time", |
772 | | - "type": "string" |
773 | | - } |
774 | | - }, |
775 | | - { |
776 | | - "name": "updatedAtGe", |
777 | | - "required": false, |
778 | | - "in": "query", |
779 | | - "description": "This will return items where the updatedAt is greater than or equal to the specified value.", |
780 | | - "schema": { |
781 | | - "format": "date-time", |
782 | | - "type": "string" |
783 | | - } |
784 | | - }, |
785 | | - { |
786 | | - "name": "updatedAtLe", |
787 | | - "required": false, |
788 | | - "in": "query", |
789 | | - "description": "This will return items where the updatedAt is less than or equal to the specified value.", |
790 | | - "schema": { |
791 | | - "format": "date-time", |
792 | | - "type": "string" |
793 | | - } |
794 | | - } |
795 | | - ], |
796 | | - "responses": { |
797 | | - "200": { |
798 | | - "description": "", |
799 | | - "content": { |
800 | | - "application/json": { |
801 | | - "schema": { |
802 | | - "type": "array", |
803 | | - "items": { |
804 | | - "$ref": "#/components/schemas/Campaign" |
805 | | - } |
806 | | - } |
807 | | - } |
808 | | - } |
809 | | - } |
810 | | - }, |
811 | | - "tags": [ |
812 | | - "Campaigns" |
813 | | - ], |
814 | | - "security": [ |
815 | | - { |
816 | | - "bearer": [] |
817 | | - } |
818 | | - ] |
819 | | - } |
820 | | - }, |
821 | | - "/campaign/paginated": { |
822 | | - "get": { |
823 | | - "operationId": "CampaignController_findAllPaginated", |
824 | | - "summary": "List Campaigns with pagination", |
825 | 703 | "parameters": [ |
826 | 704 | { |
827 | 705 | "name": "id", |
|
965 | 843 | "content": { |
966 | 844 | "application/json": { |
967 | 845 | "schema": { |
968 | | - "$ref": "#/components/schemas/Campaign" |
| 846 | + "$ref": "#/components/schemas/CampaignPaginatedResponse" |
969 | 847 | } |
970 | 848 | } |
971 | 849 | } |
|
27115 | 26993 | "callsCounterEnded" |
27116 | 26994 | ] |
27117 | 26995 | }, |
| 26996 | + "CampaignPaginatedResponse": { |
| 26997 | + "type": "object", |
| 26998 | + "properties": { |
| 26999 | + "results": { |
| 27000 | + "type": "array", |
| 27001 | + "items": { |
| 27002 | + "$ref": "#/components/schemas/Campaign" |
| 27003 | + } |
| 27004 | + }, |
| 27005 | + "metadata": { |
| 27006 | + "$ref": "#/components/schemas/PaginationMeta" |
| 27007 | + } |
| 27008 | + }, |
| 27009 | + "required": [ |
| 27010 | + "results", |
| 27011 | + "metadata" |
| 27012 | + ] |
| 27013 | + }, |
27118 | 27014 | "UpdateCampaignDTO": { |
27119 | 27015 | "type": "object", |
27120 | 27016 | "properties": { |
|
0 commit comments