Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Zeebe REST API Explorer (integrated approach) #3529

Merged
merged 16 commits into from
Mar 29, 2024

Conversation

pepopowitz
Copy link
Collaborator

@pepopowitz pepopowitz commented Mar 26, 2024

Description

Replaces #3487; resolves #3421.

Introduces a Zeebe REST API Explorer, in a more integrated approach than #3487.

What it looks like:

image

Preview site

https://loquacious-pika-a05ac2.netlify.app/docs/next/apis-tools/zeebe-api-rest/zeebe-api-rest-overview/

What's included

  • A package.json script for re-generating the Zeebe REST API Explorer docs in vNext.
  • A very bare Overview page for the Zeebe REST API. It links to an Authentication document that looks pretty similar to the Tasklist REST API Authentication document.
  • This API Explorer is only available in vNext. It includes the standard vNext banner.
  • Masking of the API version itself. The API version is currently 0.1; when the API ships in April it will be 1.0; however the 1.0 API surface changes in coordination with alpha and minor releases. As a result, I've opted to embed the API Explorer directly in the main docs, so that they can be versioned alongside the main component docs. See this thread and this Slack conversation for the context that prompted this design choice.
  • A few small changes to the Zeebe REST OpenAPI spec, to bring language styles in line with our other docs and API Explorers. See the exact changes I made in this implementation. I will follow up with a PR for the Zeebe REST team to integrate these changes at the source.
  • A customization to the 3rd-party OpenAPI Docusaurus plugin we're using, to avoid a confusing duplication of schema descriptions (described in feat: Zeebe REST API Explorer #3487 (comment))

What's not included yet and blocks this PR from merging

  • Instructions on how to regenerate the docs, and what happens to the generated docs in non-next versions. In past iterations of this work I've included myself in the process of re-generating docs, but I think in this iteration the spec is rock solid and doesn't require much intervention, and I think it will be best for the API owners to take ownership of the generated docs after I initiate them. I need to document how the Zeebe REST team can take ownership.

What's not included but does not block this PR from merging

  • Manual docs, like a more complete Overview and an Authentication page (or section), should be covered by Document the Zeebe OpenAPI spec #3277.
  • Follow-up with the Zeebe REST team to integrate my OpenAPI spec changes. I will handle this in a separate PR.

When should this change go live?

  • This change is not yet live and should not be merged until {ADD_DATE} (apply hold label or convert to draft PR)?
  • There is no urgency with this change.
  • This change or page is part of a marketing blog, conference talk, or something else on a schedule -- required prior to 8.5 release.
  • This functionality is already available but undocumented.
  • This is a bug fix or security concern.

PR Checklist

  • I have added changes to the relevant /versioned_docs directory, or they are not for an already released version.
  • I have added changes to the main /docs directory (aka /next/), or they are not for future versions.
  • My changes require an Engineering review, and I've assigned an engineering manager or tech lead as a reviewer, or my changes do not require an Engineering review.
  • My changes require a technical writer review, and I've assigned @christinaausley as a reviewer, or my changes do not require a technical writer review.

> [email protected] prettier
> prettier

Usage: prettier [options] [file/dir/glob ...]

By default, output is written to stdout.
Stdin is read if it is piped to Prettier and no files are given.

Output options:

  -c, --check              Check if the given files are formatted, print a human-friendly summary
                           message and paths to unformatted files (see also --list-different).
  -l, --list-different     Print the names of files that are different from Prettier's formatting (see also --check).
  -w, --write              Edit files in-place. (Beware!)

