Skip to content

Commit

Permalink
[#351] Update OAS documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Dec 12, 2023
1 parent 7481d91 commit 7fa548c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/objects/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from objects.utils.serializers import DynamicFieldsMixin

from .fields import ObjectSlugRelatedField, ObjectTypeField, ObjectUrlField
from .validators import GeometryValidator, IsImmutableValidator, JsonSchemaValidator
from .utils import merge_patch
from .validators import GeometryValidator, IsImmutableValidator, JsonSchemaValidator


class ObjectRecordSerializer(serializers.ModelSerializer):
Expand Down
2 changes: 2 additions & 0 deletions src/objects/api/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ paths:
patch:
operationId: object_partial_update
description: Update the OBJECT by creating a new RECORD with the updates values.
The provided `record.data` value will be merged with the existing record data,
according to [RFC7396](https://datatracker.ietf.org/doc/html/rfc7396).
parameters:
- in: header
name: Accept-Crs
Expand Down
4 changes: 3 additions & 1 deletion src/objects/api/v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
description="Update the OBJECT by creating a new RECORD with the updates values."
),
partial_update=extend_schema(
description="Update the OBJECT by creating a new RECORD with the updates values."
description="Update the OBJECT by creating a new RECORD with the updates values. "
"The provided `record.data` value will be merged with the existing record data, according "
"to [RFC7396](https://datatracker.ietf.org/doc/html/rfc7396)."
),
destroy=extend_schema(
description="Delete an OBJECT and all RECORDs belonging to it.",
Expand Down

0 comments on commit 7fa548c

Please sign in to comment.