Skip to content

Commit

Permalink
IGNITE-20008 FIxed awkward code boxes in rest docs (#10848)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgGusev authored Jul 20, 2023
1 parent 026ffb9 commit c9f4d54
Showing 1 changed file with 9 additions and 24 deletions.
33 changes: 9 additions & 24 deletions docs/_docs/restapi.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,7 @@ In the above connection string, replace `[host]`, `[port]`, and `[sessionToken]`
[WARNING]
====
Either user credentials or a session token is required when authentication is enabled on the server.
Failure to provide either a `sessionToken` or `user` & `password` parameters in the REST connection string results in an error:
[source, json]
----
{
"successStatus":2,
"sessionToken":null,
"error":"Failed to handle request - session token not found or invalid",
"response":null
}
----
Failure to provide either a `sessionToken` or `user` & `password` parameters in the REST connection string results in an error.
====


Expand All @@ -160,17 +150,7 @@ Failure to provide either a `sessionToken` or `user` & `password` parameters in
[discrete]
=== Session Token Expiration
A session token is valid only for 30 seconds. Using an expired session token results in an error, like the one below:
[source, json]
----
{
"successStatus":1,
"error":"Failed to handle request - unknown session token (maybe expired session) [sesTok=12FFFD4827D149068E9FFF59700E5FDA]",
"sessionToken":null,
"response":null
}
----
A session token is valid only for 30 seconds. Using an expired session token results in an error.
To set a custom expire time, set the system variable: `IGNITE_REST_SESSION_TIMEOUT` (in seconds).
Expand Down Expand Up @@ -293,9 +273,9 @@ link:/docs/data-modeling/data-modeling#binary-object-format[binary object] forma
* If the `Person` class is not available on the server’s classpath, but there is a `QueryEntity` object that defines
the `Person`, then the JSON object is resolved to a binary object of that `Person` type:
+
[%header, cols="2"]
[%header, cols="1"]
|===
|Query entity|Binary Object (Person)
|Query entity
a|
[source,xml]
----
Expand All @@ -313,6 +293,11 @@ a|
</property>
</bean>
----
|===
+
[%header, cols="1"]
|===
|Binary Object (Person)
a|
[source,javascript]
----
Expand Down

0 comments on commit c9f4d54

Please sign in to comment.