diff --git a/crowdsec-docs/docs/local_api/api_reference.mdx b/crowdsec-docs/docs/local_api/api_reference.mdx new file mode 100644 index 000000000..a9754896d --- /dev/null +++ b/crowdsec-docs/docs/local_api/api_reference.mdx @@ -0,0 +1,11 @@ +--- +id: api_reference +title: API Reference +sidebar_position: 2 +--- + +import SwaggerUI from "swagger-ui-react"; +import "swagger-ui-react/swagger-ui.css"; + + + diff --git a/crowdsec-docs/docs/local_api/intro.md b/crowdsec-docs/docs/local_api/intro.md index 6719e8bd4..e0084c801 100644 --- a/crowdsec-docs/docs/local_api/intro.md +++ b/crowdsec-docs/docs/local_api/intro.md @@ -12,7 +12,7 @@ The Local API (LAPI) is one of the core components of the Security Engine to : - Allow Remediation Components to consume said alerts & decisions from database - Allow `cscli` to manage the database (list, delete, etc) -You can find the swagger documentation [here](https://crowdsecurity.github.io/api_doc/lapi/). +You can find the API reference documentation [here](local_api/api_reference.mdx). This allows you to create [multi-machines architectures](https://crowdsec.net/multi-server-setup/) around CrowdSec or leverage [orchestration technologies](https://crowdsec.net/secure-docker-compose-stacks-with-crowdsec/). diff --git a/crowdsec-docs/sidebars.ts b/crowdsec-docs/sidebars.ts index 2b0292dfa..f1d8e05ec 100644 --- a/crowdsec-docs/sidebars.ts +++ b/crowdsec-docs/sidebars.ts @@ -203,11 +203,7 @@ const sidebarsConfig: SidebarConfig = { "local_api/authentication", "local_api/tls_auth", "local_api/centralized_allowlists", - { - type: "link", - label: "Swagger", - href: "https://crowdsecurity.github.io/api_doc/lapi/", - }, + "local_api/api_reference", ], }, {