public function describe($endpoint)
    {
        $shortName = App::shortName(get_class($this), 'Webservice', 'Webservice');
        list($plugin, $name) = pluginSplit($shortName);

        $endpoint = Inflector::classify(str_replace('-', '_', $endpoint));
        $schemaShortName = implode('.', array_filter([$plugin, $endpoint]));
        $schemaClassName = App::className($schemaShortName, 'Model/Endpoint/Schema', 'Schema');
        if ($schemaClassName) {
            return new $schemaClassName($endpoint);
        }

        throw new MissingEndpointSchemaException([
            'schema' => $schemaShortName,
            'webservice' => $shortName
        ]);
    }
public function describe($endpoint)
    {
        $shortName = App::shortName(get_class($this), 'Webservice', 'Webservice');
        list($plugin, $name) = pluginSplit($shortName);

        $endpoint = Inflector::classify(str_replace('-', '_', $endpoint));
        $schemaShortName = implode('.', array_filter([$plugin, $endpoint]));
        $schemaClassName = App::className($schemaShortName, 'Model/Endpoint/Schema', 'Schema');
        if ($schemaClassName) {
            return new $schemaClassName($endpoint);
        }

        throw new MissingEndpointSchemaException([
            'schema' => $schemaShortName,
            'webservice' => $shortName
        ]);
    }
public function describe ( $ endpoint ) { $ shortName = App :: shortName ( get_class ( $ this ) , 'Webservice' , 'Webservice' ) ; list ( $ plugin , $ name ) = pluginSplit ( $ shortName ) ; $ endpoint = Inflector :: classify ( str_replace ( '-' , '_' , $ endpoint ) ) ; $ schemaShortName = implode ( '.' , array_filter ( [ $ plugin , $ endpoint ] ) ) ; $ schemaClassName = App :: className ( $ schemaShortName , 'Model/Endpoint/Schema' , 'Schema' ) ; if ( $ schemaClassName ) { return new $ schemaClassName ( $ endpoint ) ; } throw new MissingEndpointSchemaException ( [ 'schema' => $ schemaShortName , 'webservice' => $ shortName ] ) ; }
Returns a schema for the provided endpoint

@param string $endpoint The endpoint to get the schema for
@return \Muffin\Webservice\Schema The schema to use
Returns a schema for the provided endpoint