@requires_auth('resource')
def schema_item_endpoint(resource):
 resource_config = app.config['DOMAIN'].get(resource)
 if ((not resource_config) or (resource_config.get('internal_resource') is True)):
  return abort(404)
 return send_response(None, (resource_config['schema'],))

@ requires_auth ( 'resource' ) def schema_item_endpoint ( resource ) : resource_config = app . config [ 'DOMAIN' ] . get ( resource ) if ( ( not resource_config ) or ( resource_config . get ( 'internal_resource' ) is True ) ) : return abort ( 404 ) return send_response ( None , ( resource_config [ 'schema' ] , ) )
this endpoint is active when schema_endpoint != none .