Fusion Help Api

equinor/fusion-skills/skills/fusion-help-api

作者 equinore8fd6cfaf8edMIT2 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Guides developers and admins through direct interaction with the Fusion Help REST API — reading articles, FAQs, release notes, searching content, and managing help documentation programmatically. USE FOR: fetch help articles from API, integrate help content in app, search help content, manage help documentation via API, automate help content, build help tooling. DO NOT USE FOR: using the fhelp CLI tool (use fusion-help-docs skill), modifying Fusion.Services.Help backend code, or non-help-API tasks.

AI 生成的概览

指导开发者调用 Fusion Help REST API,读取、搜索并管理帮助内容。

功能
该技能说明如何直接与 Fusion Help REST API 交互,涵盖基础 URL 发现、Azure AD 持有者令牌认证、授权级别,以及针对文章、常见问题、发行说明、资源、搜索和变更日志的版本化端点。它指向随附的参考文件,其中包含端点细节、快速参考矩阵、响应模型和集成代码示例。其产出包括可用的认证与 API 调用代码、正确的端点 URL 和查询参数,以及管理员创建、更新、删除用例所需的请求体。
适用场景
适用于在 Fusion 应用中嵌入帮助文章、常见问题或发行说明,构建自定义工具或自动化来管理帮助文档,或以编程方式搜索和推荐帮助内容。也适用于了解 Help API 的端点、认证和数据模型。不适用于 fhelp CLI、Fusion.Services.Help 后端代码或无关的 REST API。
运行要求
需要一个带 Fusion Azure AD 持有者令牌(用户令牌或服务主体)的已认证 HTTP 客户端,并能访问 Fusion Help API 和服务注册表的网络;适用于任何能发起 REST 调用的语言或框架。该技能不附带脚本,仅为说明文档和参考文档。

Fusion Help API

Use when a developer or admin needs to interact directly with the Fusion Help REST API — reading help content, building custom tooling, or automating content management.

When to use

  • Display help articles, FAQs, or release notes inside a Fusion app
  • Build custom CLI or automation to manage help content
  • Programmatically create, update, or delete help documentation
  • Search or suggest help content from an application
  • Understand Help API endpoints, authentication, or data models
  • Read help content for another system

When not to use

  • Using fhelp CLI to sync markdown docs → use fusion-help-docs
  • Modifying Fusion.Services.Help backend service code
  • General REST API questions unrelated to Help

Required inputs

InputRequiredDescription
Use caseYesReading content, managing content, or searching
App keyFor scoped queriesThe Fusion app key to read/manage help for
Target environmentYesci, fqa, tr, or fprd
Auth contextYesUser token (interactive) or service principal (automation)

Instructions

1. Discover the Help API base URL

Resolve URL dynamically or use known patterns:

EnvironmentBase URL
cihttps://help.ci.api.fusion-dev.net
fqahttps://help.fqa.api.fusion-dev.net
fprdhttps://help.api.fusion.equinor.com

Dynamic discovery (recommended for production tooling):

GET https://discovery.fusion.equinor.com/service-registry/environments/{env}/services

Look for the service with key: "help" in the response. Use the uri field as the base URL.

2. Authentication

All endpoints require a valid Azure AD bearer token. Token audiences and code samples for frontend, backend, and CLI are in references/authentication.md [blocked].

Quick reference — token audiences:

EnvironmentResource ID (audience)
ci, fqa, tr5a842df8-3238-415d-b168-9f16a6a6031b/.default
fprd97978493-9777-4d48-b38a-67b0b9cd88d2/.default

3. Authorization levels

ActionWho can do it
Read articles, FAQs, release notes, searchAny authenticated Fusion user
Create / Update / Delete articles, FAQs, release notesApp admin, trusted app, or Fusion.Help.FullControl
Upload assets (images)App admin, trusted app, or Fusion.Help.FullControl
View changelog (global)Fusion.Help.FullControl only
View changelog (per app)App admin or Fusion.Help.FullControl

4. Call the API

Endpoints are versioned — include ?api-version=1.0. Resources: Articles, FAQs, Release Notes, Assets, Search/Suggest, Changelog.

For full CRUD details, request/response bodies, OData filters, and validation rules see references/api-endpoints.md [blocked].

For compact endpoint matrix and OData cheat sheet see references/api-quick-reference.md [blocked].

For response model schemas see references/response-models.md [blocked].

5. Integration patterns

Ready-to-use code samples (React component, release notes banner, FAQ search, C# backend automation, Python scripting) are in references/integration-patterns.md [blocked].

Expected output

  • Working code to authenticate and call the Help API
  • Correct endpoint URLs and query parameters for the use case
  • Understanding of response models and OData query options
  • For admin use cases: correct request bodies for create/update/delete
  • For integration patterns: sample code in the relevant language/framework

Safety & constraints

  • Read-only endpoints are safe for any authenticated user — no admin permissions needed
  • Write operations require app admin, trusted application, or Fusion.Help.FullControl
  • Deleted articles/FAQs/release notes are soft-deleted — slugs cannot be reused
  • sourceSystem tracks which tool created a record — mixing source systems for the same slug causes fhelp CLI to refuse updates (unless --no-validation is used)
  • Always test against ci before targeting fprd
  • Never hardcode bearer tokens — use DefaultAzureCredential or equivalent
  • Image uploads must be PNG; API processes them into WebP for serving

来源与署名

来源:equinor/fusion-skills位于skills/fusion-help-api提交e8fd6cf

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架