summaryrefslogtreecommitdiffstats
path: root/docs/offeredapis.rst
blob: e8f7ef78d64328f427400a250d6273ec04b609bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.. This work is licensed under a Creative Commons Attribution 4.0 International License.


Offered APIs
=================

+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Entity              | Method   | Path Info                                             | Description                                                                                                                                                                               |
+=====================+==========+=======================================================+===========================================================================================================================================================================================+
| Health Check        | GET      | /healthCheck                                          | The Health Status of the application checks the DB connection.                                                                                                                            |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       | Used by IDNS for redundancy                                                                                                                                                               |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       |                                                                                                                                                                                           |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       | return response entity:                                                                                                                                                                   |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       | - statusCode Either 200 or 500                                                                                                                                                            |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       | - The message contains additional detail in the case of an error, and is empty in the case of success.                                                                                    |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       |                                                                                                                                                                                           |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       | Expected:                                                                                                                                                                                 |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       | {                                                                                                                                                                                         |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       | “statusCode”:200,                                                                                                                                                                         |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       | “message”:“health check succeeded”,                                                                                                                                                       |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       | “date”:null                                                                                                                                                                               |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       | }                                                                                                                                                                                         |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                     |          |                                                       |                                                                                                                                                                                           |
+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+