blob: ad657403903239187da2997ac02fce16ad60efb4 [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
Ittay Stern24f220c2019-03-24 15:46:24 +02007+---------------------+----------+-------------------------------------------------------+------------------------------------------------------------------------------------------+
8| Entity | Method | Path Info | Description |
9+=====================+==========+=======================================================+==========================================================================================+
10| Health Check | GET | /healthCheck | The Health Status of the application checks the DB connection. |
11+---------------------+----------+-------------------------------------------------------+------------------------------------------------------------------------------------------+
12| | | | | Used by IDNS for redundancy |
13| | | | | |
14| | | | | return response entity: |
15| | | | | - statusCode Either 200 or 500 |
16| | | | | - detailedMsg of the result, in case of failure particular error message |
17| | | | | |
18| | | | | Expected: |
19| | | | |
20| | | | .. code-block:: javascript |
21| | | | |
22| | | | { |
23| | | | "statusCode": 200, |
24| | | | "detailedMsg": "health check succeeded", |
25| | | | "date": current date |
26| | | | } |
27| | | | |
28+---------------------+----------+-------------------------------------------------------+------------------------------------------------------------------------------------------+
29| Health Check | GET | rest/healthCheck/{User-Agent}/{X-ECOMP-RequestID} | The Health Status of the application checks the DB connection |
30+---------------------+----------+-------------------------------------------------------+------------------------------------------------------------------------------------------+
31| | | | | return response entity: |
32| | | | | - statusCode Either 200 or 500 |
33| | | | | - detailedMsg of the result, in case of failure particular error message |
34| | | | | - date string indicating the current date & time |
35| | | | | |
36| | | | | Expected: |
37| | | | |
38| | | | .. code-block:: javascript |
39| | | | |
40| | | | { |
41| | | | "statusCode": 200, |
42| | | | "detailedMsg": "health check succeeded", |
43| | | | "date": current date |
44| | | | } |
45| | | | |
46+---------------------+----------+-------------------------------------------------------+------------------------------------------------------------------------------------------+
47| Commit Version | GET | /commitInfo | Displays info about the last commit of the running build |
48+---------------------+----------+-------------------------------------------------------+------------------------------------------------------------------------------------------+
49| | | | | return response entity: |
50| | | | | - commitId full id of the commit |
51| | | | | - commitMessageShort short message from the commit |
52| | | | | - commitTime time of the commit |
53| | | | | |
54| | | | | Expected: |
55| | | | |
56| | | | .. code-block:: javascript |
57| | | | |
58| | | | { |
59| | | | "commitId": id of the last commit |
60| | | | "commitMessageShort": short message of the last commit |
61| | | | "commitTime": time of the last commit |
62| | | | } |
63| | | | |
64+---------------------+----------+-------------------------------------------------------+------------------------------------------------------------------------------------------+
65
66
67.. _vid-maintenance-apis:
68
69Maintenance APIs
70------------------
71
72+---------------------+----------+-------------------------------------------------------+------------------------------------------------------------------------------------------+
73| Maintenance: | POST | /maintenance/category_parameter/{categoryName} | Populate VID Project/Owning entity/Line of Business/Platform drop downs |
74| Category Parameters | | | |
75+---------------------+----------+-------------------------------------------------------+------------------------------------------------------------------------------------------+
76| | | | ``{categoryName}`` is one of lineOfBusiness, platform, project, owningEntity. |
77| | | | |
78| | | | POST body: |
79| | | | |
80| | | | .. code-block:: javascript |
81| | | | |
82| | | | { |
83| | | | "options": [ <list of strings> ] |
84| | | | } |
85| | | | |
86+---------------------+----------+-------------------------------------------------------+------------------------------------------------------------------------------------------+