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 從公開儲存庫中收錄這些內容。

檢舉或申請下架