CyberRXN Docs
APIСправочник API

Читаемое представление SMILES

POST /v1/chemistry/convert

POST /v1/chemistry/convert

Все операции API · OpenAPI

Доступ

Требуется bearer-авторизация. Описание операции задаёт дополнительные права, роли и ограничения для сессий кабинета. Сам по себе API-ключ их не предоставляет.

Тело запроса

ПолеТипОбязательноОписание
smilesstringда
include_inchibooleanнетПо умолчанию: false.
Полная схема: ConvertSmilesRequest
{
  "properties": {
    "smiles": {
      "type": "string",
      "maxLength": 10000,
      "minLength": 1,
      "title": "Smiles"
    },
    "include_inchi": {
      "type": "boolean",
      "title": "Include Inchi",
      "default": false
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "smiles"
  ],
  "title": "ConvertSmilesRequest"
}

Ответы

HTTPОписаниеТип
200Успешный ответapplication/json: SmilesConversionResult
401Требуется авторизацияapplication/problem+json: ProblemDetails
402Недостаточно кредитовapplication/problem+json: ProblemDetails
403Доступ запрещёнapplication/problem+json: ProblemDetails
408Время запроса истеклоapplication/problem+json: ProblemDetails
413Превышен размер запросаapplication/problem+json: ProblemDetails
422Ошибка входных данныхapplication/problem+json: ProblemDetails
429Превышен лимитapplication/problem+json: ProblemDetails
502Ошибка шлюзаapplication/problem+json: ProblemDetails
503Сервис недоступенapplication/problem+json: ProblemDetails

Ответ: SmilesConversionResult

ПолеТипОбязательноОписание
kind"molecule" ∣ "reaction"да
original_smilesstringда
canonical_smilesstringда
asciistringда
unicodestringда
moleculesConvertedCompound[]да
reactantsConvertedCompound[]да
agentsConvertedCompound[]да
productsConvertedCompound[]да
atom_balanceAtomConservation ∣ nullда
lossy_formula_displaybooleanда
limitationsstring[]да
Полная схема
{
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "molecule",
        "reaction"
      ],
      "title": "Kind"
    },
    "original_smiles": {
      "type": "string",
      "title": "Original Smiles"
    },
    "canonical_smiles": {
      "type": "string",
      "title": "Canonical Smiles"
    },
    "ascii": {
      "type": "string",
      "title": "Ascii"
    },
    "unicode": {
      "type": "string",
      "title": "Unicode"
    },
    "molecules": {
      "items": {
        "$ref": "#/components/schemas/ConvertedCompound"
      },
      "type": "array",
      "title": "Molecules"
    },
    "reactants": {
      "items": {
        "$ref": "#/components/schemas/ConvertedCompound"
      },
      "type": "array",
      "title": "Reactants"
    },
    "agents": {
      "items": {
        "$ref": "#/components/schemas/ConvertedCompound"
      },
      "type": "array",
      "title": "Agents"
    },
    "products": {
      "items": {
        "$ref": "#/components/schemas/ConvertedCompound"
      },
      "type": "array",
      "title": "Products"
    },
    "atom_balance": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/AtomConservation"
        },
        {
          "type": "null"
        }
      ]
    },
    "lossy_formula_display": {
      "type": "boolean",
      "const": true,
      "title": "Lossy Formula Display"
    },
    "limitations": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Limitations"
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "kind",
    "original_smiles",
    "canonical_smiles",
    "ascii",
    "unicode",
    "molecules",
    "reactants",
    "agents",
    "products",
    "atom_balance",
    "lossy_formula_display",
    "limitations"
  ],
  "title": "SmilesConversionResult"
}

Эта страница генерируется из OpenAPI. Примеры показывают схемы, а не вымышленные успешные ответы.

Расход и оплата · Типизированные ошибки

На этой странице