Skip to content

POST endpoints - #50

Open
gekinci wants to merge 7 commits into
mainfrom
post-endpoints
Open

POST endpoints#50
gekinci wants to merge 7 commits into
mainfrom
post-endpoints

Conversation

@gekinci

@gekinci gekinci commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

This PR updates the chatbot API. The clients now use explicit POST request bodies for all endpoints that expect query parameters. This eliminates the security risk of exposing sensitive information in the query parameters.

Changes:

  • Converted chatbot endpoints from GET to POST with Pydantic request body models: getthread, getuserthreads, streamresponse, stop, editthread, deletethread, searchthreads, setthreadtopic, and userfeedback.
  • Added custom OpenAPI security schemes for bearer auth and x-freva-rest-url, applying them to chatbot API operations so FastAPI docs expose the expected authorization inputs.
  • Updated README endpoint documentation to reflect POST methods and JSON body parameters.
  • Updated integration tests.

The list of endpoints and their method after the update:
POST: deletethread, editthread, getthread, getuserthreads, searchthreads, setthreadtopic, stop, streamresponse, userfeedback
GET: availablechatbots, ping, help

@gekinci
gekinci requested a review from felio92 August 19, 2026 08:55
@gekinci gekinci self-assigned this Aug 19, 2026
@gekinci
gekinci marked this pull request as ready for review August 19, 2026 08:55
@gekinci
gekinci requested a review from BiancaWentzel August 19, 2026 09:12
@gekinci

gekinci commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator Author

@felio92 @BiancaWentzel can you take a look at this? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants