Bump API version to 6

This commit is contained in:
Oliver 2021-06-23 08:40:51 +10:00
parent 878f26c770
commit a866001ffe
2 changed files with 14 additions and 9 deletions

View File

@ -10,22 +10,27 @@ import common.models
INVENTREE_SW_VERSION = "0.2.4 pre" INVENTREE_SW_VERSION = "0.2.4 pre"
INVENTREE_API_VERSION = 6
""" """
Increment thi API version number whenever there is a significant change to the API that any clients need to know about Increment thi API version number whenever there is a significant change to the API that any clients need to know about
v3 -> 2021-05-22: v6 -> 2021-06-23
- The updated StockItem "history tracking" now uses a different interface - Part and Company images can now be directly uploaded via the REST API
v5 -> 2021-06-21
- Adds API interface for manufacturer part parameters
v4 -> 2021-06-01 v4 -> 2021-06-01
- BOM items can now accept "variant stock" to be assigned against them - BOM items can now accept "variant stock" to be assigned against them
- Many slight API tweaks were needed to get this to work properly! - Many slight API tweaks were needed to get this to work properly!
v5 -> 2021-06-21 v3 -> 2021-05-22:
- Adds API interface for manufacturer part parameters - The updated StockItem "history tracking" now uses a different interface
""" """
INVENTREE_API_VERSION = 5
def inventreeInstanceName(): def inventreeInstanceName():

View File

@ -6,15 +6,15 @@ from rest_framework import serializers
from sql_util.utils import SubqueryCount from sql_util.utils import SubqueryCount
from .models import Company
from .models import ManufacturerPart, ManufacturerPartParameter
from .models import SupplierPart, SupplierPriceBreak
from InvenTree.serializers import InvenTreeModelSerializer from InvenTree.serializers import InvenTreeModelSerializer
from InvenTree.serializers import InvenTreeImageSerializerField from InvenTree.serializers import InvenTreeImageSerializerField
from part.serializers import PartBriefSerializer from part.serializers import PartBriefSerializer
from .models import Company
from .models import ManufacturerPart, ManufacturerPartParameter
from .models import SupplierPart, SupplierPriceBreak
class CompanyBriefSerializer(InvenTreeModelSerializer): class CompanyBriefSerializer(InvenTreeModelSerializer):
""" Serializer for Company object (limited detail) """ """ Serializer for Company object (limited detail) """