29 Commits

Author SHA1 Message Date
Jack Carter 3ff298c641 fix(api-template): repair Go brace and collapse summary whitespace (#735)
* fix(api-template): repair Go brace and collapse summary whitespace

The ApiTemplate accidentally emitted `{` instead of `}` for the closing
brace after the early-return error check in the Go example, leaving every
generated Go snippet syntactically invalid. The summary description was
also rendered raw, so multi-line OpenAPI descriptions broke the MDX
parser when the closing tag landed inside a JSX paragraph.

Fix the template at the source and regenerate the affected resource
pages so the API docs build cleanly again.

* chore: ignore generator tsbuildinfo
2026-05-08 09:32:51 -07:00
Bethuel Mmbaga 4bc28ac346 Fix API page generator and add missing integration nav entries (#680) 2026-04-02 19:08:28 +03:00
Maycon Santos b35de5b477 Escape MDX-specific characters in API templates and refine Navigation… (#638)
* Escape MDX-specific characters in API templates and refine NavigationAPI links

* Update API pages with v0.66.0

---------

Co-authored-by: netbirddev <dev@netbird.io>
2026-02-26 16:28:00 +01:00
Maycon Santos 4d5843df12 Update api.tsx to handle content type (#573)
* Update api.tsx to handle content type

* Update API pages with v0.64.1

---------

Co-authored-by: netbirddev <dev@netbird.io>
2026-01-23 20:05:08 +01:00
Eduard Gert 80f49501d4 Update nextjs (#550) 2026-01-14 16:20:02 +01:00
Maycon Santos aef978f63d Handle merge api component conflicts (#539)
* Handle merge api component conflicts

Added a fixConflictingEnumAllOf() function in generator/api.ts that pre-processes the spec before merging

* Update API pages with v0.62.2

---------

Co-authored-by: netbirddev <dev@netbird.io>
2026-01-10 12:16:22 +01:00
Pascal Fischer 36e21f688a the api parser creates it's output directory if it does not exist (#399) 2025-07-30 12:12:17 +02:00
Pascal Fischer 94a6853ce9 use small letters for the api badges (#297) 2025-03-21 18:41:56 +01:00
Pascal Fischer 42ef357778 Add Badge Tooltip (#293) 2025-03-21 16:27:20 +01:00
Pascal Fischer 4a66f17880 [API] add cloud and experimantal badges + new pages (#292) 2025-03-20 18:04:45 +01:00
Pascal Fischer c8683cc7e2 Link Networks API (#265)
* update side menu to link networks

* change heading
2024-12-24 11:12:09 +01:00
pascal-fischer 1e9e6dc2d7 add early example return for tree (#234) 2024-09-22 19:12:31 +02:00
Vladislav Kuznetsov 94780de0f2 Fix python example in api generation template (#189) 2024-05-15 21:31:08 +02:00
pascal-fischer dd08a8e07d Change API parser to handle nested objects (#159)
* rewrite parser to handle new format and nested objects

* add properties section also to nested properties

* update docs manually
2024-02-29 14:24:00 +01:00
pascal-fischer 605130c7db add badge for deprecated api endpoints to the template (#126) 2024-01-10 13:53:51 +01:00
pascal-fischer f33b4df3dd Add workflow for api gen and refactor genration script (#60)
* update gitignore

* add first version of api generation flow

* try to run flow

* testing flow

* update gen flow

* switch flow to macOS

* fix

* add npm install

* test workflow

* Update API pages

* test workflow with current main

* refactor parser

* merge examples and schema functions

* merge examples and schema functions

* merge parameters as well

* revert template to single class component

* update account

* finalizing

* update with the newest version of openapi

* full flow

* update

* add docker command

* split flow in two jobs

* remove testing trigger

---------

Co-authored-by: GitHub Actions <no-reply@github.com>
2023-06-05 09:35:54 +02:00
Pascal Fischer b82f8af4b1 remove hero pattern from single files 2023-05-10 02:19:47 +02:00
Pascal Fischer 56a1901a84 automate api generation 2023-05-09 17:51:27 +02:00
Pascal Fischer b5c24e786d api generator cleanup 2023-05-09 17:45:59 +02:00
Pascal Fischer 7f5c373631 add quickstart for api 2023-05-09 12:17:28 +02:00
Pascal Fischer 4d189d2e39 for curl fix next line issue 2023-05-08 18:51:25 +02:00
Pascal Fischer 4c51e12888 add pat and service user docs + remove empty lines from examples 2023-05-08 18:46:40 +02:00
Pascal Fischer 05cbda8cd8 switch requests examples to version with values 2023-05-05 18:04:17 +02:00
Pascal Fischer adf57d5294 add examples to response 2023-05-05 18:00:13 +02:00
Pascal Fischer 6777c62530 page titles 2023-05-03 21:02:16 +02:00