|
3296 | 3296 | } |
3297 | 3297 | } |
3298 | 3298 | }, |
| 3299 | + "/api/v2/subscribe-pages/{id}": { |
| 3300 | + "get": { |
| 3301 | + "tags": [ |
| 3302 | + "subscriptions" |
| 3303 | + ], |
| 3304 | + "summary": "Get subscribe page", |
| 3305 | + "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production.", |
| 3306 | + "operationId": "390db83b1de32e07d2d52b310eb0c1ea", |
| 3307 | + "parameters": [ |
| 3308 | + { |
| 3309 | + "name": "php-auth-pw", |
| 3310 | + "in": "header", |
| 3311 | + "description": "Session key obtained from login", |
| 3312 | + "required": true, |
| 3313 | + "schema": { |
| 3314 | + "type": "string" |
| 3315 | + } |
| 3316 | + }, |
| 3317 | + { |
| 3318 | + "name": "id", |
| 3319 | + "in": "path", |
| 3320 | + "description": "Subscribe page ID", |
| 3321 | + "required": true, |
| 3322 | + "schema": { |
| 3323 | + "type": "integer" |
| 3324 | + } |
| 3325 | + } |
| 3326 | + ], |
| 3327 | + "responses": { |
| 3328 | + "200": { |
| 3329 | + "description": "Success", |
| 3330 | + "content": { |
| 3331 | + "application/json": { |
| 3332 | + "schema": { |
| 3333 | + "$ref": "#/components/schemas/SubscribePage" |
| 3334 | + } |
| 3335 | + } |
| 3336 | + } |
| 3337 | + }, |
| 3338 | + "403": { |
| 3339 | + "description": "Failure", |
| 3340 | + "content": { |
| 3341 | + "application/json": { |
| 3342 | + "schema": { |
| 3343 | + "$ref": "#/components/schemas/UnauthorizedResponse" |
| 3344 | + } |
| 3345 | + } |
| 3346 | + } |
| 3347 | + }, |
| 3348 | + "404": { |
| 3349 | + "description": "Not Found", |
| 3350 | + "content": { |
| 3351 | + "application/json": { |
| 3352 | + "schema": { |
| 3353 | + "$ref": "#/components/schemas/NotFoundErrorResponse" |
| 3354 | + } |
| 3355 | + } |
| 3356 | + } |
| 3357 | + } |
| 3358 | + } |
| 3359 | + } |
| 3360 | + }, |
| 3361 | + "/api/v2/subscribe-pages": { |
| 3362 | + "post": { |
| 3363 | + "tags": [ |
| 3364 | + "subscriptions" |
| 3365 | + ], |
| 3366 | + "summary": "Create subscribe page", |
| 3367 | + "description": "🚧 **Status: Beta** – This method is under development. Avoid using in production.", |
| 3368 | + "operationId": "314286c5d8ef80c845f5dfd2d671bad3", |
| 3369 | + "parameters": [ |
| 3370 | + { |
| 3371 | + "name": "php-auth-pw", |
| 3372 | + "in": "header", |
| 3373 | + "description": "Session key obtained from login", |
| 3374 | + "required": true, |
| 3375 | + "schema": { |
| 3376 | + "type": "string" |
| 3377 | + } |
| 3378 | + } |
| 3379 | + ], |
| 3380 | + "requestBody": { |
| 3381 | + "required": true, |
| 3382 | + "content": { |
| 3383 | + "application/json": { |
| 3384 | + "schema": { |
| 3385 | + "properties": { |
| 3386 | + "title": { |
| 3387 | + "type": "string" |
| 3388 | + }, |
| 3389 | + "active": { |
| 3390 | + "type": "boolean", |
| 3391 | + "nullable": true |
| 3392 | + } |
| 3393 | + }, |
| 3394 | + "type": "object" |
| 3395 | + } |
| 3396 | + } |
| 3397 | + } |
| 3398 | + }, |
| 3399 | + "responses": { |
| 3400 | + "201": { |
| 3401 | + "description": "Created", |
| 3402 | + "content": { |
| 3403 | + "application/json": { |
| 3404 | + "schema": { |
| 3405 | + "$ref": "#/components/schemas/SubscribePage" |
| 3406 | + } |
| 3407 | + } |
| 3408 | + } |
| 3409 | + }, |
| 3410 | + "403": { |
| 3411 | + "description": "Failure", |
| 3412 | + "content": { |
| 3413 | + "application/json": { |
| 3414 | + "schema": { |
| 3415 | + "$ref": "#/components/schemas/UnauthorizedResponse" |
| 3416 | + } |
| 3417 | + } |
| 3418 | + } |
| 3419 | + }, |
| 3420 | + "422": { |
| 3421 | + "description": "Validation failed", |
| 3422 | + "content": { |
| 3423 | + "application/json": { |
| 3424 | + "schema": { |
| 3425 | + "$ref": "#/components/schemas/ValidationErrorResponse" |
| 3426 | + } |
| 3427 | + } |
| 3428 | + } |
| 3429 | + } |
| 3430 | + } |
| 3431 | + } |
| 3432 | + }, |
3299 | 3433 | "/api/v2/subscribers/attributes": { |
3300 | 3434 | "get": { |
3301 | 3435 | "tags": [ |
|
6007 | 6141 | } |
6008 | 6142 | }, |
6009 | 6143 | "type": "object" |
| 6144 | + }, |
| 6145 | + "SubscribePage": { |
| 6146 | + "properties": { |
| 6147 | + "id": { |
| 6148 | + "type": "integer", |
| 6149 | + "example": 1 |
| 6150 | + }, |
| 6151 | + "title": { |
| 6152 | + "type": "string", |
| 6153 | + "example": "Subscribe to our newsletter" |
| 6154 | + }, |
| 6155 | + "active": { |
| 6156 | + "type": "boolean", |
| 6157 | + "example": true |
| 6158 | + }, |
| 6159 | + "owner": { |
| 6160 | + "$ref": "#/components/schemas/Administrator" |
| 6161 | + } |
| 6162 | + }, |
| 6163 | + "type": "object" |
6010 | 6164 | } |
6011 | 6165 | } |
6012 | 6166 | }, |
|
0 commit comments