Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/ps reando #18

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from
Open

Feature/ps reando #18

wants to merge 24 commits into from

Conversation

enfoqueNativo
Copy link
Contributor

No description provided.

@enfoqueNativo enfoqueNativo added this to the 3.0 milestone Jun 30, 2020
@enfoqueNativo enfoqueNativo self-assigned this Jun 30, 2020
$respuesta = $this->response; //Fuerzo instanciacion ya que necesito pasarlo por referencia
$ex->configurar_respuesta($respuesta);
$this->logger->info("La api retorn� un error. Status: ".$respuesta->get_status());
$this->logger->info(var_export($respuesta->get_data(), true));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Este logger es PSR? Se podría mandar en el contexto la data (si no complejiza)

{
$list = array();
$list['swagger'] = "2.0";
$list['info'] = array('title' => 'API Title', 'version' => '1.0'); //TODO: Read from settings
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WIP ?

return $s;
}
}
?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end tags?

Puede traer algún tema si se escapa un espacio al final. Recuerdo que php-cs-fixer ayuda a quitarlos...

- Transforma arrays => json en el constructor para evitar problema con stream.
- Hace rewind del stream al recuperar el body para garantizar que recupere todo
- Se adaptan la vista_json y vista_xml para que sigan devolviendo lo mismo que
antes
- rest_error::configurar_respuesta ahora recibe el parametro por referencia (por
inmutabilidad de la rta)
…espuesta

- Se agrega un json_decode a los test que recuperan el body de la respuesta
directamente.
- Agrega 'use' faltantes
- Fix al metodo respuesta::add_headers
- Fix al metodo vista_respuesta::escribir_encabezados
- Fix en metodos que no recibian la asignacion del objeto clonado
- La clase 'rest.php' instancia el response de manera temprana, ya que el
singleton no sirve con el esquema psr7.
- Se envia la respuesta como parametro por referencia en
rest_error::configurar_respuesta y
proveedor_autenticacion::requerir_autenticacion
@enfoqueNativo enfoqueNativo linked an issue Jun 29, 2023 that may be closed by this pull request
@enfoqueNativo enfoqueNativo modified the milestones: 3.0, 3.1 Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Soporte PSR
2 participants