Skip to content

Commit e0572a8

Browse files
committed
💄 Reduce heading levels in documentation
1 parent d2fe7d4 commit e0572a8

File tree

113 files changed

+909
-905
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+909
-905
lines changed

css/main.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,8 @@ iframe {
246246

247247
.bg-white {
248248
background-color: rgb(233, 226, 226);
249+
}
250+
251+
h6 {
252+
margin-bottom: 0.4em;
249253
}

docs/auditing.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: docs-adoc
44
menu: setup
55
---
66

7-
== Opentracing / zipkin headers support
7+
=== Opentracing / zipkin headers support
88

99
This implements issue link:https://github.com/SoftInstigate/restheart/issues/287[#287]
1010

@@ -14,7 +14,7 @@ This implementation makes it possible to correlate logged exceptions (in case th
1414

1515
It handles all headers mentioned in link:https://github.com/openzipkin/b3-propagation[b3-propagation], as well as the uber-trace-id header that is used by Jaeger (see link:https://www.jaegertracing.io/docs/client-libraries/#trace-span-identity[trace-span-identity] to get broader support.
1616

17-
=== Configuration
17+
==== Configuration
1818

1919
`/mongo/metrics-gathering-level`: metrics gathering for which level? OFF => no gathering, ROOT => gathering at root level, DATABASE => at db level, COLLECTION => at collection level
2020
WARNING: use requests-log-level level 2 only for development purposes, it logs user credentials (Authorization and Auth-Token headers).

docs/configuration.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: docs-adoc
44
menu: setup
55
---
66

7-
== Update the `admin` password!
7+
=== Update the `admin` password!
88

99
At first startup, RESTHeart initializes the user `admin`, with the default password `secret`. *This user can execute any request*.
1010

@@ -17,7 +17,7 @@ $ curl -u admin:secret -X PATCH localhost:8080/users/admin -H "Content-Type: app
1717

1818
Refer to link:/docs/security/user-management/[User Management] for more information on how to create new users, roles and permissions.
1919

20-
== Default configuration
20+
=== Default configuration
2121

2222
RESTHeart has a link:/docs/default-configuration[default configuration] and specifying a configuration file is not required.
2323

@@ -31,7 +31,7 @@ The following command prints the default configuration to the console.
3131
[source,bash]
3232
$ java -jar restheart.jar -t
3333

34-
== Configuration file
34+
=== Configuration file
3535

3636
RESTHeart can also use a configuration file:
3737

@@ -41,7 +41,7 @@ $ java -jar restheart.jar restheart.yml
4141

4242
NOTE: The default configuration is fine most of the times. You just want to change few options and the suggested way is using the default configuration with the needed overrides.
4343

44-
== Modify the configuration with the RHO env var
44+
=== Modify the configuration with the RHO env var
4545

4646
The environment variable `RHO` allows to modify and add any configuration option.
4747

@@ -89,7 +89,7 @@ The following are invalid:
8989
/mongo/mongo-mounts[1] -> {"where: "/api" # invalid JSON object
9090
core/io-threads -> 8 # xpath expression does not start with /
9191

92-
== Modify the configuration with an override file
92+
=== Modify the configuration with an override file
9393

9494
A configuration override file can be specified with the `-o` option to modify the default configuration.
9595

@@ -143,11 +143,11 @@ YML format, with keys as xpath expressions to select the options to override or
143143
port: 8080
144144
----
145145

146-
== Change the configuration in Docker container
146+
=== Change the configuration in Docker container
147147

148148
The configuration of RESTHeart running in a Docker container can be modified in three ways.
149149

150-
=== 1 - Using the `RHO` env variable
150+
==== 1 - Using the `RHO` env variable
151151

152152
The following example uses the option `-e RHO="..."` to override the configuration parameters `/mclient/connection-string` and `/core/name`.
153153

@@ -170,7 +170,7 @@ ENV RHO='/mclient/connection-string->"mongodb://host.docker.internal";/http-list
170170

171171
When defining your `RHO` variable always set `/http-listener/host->"0.0.0.0"` and your `/mclient/connection-string`.
172172

173-
=== 2 - Using a configuration override file
173+
==== 2 - Using a configuration override file
174174

175175
[source,bash]
176176
$ docker run --rm -p "8080:8080" -e RHO="" -v /path/to/conf-overrides.conf:/opt/restheart/etc/conf-overrides.conf softinstigate/restheart -o etc/conf-overrides.conf
@@ -185,7 +185,7 @@ ENV RHO='/mclient/connection-string->"mongodb://host.docker.internal";/http-list
185185

186186
To avoid this, just can add `-e RHO=""` to your `docker run` command.
187187

188-
=== 3 - Using a configuration file
188+
==== 3 - Using a configuration file
189189

190190
The following commands add a configuration file to the container:
191191

docs/default-configuration.adoc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: docs-adoc
44
menu: setup
55
---
66

7-
== Introduction
7+
=== Introduction
88

99
This page presents the RESTHeart _default configuration_ splitting it in different sections.
1010

@@ -24,7 +24,7 @@ $ java -jar restheart.jar -t
2424

2525
NOTE: The default configuration is fine most of the times. You just want to change few options and the suggested way is using the default configuration with the needed overrides. See link:http://127.0.0.1:4000/docs/configuration#modify-the-configuration-with-the-rho-env-var[modify the configuration with overrides]
2626

27-
== Standalone configuration
27+
=== Standalone configuration
2828

2929
The default configuration enables several plugins that require MongoDB. If you are using RESTHeart without MongoDB an alternative default configuration can be used with the `-s` option, where `s` stands for _standalone_.
3030

@@ -37,7 +37,7 @@ It defines the user `admin` but the password must be set overriding the configur
3737
$ RHO="/fileRealmAuthenticator/users[userid='admin']/password->'secret'" java -jar core/target/restheart.jar -s
3838
----
3939

40-
== Listeners
40+
=== Listeners
4141

4242
[source,yml]
4343
----
@@ -70,7 +70,7 @@ ajp-listener:
7070
port: 8009
7171
----
7272

73-
== Authentication Mechanisms
73+
=== Authentication Mechanisms
7474

7575
[source,yml]
7676
----
@@ -197,7 +197,7 @@ authCookieRemover:
197197
defaultUri: /logout # The endpoint that triggers this service.
198198
----
199199

200-
== Authorizers
200+
=== Authorizers
201201

202202
[source,yml]
203203
----
@@ -244,7 +244,7 @@ fullAuthorizer:
244244
authentication-required: true
245245
----
246246

247-
== Token Managers
247+
=== Token Managers
248248

249249
[source,yml]
250250
----
@@ -279,7 +279,7 @@ jwtTokenManager:
279279
# - /nested/property # xpath expr for nested properties
280280
----
281281

282-
== Mongo Client Provider
282+
=== Mongo Client Provider
283283

284284
[source,yml]
285285
----
@@ -289,7 +289,7 @@ mclient:
289289
connection-string: mongodb://127.0.0.1
290290
----
291291

292-
== MongoService: MongoDB REST and Websocket API
292+
=== MongoService: MongoDB REST and Websocket API
293293

294294
[source,yml]
295295
----
@@ -388,7 +388,7 @@ mongo:
388388
aggregation-time-limit: 0
389389
----
390390

391-
== MongoDB GraphQL Service
391+
=== MongoDB GraphQL Service
392392

393393
[source,yml]
394394
----
@@ -413,7 +413,7 @@ graphql:
413413

414414
NOTE: `app-cache-enabled` and `app-cache-ttr` are available from v8.0.9 and v8.0.11, respectively. Earlier versions use an expiring cache policy with TTL configurable via the now-deprecated `graphql/app-def-cache-ttl` option. See link:https://github.com/SoftInstigate/restheart/issues/523[issue #523].
415415

416-
== Proxied resources
416+
=== Proxied resources
417417

418418
[source,yml]
419419
----
@@ -435,7 +435,7 @@ proxies:
435435
# name: anything
436436
----
437437

438-
== Static Web Resources
438+
=== Static Web Resources
439439

440440
[source,yml]
441441
----
@@ -448,7 +448,7 @@ static-resources:
448448
# embedded: false
449449
----
450450

451-
== Other services
451+
=== Other services
452452

453453
[source,yml]
454454
----
@@ -498,7 +498,7 @@ dateHeader:
498498
enabled: true
499499
----
500500

501-
== Logging
501+
=== Logging
502502

503503
[source,yml]
504504
----
@@ -534,7 +534,7 @@ logging:
534534
# - tracestate # ^^
535535
----
536536

537-
== Metrics
537+
=== Metrics
538538

539539
[source,yml]
540540
----
@@ -551,7 +551,7 @@ requestsMetricsCollector:
551551
jvmMetricsCollector:
552552
enabled: false
553553
----
554-
== Core module configuration
554+
=== Core module configuration
555555

556556
[source,yml]
557557
----
@@ -611,7 +611,7 @@ core:
611611
allow-unescaped-characters-in-url: true
612612
----
613613

614-
== Connection options
614+
=== Connection options
615615

616616
[source,yml]
617617
----

docs/example-webapps.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ menu: overview
55
---
66
:page-liquid:
77

8-
== Introduction
8+
=== Introduction
99

1010
In this section, we'll introduce you to two web applications developed using Angular and RESTHeart, showcasing the capabilities of RESTHeart for Web Applications development.
1111

1212
NOTE: here we use Angular. Of course you can use RESTHeart with any frontend framework!
1313

1414
These examples demonstrate the versatility and ease of use of RESTHeart, which can be seamlessly integrated with various frontend frameworks to build dynamic web applications. Whether you are using Angular, React, or any other framework, RESTHeart provides a robust backend solution for your web development needs.
1515

16-
== Webchat
16+
=== Webchat
1717

1818
The Webchat application is a real-time chat app hosted at link:https://chat.restheart.org[chat.restheart.org^]. It enables users to engage in real-time conversations with others. What's remarkable about this application is that it requires zero lines of code for creating a real-time chat API, thanks to RESTHeart.
1919

@@ -32,7 +32,7 @@ To gain insights into the communication flow between the web clients and RESTHea
3232
[.img-fluid]
3333
image::/images/webchat-diagram.gif[Webchat Communication Diagram]
3434

35-
== Messages Table View
35+
=== Messages Table View
3636

3737
The Messages Table View application offers a simple and intuitive way to display a tabular view of _message_ documents stored in a MongoDB collection. Additionally, it provides a user-friendly form to create new messages. This application is hosted at link:https://ng-demo.restheart.org[ng-demo.restheart.org^].
3838

@@ -78,7 +78,7 @@ export class Service {
7878
}
7979
----
8080

81-
== Sending a Message Using cURL
81+
=== Sending a Message Using cURL
8282

8383
In this section, we'll demonstrate how to send a chat message using the API with `curl`. By sending a POST request to link:https://demo.restheart.org/messages[demo.restheart.org/messages^], you can interact with the chat application programmatically.
8484

docs/faq.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: docs-adoc
44
menu: overview
55
---
66

7-
=== What is RESTHeart?
7+
==== What is RESTHeart?
88

99
RESTHeart is a framework for building HTTP microservices that aims to empower developers with intuitive APIs out of the box. It is built for developers, with a focus on simplicity, speed and ease of use.
1010

@@ -14,21 +14,21 @@ It has a modular architecture where core functionality is provided by restheart-
1414

1515
'''
1616

17-
=== In which programming language is RESTHeart written?
17+
==== In which programming language is RESTHeart written?
1818

1919
RESTHeart is primarily written in Java. Thanks to GraalVM, its SDK extends support to Java, Kotlin, JavaScript, and TypeScript. Implementing Hello World examples in any of these languages is straightforward.
2020

2121
Furthermore, RESTHeart is available and can be built with custom plugins as a binary executable, allowing for additional flexibility.
2222

2323
'''
2424

25-
=== What are Virtual Threads
25+
==== What are Virtual Threads
2626

2727
RESTHeart is the first framework to fully embrace the use of virtual threads, a groundbreaking feature introduced in Java 21. By leveraging virtual threads, RESTHeart achieves remarkable improvements in performance and efficiency. This innovative model makes RESTHeart faster, more lightweight, and simplifies the development of concurrent code. Virtual threads allow for better resource utilization and significantly reduce the complexity associated with concurrent programming, ensuring that RESTHeart remains at the forefront of high-performance, scalable frameworks.
2828

2929
'''
3030

31-
=== Is it Open Source?
31+
==== Is it Open Source?
3232

3333
Absolutely! RESTHeart is released under the AGPL Open Source License, along with an Enterprise License.
3434

@@ -38,25 +38,25 @@ The Enterprise License is specifically designed for organizations seeking extra
3838

3939
'''
4040

41-
=== How does it support MongoDB?
41+
==== How does it support MongoDB?
4242

4343
The MongoDB plugin exposes the full database capabilities through REST, GraphQL and Websockets with no backend code required. This cuts development time significantly.
4444

4545
'''
4646

47-
=== What security features are supported?
47+
==== What security features are supported?
4848

4949
RESTHeart offers comprehensive authentication and authorization services, supporting various security schemes. It enables the management of users and permissions directly in MongoDB collections, eliminating the need for backend code. This streamlined approach significantly reduces development time.
5050

5151
'''
5252

53-
=== Why restheart is classified as a low code framework?
53+
==== Why restheart is classified as a low code framework?
5454

5555
RESTHeart is classified as a low-code framework because it offers developers customizable APIs that are ready to go. It aims to empower developers with an intuitive framework that encompasses essential features, allowing them to build applications without the need to reinvent the wheel. RESTHeart provides pre-configured APIs that cover a broad range of functionality and are highly customizable to fit specific application needs. This approach reduces the amount of code developers need to write, streamlining the development process and making it easier and faster to build cloud-native HTTP microservices.
5656

5757
'''
5858

59-
=== How can I extend the API?
59+
==== How can I extend the API?
6060

6161
A plugin is a software component that extends the functionality of RESTHeart, allowing you to add additional features and capabilities to the basic API. RESTHeart supports the development of plugins in Java, Kotlin, and JavaScript.
6262

@@ -72,7 +72,7 @@ Please note that for JavaScript plugins, you need to run RESTHeart on GraalVM or
7272

7373
'''
7474

75-
=== What categories of plugins are available?
75+
==== What categories of plugins are available?
7676

7777
There are four types of plugins in RESTHeart:
7878

@@ -85,15 +85,15 @@ Additionally, it is also possible to develop security plugins to customize the s
8585

8686
'''
8787

88-
=== What about performances?
88+
==== What about performances?
8989

9090
In RESTHeart performance is a priority with support for huge throughput, horizontal scaling, and GraalVM for better performance in containers.
9191

9292
It is designed for microservices deployment in Docker/Kubernetes and can run as a standalone JAR, native binary or Docker image.
9393

9494
'''
9595

96-
=== Does the SDK provide a Dependency Injection feature?
96+
==== Does the SDK provide a Dependency Injection feature?
9797

9898
Yes! Dependency injection in RESTHeart works by using the `@Inject` and `@OnInit` annotations in conjunction with provider classes.
9999

0 commit comments

Comments
 (0)