Provider_Interface.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Pods\REST\Interfaces\Swagger; |
| 4 | |
| 5 | // Don't load directly. |
| 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | die( '-1' ); |
| 8 | } |
| 9 | |
| 10 | /** |
| 11 | * Provider interface. |
| 12 | * |
| 13 | * @credit The Events Calendar team - https://github.com/the-events-calendar/tribe-common |
| 14 | * |
| 15 | * @since 3.0 |
| 16 | */ |
| 17 | interface Provider_Interface { |
| 18 | /** |
| 19 | * Returns an array in the format used by Swagger 2.0. |
| 20 | * |
| 21 | * While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document |
| 22 | * or that of a document part. |
| 23 | * The intelligence lies in the "gatherer" of information rather than in the single "providers" implementing this |
| 24 | * interface. |
| 25 | * |
| 26 | * @link http://swagger.io/ |
| 27 | * |
| 28 | * @since 3.0 |
| 29 | * |
| 30 | * @return array An array description of a Swagger supported component. |
| 31 | */ |
| 32 | public function get_documentation(); |
| 33 | } |
| 34 |