Fast API Endpoints Cache

Abierto
#200 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
fastapi, python
Área
backend

Línea de trabajo

Start by reading the endpoint_route_handler module and trace how it discovers endpoints created in the data directory during installation. Reproduce the steps with a FastAPI module and check whether its routes and docs URL work before updating the custom module. Done means the endpoint is accessible immediately after installation without a module update.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

Module

endpoint_route_handler

Describe the bug

when I try to create a new app with such an endpoint as root_path into data dir and some routes, it's required to update the module to be able to access
this endpoint

To Reproduce

Affected versions:

  • 16.0: yes
  • 18.0: no

Steps to reproduce the behavior:

  1. create a new module depending on fastapi with some routes
  2. create an endpoint in the data dir to be created during the installation
  3. try to access even the docs URL it'll not founded
  4. go to apps -> update your custom module
  5. try to access it again, it works fine now

Expected behavior
the newly created endpoint should work properly without the need to update the module

Additional context
Moved from @hassan510-cmd's issue https://github.com/OCA/rest-framework/issues/391 as requested:

Yes, is certainly coming from endpoint_route_handler. Can you open an issue on OCA/web-api specifying the affected versions?

Originally posted by @simahawk in #391

Lenguaje dominante
Python
Estrellas
49
Forks
124
Merge medio
4 d 13 h
PR fusionados (30 d)
11

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OCA/web-api

Todos los issues de OCA/web-api

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.