|
4723 | 4723 | } |
4724 | 4724 | } |
4725 | 4725 | }, |
4726 | | - "/api/v2/subscribe-pages/{id}": { |
| 4726 | + "/api/v2/subscribe-pages": { |
4727 | 4727 | "get": { |
4728 | 4728 | "tags": [ |
4729 | 4729 | "subscriptions" |
4730 | 4730 | ], |
4731 | | - "summary": "Get subscribe page", |
| 4731 | + "summary": "Get subscribe pages list", |
4732 | 4732 | "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production.", |
4733 | | - "operationId": "390db83b1de32e07d2d52b310eb0c1ea", |
| 4733 | + "operationId": "1a89921fa5f82ce43daf2ca40dc3f954", |
4734 | 4734 | "parameters": [ |
4735 | 4735 | { |
4736 | 4736 | "name": "php-auth-pw", |
|
4742 | 4742 | } |
4743 | 4743 | }, |
4744 | 4744 | { |
4745 | | - "name": "id", |
4746 | | - "in": "path", |
4747 | | - "description": "Subscribe page ID", |
4748 | | - "required": true, |
| 4745 | + "name": "after_id", |
| 4746 | + "in": "query", |
| 4747 | + "description": "Last id (starting from 0)", |
| 4748 | + "required": false, |
4749 | 4749 | "schema": { |
4750 | | - "type": "integer" |
| 4750 | + "type": "integer", |
| 4751 | + "default": 1, |
| 4752 | + "minimum": 1 |
| 4753 | + } |
| 4754 | + }, |
| 4755 | + { |
| 4756 | + "name": "limit", |
| 4757 | + "in": "query", |
| 4758 | + "description": "Number of results per page", |
| 4759 | + "required": false, |
| 4760 | + "schema": { |
| 4761 | + "type": "integer", |
| 4762 | + "default": 25, |
| 4763 | + "maximum": 100, |
| 4764 | + "minimum": 1 |
4751 | 4765 | } |
4752 | 4766 | } |
4753 | 4767 | ], |
|
4757 | 4771 | "content": { |
4758 | 4772 | "application/json": { |
4759 | 4773 | "schema": { |
4760 | | - "$ref": "#/components/schemas/SubscribePage" |
| 4774 | + "properties": { |
| 4775 | + "items": { |
| 4776 | + "type": "array", |
| 4777 | + "items": { |
| 4778 | + "$ref": "#/components/schemas/SubscribePage" |
| 4779 | + } |
| 4780 | + }, |
| 4781 | + "pagination": { |
| 4782 | + "$ref": "#/components/schemas/CursorPagination" |
| 4783 | + } |
| 4784 | + }, |
| 4785 | + "type": "object" |
4761 | 4786 | } |
4762 | 4787 | } |
4763 | 4788 | } |
|
4784 | 4809 | } |
4785 | 4810 | } |
4786 | 4811 | }, |
4787 | | - "put": { |
| 4812 | + "post": { |
4788 | 4813 | "tags": [ |
4789 | 4814 | "subscriptions" |
4790 | 4815 | ], |
4791 | | - "summary": "Update subscribe page", |
| 4816 | + "summary": "Create subscribe page", |
4792 | 4817 | "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production.", |
4793 | | - "operationId": "a82a0cbe52063758b55279ce7b96657b", |
| 4818 | + "operationId": "314286c5d8ef80c845f5dfd2d671bad3", |
4794 | 4819 | "parameters": [ |
4795 | 4820 | { |
4796 | 4821 | "name": "php-auth-pw", |
|
4800 | 4825 | "schema": { |
4801 | 4826 | "type": "string" |
4802 | 4827 | } |
4803 | | - }, |
4804 | | - { |
4805 | | - "name": "id", |
4806 | | - "in": "path", |
4807 | | - "description": "Subscribe page ID", |
4808 | | - "required": true, |
4809 | | - "schema": { |
4810 | | - "type": "integer" |
4811 | | - } |
4812 | 4828 | } |
4813 | 4829 | ], |
4814 | 4830 | "requestBody": { |
|
4818 | 4834 | "schema": { |
4819 | 4835 | "properties": { |
4820 | 4836 | "title": { |
4821 | | - "type": "string", |
4822 | | - "nullable": true |
| 4837 | + "type": "string" |
4823 | 4838 | }, |
4824 | 4839 | "active": { |
4825 | 4840 | "type": "boolean", |
|
4832 | 4847 | } |
4833 | 4848 | }, |
4834 | 4849 | "responses": { |
4835 | | - "200": { |
4836 | | - "description": "Success", |
| 4850 | + "201": { |
| 4851 | + "description": "Created", |
4837 | 4852 | "content": { |
4838 | 4853 | "application/json": { |
4839 | 4854 | "schema": { |
|
4852 | 4867 | } |
4853 | 4868 | } |
4854 | 4869 | }, |
4855 | | - "404": { |
4856 | | - "description": "Not Found", |
| 4870 | + "422": { |
| 4871 | + "description": "Validation failed", |
4857 | 4872 | "content": { |
4858 | 4873 | "application/json": { |
4859 | 4874 | "schema": { |
4860 | | - "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 4875 | + "$ref": "#/components/schemas/ValidationErrorResponse" |
4861 | 4876 | } |
4862 | 4877 | } |
4863 | 4878 | } |
4864 | 4879 | } |
4865 | 4880 | } |
4866 | | - }, |
4867 | | - "delete": { |
| 4881 | + } |
| 4882 | + }, |
| 4883 | + "/api/v2/subscribe-pages/{id}": { |
| 4884 | + "get": { |
4868 | 4885 | "tags": [ |
4869 | 4886 | "subscriptions" |
4870 | 4887 | ], |
4871 | | - "summary": "Delete subscribe page", |
| 4888 | + "summary": "Get subscribe page", |
4872 | 4889 | "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production.", |
4873 | | - "operationId": "2881b5de1d076caa070f2b9a1c8487fe", |
| 4890 | + "operationId": "390db83b1de32e07d2d52b310eb0c1ea", |
4874 | 4891 | "parameters": [ |
4875 | 4892 | { |
4876 | 4893 | "name": "php-auth-pw", |
|
4892 | 4909 | } |
4893 | 4910 | ], |
4894 | 4911 | "responses": { |
4895 | | - "204": { |
4896 | | - "description": "No Content" |
| 4912 | + "200": { |
| 4913 | + "description": "Success", |
| 4914 | + "content": { |
| 4915 | + "application/json": { |
| 4916 | + "schema": { |
| 4917 | + "$ref": "#/components/schemas/SubscribePage" |
| 4918 | + } |
| 4919 | + } |
| 4920 | + } |
4897 | 4921 | }, |
4898 | 4922 | "403": { |
4899 | 4923 | "description": "Failure", |
|
4916 | 4940 | } |
4917 | 4941 | } |
4918 | 4942 | } |
4919 | | - } |
4920 | | - }, |
4921 | | - "/api/v2/subscribe-pages": { |
4922 | | - "post": { |
| 4943 | + }, |
| 4944 | + "put": { |
4923 | 4945 | "tags": [ |
4924 | 4946 | "subscriptions" |
4925 | 4947 | ], |
4926 | | - "summary": "Create subscribe page", |
| 4948 | + "summary": "Update subscribe page", |
4927 | 4949 | "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production.", |
4928 | | - "operationId": "314286c5d8ef80c845f5dfd2d671bad3", |
| 4950 | + "operationId": "a82a0cbe52063758b55279ce7b96657b", |
4929 | 4951 | "parameters": [ |
4930 | 4952 | { |
4931 | 4953 | "name": "php-auth-pw", |
|
4935 | 4957 | "schema": { |
4936 | 4958 | "type": "string" |
4937 | 4959 | } |
| 4960 | + }, |
| 4961 | + { |
| 4962 | + "name": "id", |
| 4963 | + "in": "path", |
| 4964 | + "description": "Subscribe page ID", |
| 4965 | + "required": true, |
| 4966 | + "schema": { |
| 4967 | + "type": "integer" |
| 4968 | + } |
4938 | 4969 | } |
4939 | 4970 | ], |
4940 | 4971 | "requestBody": { |
|
4944 | 4975 | "schema": { |
4945 | 4976 | "properties": { |
4946 | 4977 | "title": { |
4947 | | - "type": "string" |
| 4978 | + "type": "string", |
| 4979 | + "nullable": true |
4948 | 4980 | }, |
4949 | 4981 | "active": { |
4950 | 4982 | "type": "boolean", |
|
4957 | 4989 | } |
4958 | 4990 | }, |
4959 | 4991 | "responses": { |
4960 | | - "201": { |
4961 | | - "description": "Created", |
| 4992 | + "200": { |
| 4993 | + "description": "Success", |
4962 | 4994 | "content": { |
4963 | 4995 | "application/json": { |
4964 | 4996 | "schema": { |
|
4977 | 5009 | } |
4978 | 5010 | } |
4979 | 5011 | }, |
4980 | | - "422": { |
4981 | | - "description": "Validation failed", |
| 5012 | + "404": { |
| 5013 | + "description": "Not Found", |
4982 | 5014 | "content": { |
4983 | 5015 | "application/json": { |
4984 | 5016 | "schema": { |
4985 | | - "$ref": "#/components/schemas/ValidationErrorResponse" |
| 5017 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 5018 | + } |
| 5019 | + } |
| 5020 | + } |
| 5021 | + } |
| 5022 | + } |
| 5023 | + }, |
| 5024 | + "delete": { |
| 5025 | + "tags": [ |
| 5026 | + "subscriptions" |
| 5027 | + ], |
| 5028 | + "summary": "Delete subscribe page", |
| 5029 | + "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production.", |
| 5030 | + "operationId": "2881b5de1d076caa070f2b9a1c8487fe", |
| 5031 | + "parameters": [ |
| 5032 | + { |
| 5033 | + "name": "php-auth-pw", |
| 5034 | + "in": "header", |
| 5035 | + "description": "Session key obtained from login", |
| 5036 | + "required": true, |
| 5037 | + "schema": { |
| 5038 | + "type": "string" |
| 5039 | + } |
| 5040 | + }, |
| 5041 | + { |
| 5042 | + "name": "id", |
| 5043 | + "in": "path", |
| 5044 | + "description": "Subscribe page ID", |
| 5045 | + "required": true, |
| 5046 | + "schema": { |
| 5047 | + "type": "integer" |
| 5048 | + } |
| 5049 | + } |
| 5050 | + ], |
| 5051 | + "responses": { |
| 5052 | + "204": { |
| 5053 | + "description": "No Content" |
| 5054 | + }, |
| 5055 | + "403": { |
| 5056 | + "description": "Failure", |
| 5057 | + "content": { |
| 5058 | + "application/json": { |
| 5059 | + "schema": { |
| 5060 | + "$ref": "#/components/schemas/UnauthorizedResponse" |
| 5061 | + } |
| 5062 | + } |
| 5063 | + } |
| 5064 | + }, |
| 5065 | + "404": { |
| 5066 | + "description": "Not Found", |
| 5067 | + "content": { |
| 5068 | + "application/json": { |
| 5069 | + "schema": { |
| 5070 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
4986 | 5071 | } |
4987 | 5072 | } |
4988 | 5073 | } |
|
0 commit comments