|
2 | 2 | "openapi": "3.0.0", |
3 | 3 | "info": { |
4 | 4 | "title": "phpList4 REST API", |
| 5 | + "description": "This bundle provides the REST API for phpList.", |
5 | 6 | "version": "4.0.0" |
6 | 7 | }, |
7 | 8 | "paths": { |
|
12 | 13 | ], |
13 | 14 | "summary": "Gets a list of all subscriber lists.", |
14 | 15 | "description": "Returns a json list of all subscriber lists.", |
15 | | - "operationId": "PhpList\\RestBundle\\Controller\\ListController::cgetAction", |
| 16 | + "operationId": "55de401a35e051e041f1ff18648a1b0b", |
16 | 17 | "parameters": [ |
17 | 18 | { |
18 | 19 | "name": "session", |
|
64 | 65 | "schema": { |
65 | 66 | "properties": { |
66 | 67 | "message": { |
67 | | - "description": "Gets a list of all subscriber lists.", |
68 | 68 | "type": "string", |
69 | 69 | "example": "No valid session key was provided as basic auth password." |
70 | 70 | } |
|
84 | 84 | ], |
85 | 85 | "summary": "Gets a subscriber list.", |
86 | 86 | "description": "Returns a single subscriber lists with specified ID", |
87 | | - "operationId": "PhpList\\RestBundle\\Controller\\ListController::getAction", |
| 87 | + "operationId": "b08cfc501bb8f8eda595a3c86e3b90ed", |
88 | 88 | "parameters": [ |
89 | 89 | { |
90 | 90 | "name": "list", |
|
135 | 135 | "schema": { |
136 | 136 | "properties": { |
137 | 137 | "message": { |
138 | | - "description": "Gets a subscriber list.", |
139 | 138 | "type": "string", |
140 | 139 | "example": "No valid session key was provided as basic auth password." |
141 | 140 | } |
|
152 | 151 | "schema": { |
153 | 152 | "properties": { |
154 | 153 | "message": { |
155 | | - "description": "Gets a subscriber list.", |
156 | 154 | "type": "string", |
157 | 155 | "example": "There is no list with that ID." |
158 | 156 | } |
|
170 | 168 | ], |
171 | 169 | "summary": "Deletes a list.", |
172 | 170 | "description": "Deletes a single subscriber list passed as", |
173 | | - "operationId": "PhpList\\RestBundle\\Controller\\ListController::deleteAction", |
| 171 | + "operationId": "d81f62bf8e86c31019127f86c35987b2", |
174 | 172 | "parameters": [ |
175 | 173 | { |
176 | 174 | "name": "session", |
|
202 | 200 | "schema": { |
203 | 201 | "properties": { |
204 | 202 | "message": { |
205 | | - "description": "Deletes a subscriber list.", |
206 | 203 | "type": "string", |
207 | 204 | "example": "No valid session key was provided as basic auth password or You do not have access to this session." |
208 | 205 | } |
|
219 | 216 | "schema": { |
220 | 217 | "properties": { |
221 | 218 | "message": { |
222 | | - "description": "Deletes a subscriber list.", |
223 | 219 | "type": "string", |
224 | 220 | "example": "There is no session with that ID." |
225 | 221 | } |
|
239 | 235 | ], |
240 | 236 | "summary": "Gets a list of all subscribers (members) of a subscriber list.", |
241 | 237 | "description": "Returns a json list of all subscriber lists.", |
242 | | - "operationId": "PhpList\\RestBundle\\Controller\\ListController::getMembersAction", |
| 238 | + "operationId": "c8750709a040c047a92c9647539f32dd", |
243 | 239 | "parameters": [ |
244 | 240 | { |
245 | 241 | "name": "session", |
|
302 | 298 | "schema": { |
303 | 299 | "properties": { |
304 | 300 | "message": { |
305 | | - "description": "Gets a list of all subscribers (members) of a subscriber list.", |
306 | 301 | "type": "string", |
307 | 302 | "example": "No valid session key was provided as basic auth password." |
308 | 303 | } |
|
322 | 317 | ], |
323 | 318 | "summary": "Gets the total number of subscribers of a list", |
324 | 319 | "description": "Returns a count of all subscribers in a given list.", |
325 | | - "operationId": "PhpList\\RestBundle\\Controller\\ListController::getSubscribersCountAction", |
| 320 | + "operationId": "736389b83490d2490a74a8bd46a9857c", |
326 | 321 | "parameters": [ |
327 | 322 | { |
328 | 323 | "name": "session", |
|
354 | 349 | "schema": { |
355 | 350 | "properties": { |
356 | 351 | "message": { |
357 | | - "description": "Gets the total number of subscribers of a list.", |
358 | 352 | "type": "string", |
359 | 353 | "example": "No valid session key was provided as basic auth password." |
360 | 354 | } |
|
374 | 368 | ], |
375 | 369 | "summary": "Log in or create new session.", |
376 | 370 | "description": "Given valid login data, this will generate a login token that will be valid for 1 hour", |
377 | | - "operationId": "PhpList\\RestBundle\\Controller\\SessionController::postAction", |
| 371 | + "operationId": "b23bc3baa9a61e1062fa93124cc52798", |
378 | 372 | "requestBody": { |
379 | 373 | "description": "Pass session credentials", |
380 | 374 | "required": true, |
|
387 | 381 | ], |
388 | 382 | "properties": { |
389 | 383 | "login_name": { |
390 | | - "description": "Creates a new session (if the provided credentials are valid).", |
391 | 384 | "type": "string", |
392 | 385 | "format": "string", |
393 | 386 | "example": "admin" |
394 | 387 | }, |
395 | 388 | "password": { |
396 | | - "description": "Creates a new session (if the provided credentials are valid).", |
397 | 389 | "type": "string", |
398 | 390 | "format": "password", |
399 | 391 | "example": "eetIc/Gropvoc1" |
|
412 | 404 | "schema": { |
413 | 405 | "properties": { |
414 | 406 | "id": { |
415 | | - "description": "Creates a new session (if the provided credentials are valid).", |
416 | 407 | "type": "integer", |
417 | 408 | "example": "1234" |
418 | 409 | }, |
419 | 410 | "key": { |
420 | | - "description": "Creates a new session (if the provided credentials are valid).", |
421 | 411 | "type": "string", |
422 | 412 | "example": "2cfe100561473c6cdd99c9e2f26fa974" |
423 | 413 | }, |
424 | 414 | "expiry": { |
425 | | - "description": "Creates a new session (if the provided credentials are valid).", |
426 | 415 | "type": "string", |
427 | 416 | "example": "2017-07-20T18:22:48+00:00" |
428 | 417 | } |
|
439 | 428 | "schema": { |
440 | 429 | "properties": { |
441 | 430 | "message": { |
442 | | - "description": "Creates a new session (if the provided credentials are valid).", |
443 | 431 | "type": "string", |
444 | 432 | "example": "Empty json, invalid data and or incomplete data" |
445 | 433 | } |
|
456 | 444 | "schema": { |
457 | 445 | "properties": { |
458 | 446 | "message": { |
459 | | - "description": "Creates a new session (if the provided credentials are valid).", |
460 | 447 | "type": "string", |
461 | 448 | "example": "Not authorized." |
462 | 449 | } |
|
476 | 463 | ], |
477 | 464 | "summary": "Delete a session.", |
478 | 465 | "description": "Delete the session passed as paramater", |
479 | | - "operationId": "PhpList\\RestBundle\\Controller\\SessionController::deleteAction", |
| 466 | + "operationId": "f4d35cefb1622515d122441a4547f2cc", |
480 | 467 | "parameters": [ |
481 | 468 | { |
482 | 469 | "name": "session", |
|
499 | 486 | "schema": { |
500 | 487 | "properties": { |
501 | 488 | "message": { |
502 | | - "description": "Deletes a session.", |
503 | 489 | "type": "string", |
504 | 490 | "example": "No valid session key was provided as basic auth password or\n * You do not have access to this session." |
505 | 491 | } |
|
516 | 502 | "schema": { |
517 | 503 | "properties": { |
518 | 504 | "message": { |
519 | | - "description": "Deletes a session.", |
520 | 505 | "type": "string", |
521 | 506 | "example": "There is no session with that ID." |
522 | 507 | } |
|
536 | 521 | ], |
537 | 522 | "summary": "Create a subscriber list", |
538 | 523 | "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with\n * the given email address yet).", |
539 | | - "operationId": "PhpList\\RestBundle\\Controller\\SubscriberController::postAction", |
| 524 | + "operationId": "13d081ac41de827d61315e9aa771123d", |
540 | 525 | "parameters": [ |
541 | 526 | { |
542 | 527 | "name": "session", |
|
559 | 544 | ], |
560 | 545 | "properties": { |
561 | 546 | "email": { |
562 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
563 | 547 | "type": "string", |
564 | 548 | "format": "string", |
565 | 549 | "example": "admin" |
566 | 550 | }, |
567 | 551 | "confirmed": { |
568 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
569 | 552 | "type": "string", |
570 | 553 | "format": "boolean", |
571 | 554 | "example": "eetIc/Gropvoc1" |
572 | 555 | }, |
573 | 556 | "blacklisted": { |
574 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
575 | 557 | "type": "string", |
576 | 558 | "format": "boolean", |
577 | 559 | "example": "eetIc/Gropvoc1" |
578 | 560 | }, |
579 | 561 | "html_entail": { |
580 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
581 | 562 | "type": "string", |
582 | 563 | "format": "boolean", |
583 | 564 | "example": "eetIc/Gropvoc1" |
584 | 565 | }, |
585 | 566 | "disabled": { |
586 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
587 | 567 | "type": "string", |
588 | 568 | "format": "boolean", |
589 | 569 | "example": "eetIc/Gropvoc1" |
|
602 | 582 | "schema": { |
603 | 583 | "properties": { |
604 | 584 | "creation_date": { |
605 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
606 | 585 | "type": "integer", |
607 | 586 | "example": "2017-12-16T18:44:27+00:00" |
608 | 587 | }, |
609 | 588 | "email": { |
610 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
611 | 589 | "type": "string", |
612 | 590 | |
613 | 591 | }, |
614 | 592 | "confirmed": { |
615 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
616 | 593 | "type": "boolean", |
617 | 594 | "example": "false" |
618 | 595 | }, |
619 | 596 | "blacklisted": { |
620 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
621 | 597 | "type": "boolean", |
622 | 598 | "example": "false" |
623 | 599 | }, |
624 | 600 | "bounced": { |
625 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
626 | 601 | "type": "integer", |
627 | 602 | "example": "0" |
628 | 603 | }, |
629 | 604 | "unique_id": { |
630 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
631 | 605 | "type": "string", |
632 | 606 | "example": "69f4e92cf50eafca9627f35704f030f4" |
633 | 607 | }, |
634 | 608 | "html_entail": { |
635 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
636 | 609 | "type": "boolean", |
637 | 610 | "example": "false" |
638 | 611 | }, |
639 | 612 | "disabled": { |
640 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
641 | 613 | "type": "boolean", |
642 | 614 | "example": "false" |
643 | 615 | }, |
644 | 616 | "id": { |
645 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
646 | 617 | "type": "integer", |
647 | 618 | "example": "1" |
648 | 619 | } |
|
659 | 630 | "schema": { |
660 | 631 | "properties": { |
661 | 632 | "message": { |
662 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
663 | 633 | "type": "string", |
664 | 634 | "example": "No valid session key was provided as basic auth password." |
665 | 635 | } |
|
676 | 646 | "schema": { |
677 | 647 | "properties": { |
678 | 648 | "message": { |
679 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
680 | 649 | "type": "string", |
681 | 650 | "example": "This resource already exists." |
682 | 651 | } |
|
693 | 662 | "schema": { |
694 | 663 | "properties": { |
695 | 664 | "message": { |
696 | | - "description": "Creates a new subscriber (if the provided data is valid and there is no subscriber with the given email\naddress yet).", |
697 | 665 | "type": "string", |
698 | 666 | "example": "Some fields invalid: email, confirmed, html_email" |
699 | 667 | } |
|
0 commit comments