Tandoor Recipes Open Data Unit API

The Open Data Unit API from Tandoor Recipes — 2 operation(s) for open data unit.

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/open-data-unit/ List measurement units · Api open data unit list #
Ask an LLM
“What units of measure are defined in the open data unit catalog?”
“Can I page through all measurement units?”
Tell an agent
List all open data units.
Show {page_size} measurement units per page.
POST /api/open-data-unit/ Create a measurement unit · Api open data unit create #
Ask an LLM
“How do I add a new unit of measure to the catalog?”
“Can I set the base unit and type when creating a unit?”
Tell an agent
Create unit {name} with slug {slug} of type {type}, version {version}, created by {created_by}.
Add a new {type} unit {name} (slug {slug}, version {version}, by {created_by}) with base unit {base_unit}.
GET /api/open-data-unit/{id}/ Get a measurement unit · Api open data unit retrieve #
Ask an LLM
“What base unit and type does a given unit have?”
“Can I look up one unit by its id?”
Tell an agent
Get open data unit {id}.
Show the base unit and type of measurement unit {id}.
PUT /api/open-data-unit/{id}/ Replace a measurement unit · Api open data unit update #
Ask an LLM
“How do I fully replace an existing unit definition?”
“Does a full update require the base unit and type?”
Tell an agent
Replace unit {id} with name {name}, slug {slug}, type {type}, version {version}, created by {created_by}.
Fully overwrite measurement unit {id} using base unit {base_unit}.
PATCH /api/open-data-unit/{id}/ Rename or relabel a measurement unit · Api open data unit partial update #
Ask an LLM
“Can I change just the plural name of a unit?”
“How do I rename a unit without resending everything?”
Tell an agent
Set the plural name of unit {id} to {plural_name}.
Rename measurement unit {id} to {name}.
DELETE /api/open-data-unit/{id}/ Delete a measurement unit · Api open data unit destroy #
Ask an LLM
“How do I remove a unit from the catalog?”
“Can I delete a measurement unit by id?”
Tell an agent destructive · confirm first
Delete open data unit {id}.
Remove measurement unit {id} from the catalog.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tandoor:tandoor-open-data-unit-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tandoor-open-data-unit-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tandoor Open Data Unit 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: Open Data Unit
paths:
  /api/open-data-unit/:
    get:
      operationId: apiOpenDataUnitList
      parameters:
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      tags:
      - Open Data Unit
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedOpenDataUnitList'
          description: ''
      summary: Api open data unit list
      x-summary-source: derived
    post:
      operationId: apiOpenDataUnitCreate
      tags:
      - Open Data Unit
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OpenDataUnit'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/OpenDataUnit'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/OpenDataUnit'
        required: true
      security:
      - ApiKeyAuth: []
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenDataUnit'
          description: ''
      summary: Api open data unit create
      x-summary-source: derived
  /api/open-data-unit/{id}/:
    get:
      operationId: apiOpenDataUnitRetrieve
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this open data unit.
        required: true
      tags:
      - Open Data Unit
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenDataUnit'
          description: ''
      summary: Api open data unit retrieve
      x-summary-source: derived
    put:
      operationId: apiOpenDataUnitUpdate
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this open data unit.
        required: true
      tags:
      - Open Data Unit
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OpenDataUnit'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/OpenDataUnit'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/OpenDataUnit'
        required: true
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenDataUnit'
          description: ''
      summary: Api open data unit update
      x-summary-source: derived
    patch:
      operationId: apiOpenDataUnitPartialUpdate
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this open data unit.
        required: true
      tags:
      - Open Data Unit
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedOpenDataUnit'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedOpenDataUnit'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedOpenDataUnit'
      security:
      - ApiKeyAuth: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenDataUnit'
          description: ''
      summary: Api open data unit partial update
      x-summary-source: derived
    delete:
      operationId: apiOpenDataUnitDestroy
      parameters:
      - in: path
        name: id
        schema:
          type: integer
        description: A unique integer value identifying this open data unit.
        required: true
      tags:
      - Open Data Unit
      security:
      - ApiKeyAuth: []
      responses:
        '204':
          description: No response body
      summary: Api open data unit destroy
      x-summary-source: derived
components:
  schemas:
    BaseUnitEnum:
      enum:
      - g
      - kg
      - ounce
      - pound
      - ml
      - l
      - fluid_ounce
      - pint
      - quart
      - gallon
      - tbsp
      - tsp
      - us_cup
      - imperial_fluid_ounce
      - imperial_pint
      - imperial_quart
      - imperial_gallon
      - imperial_tbsp
      - imperial_tsp
      type: string
      description: '* `g` - g

        * `kg` - kg

        * `ounce` - ounce

        * `pound` - pound

        * `ml` - ml

        * `l` - l

        * `fluid_ounce` - fluid_ounce

        * `pint` - pint

        * `quart` - quart

        * `gallon` - gallon

        * `tbsp` - tbsp

        * `tsp` - tsp

        * `us_cup` - US Cup

        * `imperial_fluid_ounce` - imperial fluid ounce

        * `imperial_pint` - imperial pint

        * `imperial_quart` - imperial quart

        * `imperial_gallon` - imperial gallon

        * `imperial_tbsp` - imperial tbsp

        * `imperial_tsp` - imperial tsp'
    PatchedOpenDataUnit:
      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
        version:
          $ref: '#/components/schemas/OpenDataVersion'
        slug:
          type: string
          maxLength: 128
        name:
          type: string
          maxLength: 128
        plural_name:
          type: string
          maxLength: 128
        base_unit:
          $ref: '#/components/schemas/BaseUnitEnum'
        type:
          $ref: '#/components/schemas/OpenDataUnitTypeEnum'
        comment:
          type: string
        created_by:
          type: string
          readOnly: true
    OpenDataUnitTypeEnum:
      enum:
      - WEIGHT
      - VOLUME
      - OTHER
      type: string
      description: '* `WEIGHT` - weight

        * `VOLUME` - volume

        * `OTHER` - other'
    OpenDataUnit:
      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
        version:
          $ref: '#/components/schemas/OpenDataVersion'
        slug:
          type: string
          maxLength: 128
        name:
          type: string
          maxLength: 128
        plural_name:
          type: string
          maxLength: 128
        base_unit:
          $ref: '#/components/schemas/BaseUnitEnum'
        type:
          $ref: '#/components/schemas/OpenDataUnitTypeEnum'
        comment:
          type: string
        created_by:
          type: string
          readOnly: true
      required:
      - created_by
      - name
      - slug
      - type
      - version
    OpenDataVersion:
      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
          maxLength: 128
        code:
          type: string
          maxLength: 16
        comment:
          type: string
      required:
      - code
      - name
    PaginatedOpenDataUnitList:
      type: object
      required:
      - count
      - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type:
          - string
          - 'null'
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/OpenDataUnit'
        timestamp:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization