InvokeAI/invokeai/app/api/routers
psychedelicious 33624fc2fa fix(api): duplicate operation id for get_image_full
There's a FastAPI bug that results in the OpenAPI spec outputting the same operation id for each operation when specifying multiple HTTP methods.

- Discussion: https://github.com/tiangolo/fastapi/discussions/8449
- Pending PR to fix: https://github.com/tiangolo/fastapi/pull/10694

In our case, we have a `get_image_full` endpoint that handles GET and HEAD.

This results in an invalid OpenAPI schema. A workaround is to use two route decorators for the operation handler. This works as expected - HEAD requests get the header, and GET requests get the resource. And the OpenAPI schema is valid.
2024-08-10 07:45:23 -04:00
..
app_info.py Add ruff rule to disallow relative parent imports. 2024-07-04 09:35:37 -04:00
board_images.py Add ruff rule to disallow relative parent imports. 2024-07-04 09:35:37 -04:00
boards.py Merge branch 'main' into boards-ui-update 2024-07-08 22:06:26 -04:00
download_queue.py Add ruff rule to disallow relative parent imports. 2024-07-04 09:35:37 -04:00
images.py fix(api): duplicate operation id for get_image_full 2024-08-10 07:45:23 -04:00
model_manager.py [MM2] Use typed ModelRecordChanges for model_install() rather than untyped dict (#6645) 2024-07-23 21:41:00 +00:00
session_queue.py Add ruff rule to disallow relative parent imports. 2024-07-04 09:35:37 -04:00
utilities.py feat(api): add max_prompts constraints 2023-12-29 08:26:14 -05:00
workflows.py feat: workflow library (#5148) 2023-12-09 09:48:38 +11:00