From fd42b2fbf88273110184a97ddedd785dc36d6212 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 9 Jul 2024 10:47:15 +0200 Subject: [PATCH] Move duplicate schema endpoint (#7595) * move duplicate endpoint * fix link --- src/backend/InvenTree/InvenTree/api_version.py | 5 ++++- src/backend/InvenTree/common/api.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/backend/InvenTree/InvenTree/api_version.py b/src/backend/InvenTree/InvenTree/api_version.py index 419763fce0..de76bcb2ce 100644 --- a/src/backend/InvenTree/InvenTree/api_version.py +++ b/src/backend/InvenTree/InvenTree/api_version.py @@ -1,12 +1,15 @@ """InvenTree API version information.""" # InvenTree API version -INVENTREE_API_VERSION = 215 +INVENTREE_API_VERSION = 216 """Increment this API version number whenever there is a significant change to the API that any clients need to know about.""" INVENTREE_API_TEXT = """ +v216 - 2024-07-08 : https://github.com/inventree/InvenTree/pull/7595 + - Moves API endpoint for contenttype lookup by model name + v215 - 2024-07-09 : https://github.com/inventree/InvenTree/pull/7591 - Adds additional fields to the BuildLine serializer diff --git a/src/backend/InvenTree/common/api.py b/src/backend/InvenTree/common/api.py index a1063b5d09..268e2680d2 100644 --- a/src/backend/InvenTree/common/api.py +++ b/src/backend/InvenTree/common/api.py @@ -950,7 +950,7 @@ common_api_urls = [ '/', ContentTypeDetail.as_view(), name='api-contenttype-detail' ), path( - '/', + 'model//', ContentTypeModelDetail.as_view(), name='api-contenttype-detail-modelname', ),