blob: c39e2c27c37bbd4f3f1331dbf956f1060e73c67c [file] [log] [blame]
Ofir Sonsinod33c93a2017-10-02 17:23:52 +03001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2
3
Ofir Sonsino0e1e6a92017-11-08 11:31:34 +02004Offered APIs
Ofir Sonsinod33c93a2017-10-02 17:23:52 +03005=================
6
7+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
8| Entity | Method | Path Info | Description |
9+=====================+==========+=======================================================+===========================================================================================================================================================================================+
Ofir Sonsino0e1e6a92017-11-08 11:31:34 +020010| Health Check | GET | /healthCheck | The Health Status of the application checks the DB connection. |
Ofir Sonsinod33c93a2017-10-02 17:23:52 +030011+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
12| | | | Used by IDNS for redundancy |
13+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
14| | | | |
15+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
16| | | | return response entity: |
17+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
18| | | | - statusCode Either 200 or 500 |
19+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Joanna Jeremicz56f2ad22018-09-19 14:35:00 +020020| | | | - detailedMsg of the result, in case of failure particular error message |
Ofir Sonsinod33c93a2017-10-02 17:23:52 +030021+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
22| | | | |
23+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
24| | | | Expected: |
25+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
26| | | | { |
27+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Joanna Jeremicz56f2ad22018-09-19 14:35:00 +020028| | | | statusCode”: 200, |
Ofir Sonsinod33c93a2017-10-02 17:23:52 +030029+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Joanna Jeremicz56f2ad22018-09-19 14:35:00 +020030| | | | detailedMsg”: health check succeeded”, |
Ofir Sonsinod33c93a2017-10-02 17:23:52 +030031+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Joanna Jeremicz56f2ad22018-09-19 14:35:00 +020032| | | | date”: current date |
Ofir Sonsinod33c93a2017-10-02 17:23:52 +030033+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
34| | | | } |
35+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
36| | | | |
37+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
38| | | | |
39+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
40| | | | |
41+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Ofir Sonsino0e1e6a92017-11-08 11:31:34 +020042| Health Check | GET | rest/healthCheck/{User-Agent}/{X-ECOMP-RequestID} | The Health Status of the application checks the DB connection |
Ofir Sonsinod33c93a2017-10-02 17:23:52 +030043+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
44| | | | |
45+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
46| | | | return response entity: |
47+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
48| | | | - statusCode Either 200 or 500 |
49+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Joanna Jeremicz56f2ad22018-09-19 14:35:00 +020050| | | | - detailedMsg of the result, in case of failure particular error message |
Ofir Sonsinod33c93a2017-10-02 17:23:52 +030051+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Ofir Sonsino0e1e6a92017-11-08 11:31:34 +020052| | | | - date string indicating the current date & time |
Ofir Sonsinod33c93a2017-10-02 17:23:52 +030053+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
54| | | | |
55+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
56| | | | Expected: |
57+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
58| | | | { |
59+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Joanna Jeremicz56f2ad22018-09-19 14:35:00 +020060| | | | statusCode”: 200, |
Ofir Sonsinod33c93a2017-10-02 17:23:52 +030061+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Joanna Jeremicz56f2ad22018-09-19 14:35:00 +020062| | | | detailedMsg”: health check succeeded”, |
Ofir Sonsinod33c93a2017-10-02 17:23:52 +030063+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
64| | | | date”: current date |
65+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
66| | | | } |
67+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
68| | | | |
69+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
70| | | | |
71+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Joanna Jeremicz56f2ad22018-09-19 14:35:00 +020072| Commit Version | GET | /commitInfo | Displays info about the last commit of the running build |
73+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
74| | | | |
75+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
76| | | | return response entity: |
77+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
78| | | | - commitId full id of the commit |
79+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
80| | | | - commitMessageShort short message from the commit |
81+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
82| | | | - commitTime time of the commit |
83+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
84| | | | |
85+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
86| | | | Expected: |
87+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
88| | | | { |
89+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
90| | | | commitId”: id of the last commit |
91+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
92| | | | commitMessageShort”: short message of the last commit |
93+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
94| | | | commitTime”: time of the last commit |
95+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
96| | | | } |
97+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
98| | | | |
99+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
100| | | | |
101+---------------------+----------+-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+