summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMate Barany <mate.barany@qt.io>2023-10-20 17:26:23 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-10-25 19:46:11 +0000
commite689e1cbda8085fb217de5b8b3926c7677eec014 (patch)
treebf8cdadc94c98bff26e719f0bae577b2c0f72c81
parentd46f9f2a651508998799cafa86d871201cbecbed (diff)
Rename the RESTful Color Palette Server example6.5
...to improve visibility for search engines. Task-number: QTBUG-114713 Change-Id: Ib4a921b85bac208f4cdabd0e07ba69639ebc0988 Reviewed-by: Juha Vuolle <juha.vuolle@qt.io> (cherry picked from commit b85c42f2cc1610fd55583041f95a1a69c7200b0a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit c3e5a8756bf01a998ad7f707b56714f281db5371)
-rw-r--r--doc/colorpalette-example.qdoc21
1 files changed, 11 insertions, 10 deletions
diff --git a/doc/colorpalette-example.qdoc b/doc/colorpalette-example.qdoc
index a7127d6..a6cb56e 100644
--- a/doc/colorpalette-example.qdoc
+++ b/doc/colorpalette-example.qdoc
@@ -3,19 +3,24 @@
/*!
\ingroup qthttpserver-examples
-\title RESTful Color Palette Server
+\title RESTful API Server
\examplecategory {Web Technologies}
\brief Example of how to create a RESTful API server using the QHttpServer.
\image restful-color-palette-server-example.png
\example colorpalette
-This example shows how to set up a RESTful API server using the QHttpServer class.
-The example is based on \l {https://reqres.in/}{Reqres API}.
-The Color Palette API allows create, read, update and delete operations of
-colors (unknown resource to be compatible with Reqres API) and users.
-API also provides login/logout functionality.
+This example shows how to create and host simple RESTful web APIs in a small
+application using the QHttpServer class. This server accepts calls in REST
+style and can be used with its counterpart example
+\l {Qt Quick Demo - RESTful API client} {RESTful Color Palette API client}
+on the client side.
+An application that obeys the REST constraints may be informally described as
+RESTful. The RESTful API Server allows create, read, update and delete
+operations of colors (unknown resource to be compatible with Reqres API) and
+users. The RESTful API Server also provides login/logout functionality.
+The example is based on \l {https://reqres.in/}{Reqres API}.
To run the server application, execute server binary:
\code
@@ -62,8 +67,4 @@ For example:
"avatar": "/img/faces/1-image.jpg"
}
\endcode
-
-\l {Qt Quick Demo - RESTful Color Palette API client} {RESTful Color Palette API client} is a
-possible client implementation that can be used to connect to the server.
-
*/