{
  "openapi": "3.1.0",
  "info": {
    "title": "RFID Datasheet public reference API",
    "version": "1.0.0",
    "description": "Read only RFID/NFC catalog. Includes automated enrichment. Null means unknown. Consult manufacturer documents and /methodology; export timestamps are not technical review dates."
  },
  "servers": [
    {
      "url": "https://rfid-datasheet.com"
    }
  ],
  "paths": {
    "/api/chips": {
      "get": {
        "operationId": "listChips",
        "summary": "List catalog records and key specifications",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "generated_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "citation": {
                      "type": "string"
                    },
                    "license": {
                      "type": "string"
                    },
                    "methodology": {
                      "type": "string"
                    },
                    "data_notes": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "chips": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Chip"
                      }
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "count",
                    "chips"
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Temporary data error"
          }
        }
      }
    },
    "/api/chips/{slug}": {
      "get": {
        "operationId": "getChip",
        "summary": "Read one complete catalog record",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "ntag213-215-216"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "generated_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "citation": {
                      "type": "string"
                    },
                    "license": {
                      "type": "string"
                    },
                    "methodology": {
                      "type": "string"
                    },
                    "data_notes": {
                      "type": "string"
                    },
                    "chip": {
                      "$ref": "#/components/schemas/Chip"
                    }
                  },
                  "additionalProperties": true,
                  "required": [
                    "chip"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "No catalog record at this slug"
          },
          "500": {
            "description": "Temporary data error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Chip": {
        "type": "object",
        "required": [
          "slug",
          "name"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "manufacturer": {
            "type": [
              "string",
              "null"
            ]
          },
          "frequency_category": {
            "type": [
              "string",
              "null"
            ]
          },
          "frequency": {
            "type": [
              "string",
              "null"
            ]
          },
          "protocol": {
            "type": [
              "string",
              "null"
            ]
          },
          "memory": {
            "type": [
              "string",
              "null"
            ]
          },
          "interface": {
            "type": [
              "string",
              "null"
            ]
          },
          "temp_range": {
            "type": [
              "string",
              "null"
            ]
          },
          "form_factor": {
            "type": [
              "string",
              "null"
            ]
          },
          "security": {
            "type": [
              "string",
              "null"
            ]
          },
          "chip_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "short_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "manufacturer_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Recorded source URL, not certification of technical review"
          },
          "last_checked": {
            "type": [
              "string",
              "null"
            ],
            "description": "Automated source link check timestamp, not specification review"
          },
          "url": {
            "type": "string"
          },
          "canonical_url": {
            "type": "string",
            "format": "uri",
            "description": "Preferred reference URL. Reviewed duplicate entries retain their existing slugs and IDs."
          }
        },
        "additionalProperties": true
      }
    }
  },
  "externalDocs": {
    "description": "Source quality, corrections and citation policy",
    "url": "https://rfid-datasheet.com/methodology"
  }
}
