openapi: 3.2.0 info: title: Tandoor Food Inherit Field API version: 0.0.0 (2.6.13) x-logo: url: /static/assets/brand_logo.svg backgroundColor: '#FFFFFF' altText: Tandoor logo href: / description: Tandoor API Docs tags: - name: Food Inherit Field paths: /api/food-inherit-field/: get: operationId: apiFoodInheritFieldList description: logs request counts to redis cache total/per user/ tags: - Food Inherit Field security: - ApiKeyAuth: [] responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/FoodInheritField' description: '' summary: Api food inherit field list x-summary-source: derived /api/food-inherit-field/{id}/: get: operationId: apiFoodInheritFieldRetrieve description: logs request counts to redis cache total/per user/ parameters: - in: path name: id schema: type: integer description: A unique integer value identifying this food inherit field. required: true tags: - Food Inherit Field security: - ApiKeyAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/FoodInheritField' description: '' summary: Api food inherit field retrieve x-summary-source: derived components: schemas: FoodInheritField: type: object description: "Moves `UniqueValidator`'s from the validation stage to the save stage.\nIt solves the problem with nested validation for unique fields on update.\n\nIf you want more details, you can read related issues and articles:\nhttps://github.com/beda-software/drf-writable-nested/issues/1\nhttp://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers\n\nExample of usage:\n```\n class Child(models.Model):\n field = models.CharField(unique=True)\n\n\nclass Parent(models.Model):\n child = models.ForeignKey('Child')\n\n\nclass ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):\n class Meta:\n model = Child\n\n\nclass ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):\n child = ChildSerializer()\n\n class Meta:\n model = Parent\n```\n\nNote: `UniqueFieldsMixin` must be applied only on the serializer\nwhich has unique fields.\n\nNote: When you are using both mixins\n(`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)\nyou should put `UniqueFieldsMixin` ahead." properties: id: type: integer readOnly: false name: type: - string - 'null' field: type: - string - 'null' required: [] securitySchemes: ApiKeyAuth: type: apiKey in: header name: Authorization