Tribe__Tickets_Plus__REST__V1__Endpoints__QR::get_documentation()

Returns an array in the format used by Swagger 2.0.

While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document or that of a document part. The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this interface.


Return

(array) An array description of a Swagger supported component.


Top ↑

Source

File: src/Tribe/REST/V1/Endpoints/QR.php

	public function get_documentation() {
		$POST_defaults = array(
			'in'      => 'formData',
			'default' => '',
			'type'    => 'string',
		);
		$post_args     = array_merge( $this->READ_args(), $this->CHECK_IN_args() );

		return array(
			'post' => array(
				'consumes'   => array( 'application/x-www-form-urlencoded' ),
				'parameters' => $this->swaggerize_args( $post_args, $POST_defaults ),
				'responses'  => array(
					'201' => array(
						'description' => __( 'Returns successful check in', 'event-tickets-plus' ),
						'schema'      => array(
							'$ref' => '#/definitions/Ticket',
						),
					),
					'400' => array(
						'description' => __( 'A required parameter is missing or an input parameter is in the wrong format', 'event-tickets-plus' ),
					),
					'403' => array(
						'description' => __( 'The ticket is already checked in', 'event-tickets-plus' ),
					),
				),
			),
		);
	}

Top ↑

Changelog

Changelog
Version Description
4.7.5 Introduced.