Format options:

  --arrow-parens <always|avoid>
                           Include parentheses around a sole arrow function parameter.
                           Defaults to always.
  --bracket-same-line      Put > of opening tags on the last line instead of on a new line.
                           Defaults to false.
  --no-bracket-spacing     Do not print spaces between brackets.
  --embedded-language-formatting <auto|off>
                           Control how Prettier formats quoted code embedded in the file.
                           Defaults to auto.
  --end-of-line <lf|crlf|cr|auto>
                           Which end of line characters to apply.
                           Defaults to lf.
  --html-whitespace-sensitivity <css|strict|ignore>
                           How to handle whitespaces in HTML.
                           Defaults to css.
  --jsx-single-quote       Use single quotes in JSX.
                           Defaults to false.
  --parser <flow|babel|babel-flow|babel-ts|typescript|acorn|espree|meriyah|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|glimmer|html|angular|lwc>
                           Which parser to use.
  --print-width <int>      The line length where Prettier will try wrap.
                           Defaults to 80.
  --prose-wrap <always|never|preserve>
                           How to wrap prose.
                           Defaults to preserve.
  --quote-props <as-needed|consistent|preserve>
                           Change when properties in objects are quoted.
                           Defaults to as-needed.
  --no-semi                Do not print semicolons, except at the beginning of lines which may need them.
  --single-attribute-per-line
                           Enforce single attribute per line in HTML, Vue and JSX.
                           Defaults to false.
  --single-quote           Use single quotes instead of double quotes.
                           Defaults to false.
  --tab-width <int>        Number of spaces per indentation level.
                           Defaults to 2.
  --trailing-comma <all|es5|none>
                           Print trailing commas wherever possible when multi-line.
                           Defaults to all.
  --use-tabs               Indent with tabs instead of spaces.
                           Defaults to false.
  --vue-indent-script-and-style
                           Indent script and style tags in Vue files.
                           Defaults to false.

Config options:

  --config <path>          Path to a Prettier configuration file (.prettierrc, package.json, prettier.config.js).
  --no-config              Do not look for a configuration file.
  --config-precedence <cli-override|file-override|prefer-file>
                           Define in which order config files and CLI options should be evaluated.
                           Defaults to cli-override.
  --no-editorconfig        Don't take .editorconfig into account when parsing configuration.
  --find-config-path <path>
                           Find and print the path to a configuration file for the given input file.
  --ignore-path <path>     Path to a file with patterns describing files to ignore.
                           Multiple values are accepted.
                           Defaults to [.gitignore, .prettierignore].
  --plugin <path>          Add a plugin. Multiple plugins can be passed as separate `--plugin`s.
                           Defaults to [].
  --with-node-modules      Process files inside 'node_modules' directory.

Editor options:

  --cursor-offset <int>    Print (to stderr) where a cursor at the given position would move to after formatting.
                           This option cannot be used with --range-start and --range-end.
                           Defaults to -1.
  --range-end <int>        Format code ending at a given character offset (exclusive).
                           The range will extend forwards to the end of the selected statement.
                           This option cannot be used with --cursor-offset.
                           Defaults to Infinity.
  --range-start <int>      Format code starting at a given character offset.
                           The range will extend backwards to the start of the first line containing the selected statement.
                           This option cannot be used with --cursor-offset.
                           Defaults to 0.

Other options:

  --cache                  Only format changed files. Cannot use with --stdin-filepath.
                           Defaults to false.
  --cache-location <path>  Path to the cache file.
  --cache-strategy <metadata|content>
                           Strategy for the cache to use for detecting changed files.
  --no-color               Do not colorize error messages.
  --no-error-on-unmatched-pattern
                           Prevent errors when pattern is unmatched.
  --file-info <path>       Extract the following info (as JSON) for a given file path. Reported fields:
                           * ignored (boolean) - true if file path is filtered by --ignore-path
                           * inferredParser (string | null) - name of parser inferred from file path
  -h, --help <flag>        Show CLI usage, or details about the given flag.
                           Example: --help write
  -u, --ignore-unknown     Ignore unknown files.
  --insert-pragma          Insert @Format pragma into file's first docblock comment.
                           Defaults to false.
  --log-level <silent|error|warn|log|debug>
                           What level of logs to report.
                           Defaults to log.
  --require-pragma         Require either '@prettier' or '@Format' to be present in the file's first docblock comment
                           in order for it to be formatted.
                           Defaults to false.
  --stdin-filepath <path>  Path to the file to pretend that stdin comes from.
  --support-info           Print support information as JSON.
  -v, --version            Print Prettier version.
Copy link
Contributor

github-actions bot commented Mar 26, 2024

👋 🤖 🤔 Hello! Did you make your changes in all the right places?

These files were changed only in docs/. You might want to duplicate these changes in versioned_docs/version-8.4/.

  • docs/apis-tools/zeebe-api-rest/sidebar-schema.js
  • docs/apis-tools/zeebe-api-rest/specifications/assign-a-user-task.api.mdx
  • docs/apis-tools/zeebe-api-rest/specifications/complete-a-user-task.api.mdx
  • docs/apis-tools/zeebe-api-rest/specifications/get-cluster-topology.api.mdx
  • docs/apis-tools/zeebe-api-rest/specifications/sidebar.js
  • docs/apis-tools/zeebe-api-rest/specifications/unassign-a-user-task.api.mdx
  • docs/apis-tools/zeebe-api-rest/specifications/update-a-user-task.api.mdx
  • docs/apis-tools/zeebe-api-rest/specifications/zeebe-rest-api.info.mdx
  • docs/apis-tools/zeebe-api-rest/zeebe-api-rest-authentication.md
  • docs/apis-tools/zeebe-api-rest/zeebe-api-rest-overview.md

You may have done this intentionally, but we wanted to point it out in case you didn't. You can read more about the versioning within our docs in our documentation guidelines.

@pepopowitz pepopowitz self-assigned this Mar 26, 2024
@pepopowitz pepopowitz added kind/enhancement Issues related with enhancing existing documentation or the documentation structure (nice to have) dx Documentation infrastructure typically handled by the Camunda DX team epic:api-interactivity labels Mar 26, 2024
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shell script is run during the package.json script that generates the docs.

"Zeebe API (REST)": [
"apis-tools/zeebe-api-rest/zeebe-api-rest-overview",
{
Specifications: require("./specifications/sidebar.js"),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opted to put the generated docs inside a section named "Specifications". Among other reasons, this allows me to avoid dealing with a confusing conflict between the "Overview" doc, which we manage manually and will eventually contain more useful information for getting started with the API, and the generated "Introduction" doc, which is less useful but any manual changes to it would easily be overwritten during generation.

Comment on lines 11 to 13
:::note
Ensure you authenticate before accessing the Zeebe REST API.
:::
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is lacking any details on how to authenticate! I'll follow up in #3277 about who will write this documentation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add this. We'll link to the same page as we did for the gRPC stuff, as it won't greatly differ.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed this message @npepinpe! My apologies for doing something that you said you were going to do 😅

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good :)

Comment on lines +417 to +418
docLayoutComponent: "@theme/DocPage",
docItemComponent: "@theme/ApiItem",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These overrides are applied to the entire main docs instance, so that API Explorer pages can render properly. I have not found any regressions caused by overriding these for other pages, but we should keep an eye out for that happening.

"<!-- I don't know why these generated docs need to be prettier'ed twice but they do -->": "",
"api:generate:operate": "docusaurus clean-api-docs operate -p api-operate-openapi && docusaurus gen-api-docs operate -p api-operate-openapi && prettier --write api/operate/docs/ && prettier --write api/operate/docs/",
"api:generate:tasklist": "docusaurus clean-api-docs tasklist -p api-tasklist-openapi && docusaurus gen-api-docs tasklist -p api-tasklist-openapi && prettier --write api/tasklist/docs/ && prettier --write api/operate/docs/",
"api:generate:zeebe": "docusaurus clean-api-docs zeebe -p api-zeebe-openapi && docusaurus gen-api-docs zeebe -p api-zeebe-openapi && bash ./api/zeebe/post-generate.sh && prettier --write docs/apis-tools/zeebe-api-rest/specifications && prettier --write docs/apis-tools/zeebe-api-rest/specifications"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script is kind of lengthy, but it does all the things that need to happen for re-generation.

It relies on bash to run a shell script. Is this inappropriate? Does this need to be rewritten to be more cross-platform?

@npepinpe npepinpe requested review from npepinpe and removed request for koevskinikola March 27, 2024 08:47
npepinpe
npepinpe previously approved these changes Mar 27, 2024
@pepopowitz
Copy link
Collaborator Author

Body has been updated to include information about an Authentication page, which can be seen here in the preview site, or here for the commit itself.

@pepopowitz pepopowitz requested a review from npepinpe March 28, 2024 15:49
For example, send a request using _curl_:

```shell
curl -X POST -H -H :accept: application/json" -H "Authorization: Bearer <TOKEN>" -d '' http://localhost:8080/v1/topology
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the endpoint here is a Zeebe REST endpoint, not a Tasklist endpoint (where I pulled this doc originally from).

| ------------------------ | ----------------------------------------------- | ------------------ |
| client id | Name of your registered client | - |
| client secret | Password for your registered client | - |
| audience | Permission name; if not given use default value | `zeebe.camunda.io` |
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this audience correct?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to write the docs for the REST API anyway this week, so I'll go over it and add any minor touch ups required.

"expires_in": 86400,
"token_type": "Bearer"
}
```
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Tasklist Auth doc has a section on self-managed authentication, but it just links to a self-managed doc. I did not find a similar doc for Zeebe so I removed that section here.

@pepopowitz
Copy link
Collaborator Author

This has gone pretty quiet over the past couple days, I'm merging to get it out there. If people have feedback after the merge, I'm happy to address it in follow-up PRs.

@pepopowitz pepopowitz merged commit 530e7ee into main Mar 29, 2024
8 checks passed
@pepopowitz pepopowitz deleted the pepopowitz/3421-zeebe-rest-api-redo branch March 29, 2024 14:09
github-merge-queue bot pushed a commit to camunda/camunda that referenced this pull request Mar 29, 2024
…perience (#17201)

## Description

A few minor modifications to the REST OpenAPI spec, to align with the
changes I made in camunda/camunda-docs#3529.
These changes were made to improve the docs.camunda.io browsing
experience. See
[here](https://stage.docs.camunda.io/docs/next/apis-tools/zeebe-api-rest/specifications/zeebe-rest-api/)
to see the changes applied on the docs side.

1. Modifies endpoint names to (a) remove periods, and (b) shorten the
language. This align this API's left-nav with other APIs in
docs.camunda.io.
2. Adds tags to each endpoint. This allows the docs.camunda.io
navigation to be grouped by resource.
3. Adds a `bearerAuth` security scheme. This instructs the
docs.camunda.io documentation to specify that authentication is
required.

If any of these changes feel inappropriate to make here at the source,
let me know, and I can update the PR with only the changes you wish to
include.

<!-- Cut-off marker
_All lines under and including the cut-off marker will be removed from
the merge commit message_

## Definition of Ready

Please check the items that apply, before requesting a review.

You can find more details about these items in our wiki page about [Pull
Requests and Code
Reviews](https://github.com/camunda/zeebe/wiki/Pull-Requests-and-Code-Reviews).

* [x] I've reviewed my own code
* [x] I've written a clear changelist description
* [x] I've narrowly scoped my changes
* [x] I've separated structural from behavioural changes
-->

## Definition of Done

<!-- Please check the items that apply, before merging or (if possible)
before requesting a review. -->

_Not all items need to be done depending on the issue and the pull
request._

Code changes:
* [ ] The changes are backwards compatibility with previous versions
* [ ] If it fixes a bug then PRs are created to
[backport](https://github.com/camunda/zeebe/compare/stable/0.24...main?expand=1&template=backport_template.md&title=[Backport%200.24])
the fix to the last two minor versions. You can trigger a backport by
assigning labels (e.g. `backport stable/1.3`) to the PR, in case that
fails you need to create backports manually.

Testing:
* [ ] There are unit/integration tests that verify all acceptance
criterias of the issue
* [ ] New tests are written to ensure backwards compatibility with
further versions
* [ ] The behavior is tested manually
* [ ] The change has been verified by a QA run
* [ ] The impact of the changes is verified by a benchmark

Documentation:
* [x] The documentation is updated (e.g. BPMN reference, configuration,
examples, get-started guides, etc.)
* [ ] If the PR changes how BPMN processes are validated (e.g. support
new BPMN element) then the Camunda modeling team should be informed to
adjust the BPMN linting.

Other teams:
If the change impacts another team an issue has been created for this
team, explaining what they need to do to support this change.
- [ ] [Tasklist](https://github.com/camunda/tasklist/issues)
- [ ] [Web Modeler](https://github.com/camunda/web-modeler/issues)
- [ ] [Desktop
Modeler](https://github.com/camunda/camunda-modeler/issues)
- [ ] [Optimize](https://github.com/camunda/camunda-optimize/issues)

Please refer to our [review
guidelines](https://github.com/camunda/zeebe/wiki/Pull-Requests-and-Code-Reviews#code-review-guidelines).
theburi pushed a commit that referenced this pull request Apr 3, 2024
* feat: configure zeebe api explorer

* feat: generate zeebe rest api docs

* feat: show correct version for Zeebe API Explorer

* chore: pass-through script to prettier so i can call it like
> [email protected] prettier
> prettier

Usage: prettier [options] [file/dir/glob ...]

By default, output is written to stdout.
Stdin is read if it is piped to Prettier and no files are given.

Output options:

  -c, --check              Check if the given files are formatted, print a human-friendly summary
                           message and paths to unformatted files (see also --list-different).
  -l, --list-different     Print the names of files that are different from Prettier's formatting (see also --check).
  -w, --write              Edit files in-place. (Beware!)

Format options:

  --arrow-parens <always|avoid>
                           Include parentheses around a sole arrow function parameter.
                           Defaults to always.
  --bracket-same-line      Put > of opening tags on the last line instead of on a new line.
                           Defaults to false.
  --no-bracket-spacing     Do not print spaces between brackets.
  --embedded-language-formatting <auto|off>
                           Control how Prettier formats quoted code embedded in the file.
                           Defaults to auto.
  --end-of-line <lf|crlf|cr|auto>
                           Which end of line characters to apply.
                           Defaults to lf.
  --html-whitespace-sensitivity <css|strict|ignore>
                           How to handle whitespaces in HTML.
                           Defaults to css.
  --jsx-single-quote       Use single quotes in JSX.
                           Defaults to false.
  --parser <flow|babel|babel-flow|babel-ts|typescript|acorn|espree|meriyah|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|glimmer|html|angular|lwc>
                           Which parser to use.
  --print-width <int>      The line length where Prettier will try wrap.
                           Defaults to 80.
  --prose-wrap <always|never|preserve>
                           How to wrap prose.
                           Defaults to preserve.
  --quote-props <as-needed|consistent|preserve>
                           Change when properties in objects are quoted.
                           Defaults to as-needed.
  --no-semi                Do not print semicolons, except at the beginning of lines which may need them.
  --single-attribute-per-line
                           Enforce single attribute per line in HTML, Vue and JSX.
                           Defaults to false.
  --single-quote           Use single quotes instead of double quotes.
                           Defaults to false.
  --tab-width <int>        Number of spaces per indentation level.
                           Defaults to 2.
  --trailing-comma <all|es5|none>
                           Print trailing commas wherever possible when multi-line.
                           Defaults to all.
  --use-tabs               Indent with tabs instead of spaces.
                           Defaults to false.
  --vue-indent-script-and-style
                           Indent script and style tags in Vue files.
                           Defaults to false.

Config options:

  --config <path>          Path to a Prettier configuration file (.prettierrc, package.json, prettier.config.js).
  --no-config              Do not look for a configuration file.
  --config-precedence <cli-override|file-override|prefer-file>
                           Define in which order config files and CLI options should be evaluated.
                           Defaults to cli-override.
  --no-editorconfig        Don't take .editorconfig into account when parsing configuration.
  --find-config-path <path>
                           Find and print the path to a configuration file for the given input file.
  --ignore-path <path>     Path to a file with patterns describing files to ignore.
                           Multiple values are accepted.
                           Defaults to [.gitignore, .prettierignore].
  --plugin <path>          Add a plugin. Multiple plugins can be passed as separate `--plugin`s.
                           Defaults to [].
  --with-node-modules      Process files inside 'node_modules' directory.

Editor options:

  --cursor-offset <int>    Print (to stderr) where a cursor at the given position would move to after formatting.
                           This option cannot be used with --range-start and --range-end.
                           Defaults to -1.
  --range-end <int>        Format code ending at a given character offset (exclusive).
                           The range will extend forwards to the end of the selected statement.
                           This option cannot be used with --cursor-offset.
                           Defaults to Infinity.
  --range-start <int>      Format code starting at a given character offset.
                           The range will extend backwards to the start of the first line containing the selected statement.
                           This option cannot be used with --cursor-offset.
                           Defaults to 0.

Other options:

  --cache                  Only format changed files. Cannot use with --stdin-filepath.
                           Defaults to false.
  --cache-location <path>  Path to the cache file.
  --cache-strategy <metadata|content>
                           Strategy for the cache to use for detecting changed files.
  --no-color               Do not colorize error messages.
  --no-error-on-unmatched-pattern
                           Prevent errors when pattern is unmatched.
  --file-info <path>       Extract the following info (as JSON) for a given file path. Reported fields:
                           * ignored (boolean) - true if file path is filtered by --ignore-path
                           * inferredParser (string | null) - name of parser inferred from file path
  -h, --help <flag>        Show CLI usage, or details about the given flag.
                           Example: --help write
  -u, --ignore-unknown     Ignore unknown files.
  --insert-pragma          Insert @Format pragma into file's first docblock comment.
                           Defaults to false.
  --log-level <silent|error|warn|log|debug>
                           What level of logs to report.
                           Defaults to log.
  --require-pragma         Require either '@prettier' or '@Format' to be present in the file's first docblock comment
                           in order for it to be formatted.
                           Defaults to false.
  --stdin-filepath <path>  Path to the file to pretend that stdin comes from.
  --support-info           Print support information as JSON.
  -v, --version            Print Prettier version.

* refactor: align endpoint descriptions with other explorers

* oops: revert this https change that I keep making for some reason

* fix: override display of additionalProperties in schemas

* confused: I don't know why the generated docs need to be double-prettier'ed, but they do

* chore: update OpenAPI spec

* fix: adjust Zeebe API version based on spec

* feat: display an 'unreleased' banner at the top of the Zeebe Explorer

* feat: migrate zeebe rest api docs into main docs instance

* Revert "feat: show correct version for Zeebe API Explorer"

This reverts commit 6ebe63b.

* Revert "feat: display an 'unreleased' banner at the top of the Zeebe Explorer"

This reverts commit 4d7eec8.

* refactor: zeebe rest overview

* docs: describe auth for zeebe rest api
theburi pushed a commit that referenced this pull request Jun 5, 2024
* feat: configure zeebe api explorer

* feat: generate zeebe rest api docs

* feat: show correct version for Zeebe API Explorer

* chore: pass-through script to prettier so i can call it like
> [email protected] prettier
> prettier

Usage: prettier [options] [file/dir/glob ...]

By default, output is written to stdout.
Stdin is read if it is piped to Prettier and no files are given.

Output options:

  -c, --check              Check if the given files are formatted, print a human-friendly summary
                           message and paths to unformatted files (see also --list-different).
  -l, --list-different     Print the names of files that are different from Prettier's formatting (see also --check).
  -w, --write              Edit files in-place. (Beware!)

Format options:

  --arrow-parens <always|avoid>
                           Include parentheses around a sole arrow function parameter.
                           Defaults to always.
  --bracket-same-line      Put > of opening tags on the last line instead of on a new line.
                           Defaults to false.
  --no-bracket-spacing     Do not print spaces between brackets.
  --embedded-language-formatting <auto|off>
                           Control how Prettier formats quoted code embedded in the file.
                           Defaults to auto.
  --end-of-line <lf|crlf|cr|auto>
                           Which end of line characters to apply.
                           Defaults to lf.
  --html-whitespace-sensitivity <css|strict|ignore>
                           How to handle whitespaces in HTML.
                           Defaults to css.
  --jsx-single-quote       Use single quotes in JSX.
                           Defaults to false.
  --parser <flow|babel|babel-flow|babel-ts|typescript|acorn|espree|meriyah|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|glimmer|html|angular|lwc>
                           Which parser to use.
  --print-width <int>      The line length where Prettier will try wrap.
                           Defaults to 80.
  --prose-wrap <always|never|preserve>
                           How to wrap prose.
                           Defaults to preserve.
  --quote-props <as-needed|consistent|preserve>
                           Change when properties in objects are quoted.
                           Defaults to as-needed.
  --no-semi                Do not print semicolons, except at the beginning of lines which may need them.
  --single-attribute-per-line
                           Enforce single attribute per line in HTML, Vue and JSX.
                           Defaults to false.
  --single-quote           Use single quotes instead of double quotes.
                           Defaults to false.
  --tab-width <int>        Number of spaces per indentation level.
                           Defaults to 2.
  --trailing-comma <all|es5|none>
                           Print trailing commas wherever possible when multi-line.
                           Defaults to all.
  --use-tabs               Indent with tabs instead of spaces.
                           Defaults to false.
  --vue-indent-script-and-style
                           Indent script and style tags in Vue files.
                           Defaults to false.

Config options:

  --config <path>          Path to a Prettier configuration file (.prettierrc, package.json, prettier.config.js).
  --no-config              Do not look for a configuration file.
  --config-precedence <cli-override|file-override|prefer-file>
                           Define in which order config files and CLI options should be evaluated.
                           Defaults to cli-override.
  --no-editorconfig        Don't take .editorconfig into account when parsing configuration.
  --find-config-path <path>
                           Find and print the path to a configuration file for the given input file.
  --ignore-path <path>     Path to a file with patterns describing files to ignore.
                           Multiple values are accepted.
                           Defaults to [.gitignore, .prettierignore].
  --plugin <path>          Add a plugin. Multiple plugins can be passed as separate `--plugin`s.
                           Defaults to [].
  --with-node-modules      Process files inside 'node_modules' directory.

Editor options:

  --cursor-offset <int>    Print (to stderr) where a cursor at the given position would move to after formatting.
                           This option cannot be used with --range-start and --range-end.
                           Defaults to -1.
  --range-end <int>        Format code ending at a given character offset (exclusive).
                           The range will extend forwards to the end of the selected statement.
                           This option cannot be used with --cursor-offset.
                           Defaults to Infinity.
  --range-start <int>      Format code starting at a given character offset.
                           The range will extend backwards to the start of the first line containing the selected statement.
                           This option cannot be used with --cursor-offset.
                           Defaults to 0.

Other options:

  --cache                  Only format changed files. Cannot use with --stdin-filepath.
                           Defaults to false.
  --cache-location <path>  Path to the cache file.
  --cache-strategy <metadata|content>
                           Strategy for the cache to use for detecting changed files.
  --no-color               Do not colorize error messages.
  --no-error-on-unmatched-pattern
                           Prevent errors when pattern is unmatched.
  --file-info <path>       Extract the following info (as JSON) for a given file path. Reported fields:
                           * ignored (boolean) - true if file path is filtered by --ignore-path
                           * inferredParser (string | null) - name of parser inferred from file path
  -h, --help <flag>        Show CLI usage, or details about the given flag.
                           Example: --help write
  -u, --ignore-unknown     Ignore unknown files.
  --insert-pragma          Insert @Format pragma into file's first docblock comment.
                           Defaults to false.
  --log-level <silent|error|warn|log|debug>
                           What level of logs to report.
                           Defaults to log.
  --require-pragma         Require either '@prettier' or '@Format' to be present in the file's first docblock comment
                           in order for it to be formatted.
                           Defaults to false.
  --stdin-filepath <path>  Path to the file to pretend that stdin comes from.
  --support-info           Print support information as JSON.
  -v, --version            Print Prettier version.

* refactor: align endpoint descriptions with other explorers

* oops: revert this https change that I keep making for some reason

* fix: override display of additionalProperties in schemas

* confused: I don't know why the generated docs need to be double-prettier'ed, but they do

* chore: update OpenAPI spec

* fix: adjust Zeebe API version based on spec

* feat: display an 'unreleased' banner at the top of the Zeebe Explorer

* feat: migrate zeebe rest api docs into main docs instance

* Revert "feat: show correct version for Zeebe API Explorer"

This reverts commit 6ebe63b.

* Revert "feat: display an 'unreleased' banner at the top of the Zeebe Explorer"

This reverts commit 4d7eec8.

* refactor: zeebe rest overview

* docs: describe auth for zeebe rest api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx Documentation infrastructure typically handled by the Camunda DX team epic:api-interactivity kind/enhancement Issues related with enhancing existing documentation or the documentation structure (nice to have)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Zeebe REST API Explorer
3 participants