Commit Graph

167 Commits

Author SHA1 Message Date
Thales Macedo Garitezi
d0ca79fc9e feat(mgmt): add alias endpoint for health check
This allow use to reference `/status` in the API documentation without
manually editing the `swagger.json` file.
2022-10-27 13:20:04 -03:00
Thales Macedo Garitezi
0eca531e64 feat: add retry-after headers to unavailable response 2022-10-25 15:01:05 -03:00
Thales Macedo Garitezi
997a262c96 fix(mgmt_api): return 503 when emqx is not running in /status (5.0) 2022-10-24 14:53:41 -03:00
Zaiming (Stone) Shi
508c0e84d0 Merge branch 'release-v50' into master 2022-10-24 11:46:31 +02:00
Zaiming (Stone) Shi
d1332b72e7 feat(api/publish): return detailed publish results
Prior to this change, the publish API returns 200 in most of
the cases.
This change provides more insights to the publish result.

For single message publish endpoint (`publish/`):

HTTP error codes are:

200: Everything is OK
202: No subscriber for the topic
400: When mesage is invalid message.
     e.g. bad topic name or QoS out of range.
503: Failed to dispatch the message. e.g. during EMQX restart.

The response body is a JSON object with two fields
`message_id`, and `publish_result`.
The `message_id` is a globally unique ID for tracing.
`publish_result` is `"OK"` when the message is delivered
to at least one subscriber.
Otherwise `"no_subscriber"`.
`publish_result` may also be some other informative
message to hint the failure result, the content of which
may change in the future.

For `publish/bulk` endpoint:

200: When all message in the bulk are published OK
202: If at least one message in the bulk had `"no_subscriber"` result
400: When mesage is invalid message. e.g. bad topic name or
     QoS out of range.
503: When there is at least one message failed at dispatch.

The reply body is a list of JSON objects having the same layout
as for hte `publish` endpoint.
2022-10-20 20:03:27 +02:00
Zhongwen Deng
4d9cae0387 feat: get trace file's detail via /trace/:name/log_detail 2022-10-17 09:43:15 +08:00
Ivan Dyachkov
5a8cab46a9 test: update publish api test suite 2022-10-14 10:17:22 +02:00
Zhongwen Deng
0241185225 chore: Add test coverage for listeners API 2022-09-19 18:25:25 +08:00
firest
47b35f0c6a fix(api): add listener create API from POST /listeners/{type:name} to POST /listeners
Old:
    API: POST /listeners/{type:demo}
    Body: {"type" : "tcp", "id" : "tcp:demo"}
New:
    API: POST /listeners
    Body: {"type" : "tcp", "name" : "demo"}
2022-09-08 20:28:40 +08:00
firest
dee92bb8b8 fix(mgmt): fix status api test case error 2022-08-09 11:22:48 +08:00
Zhongwen Deng
116c664df1 feat: add sysmon config handler to reload conf 2022-07-21 12:33:56 +08:00
Zhongwen Deng
634a75341a fix: remove nonexistent listener should always return ok 2022-06-16 11:33:24 +08:00
Zhongwen Deng
c6271de174 fix: restart started listener when listener connection options update 2022-06-16 11:26:54 +08:00
Zhongwen Deng
5e92ef54c5 fix: ct failed 2022-06-07 20:13:57 +08:00
Zhongwen Deng
6c9b959651 fix: ct failed 2022-05-31 19:20:27 +08:00
Zhongwen Deng
7c65d7159b feat: add node query_string to download logs for specific nodes 2022-05-11 23:19:06 +08:00
zhongwencool
0924c7dc13
Merge pull request #7902 from DDDHuang/ddd_fix
fix: node info, log path only path
2022-05-10 21:47:26 +08:00
DDDHuang
76102714aa fix: node info, log path only path 2022-05-10 18:00:09 +08:00
Zhongwen Deng
e6e66b032e fix: mgmt_cli_SUITE ct failed 2022-05-10 09:38:48 +08:00
Zhongwen Deng
2371604589 fix: infinity means never expire 2022-05-09 14:43:37 +08:00
JianBo He
8db8598622 fix(mgmt): fix test case crash 2022-05-07 10:16:58 +08:00
JianBo He
2ef118ce4c chore(fmt): format management 2022-05-07 10:16:58 +08:00
JianBo He
ae2c150384
Merge pull request #7593 from EMQ-YangM/improve_mgmt_cli_cover
draft: improve emqx_mgmt_cli test coverage
2022-05-06 09:10:10 +08:00
Zhongwen Deng
352984efe7 fix: dashboard https without deafult pem/keyfile 2022-04-29 11:45:22 +08:00
Zhongwen Deng
2c95fba4df fix: api_listener min TLS ct fail 2022-04-28 10:11:38 +08:00
firest
d9c3cf5c97 fix(mgmt): add subscribe options in client subscribe API 2022-04-27 12:52:52 +08:00
firest
8d01e8a697 fix(mgmt): add subscribe options into the result of the client subscriptions API 2022-04-27 12:52:52 +08:00
firest
6b84016259 fix(mgmt): add subscribe options into the result of the /subscriptions API 2022-04-27 12:52:52 +08:00
Zhongwen Deng
38215f73fc fix: rate limiter schema check crash and return 500 2022-04-24 11:59:08 +08:00
Zhongwen Deng
2a25767112 fix: trace ct failed 2022-04-24 11:12:40 +08:00
Zhongwen Deng
45bb7b3610 test: add more test for ws/wss/ssl listeners 2022-04-20 10:05:52 +08:00
Zhongwen Deng
17ef987d25 fix: add proxy_protocol_timeout/access_rules default value 2022-04-20 09:54:09 +08:00
Zhongwen Deng
c70462f287 chore: reformat mgmt 2022-04-20 02:52:31 +08:00
JianBo He
ba24f0309d
Merge branch 'master' into hot-confs-sys-topics-limiter 2022-04-19 17:38:49 +08:00
Zhongwen Deng
aa7807baeb chore: reformat mgmt code. 2022-04-19 14:02:39 +08:00
Zhongwen Deng
0de367dc63 feat: Make api_listener align with gateway and remove unused APIs. 2022-04-19 10:42:08 +08:00
JimMoen
c89c00aed0 test: clean cache api for all clients or specific client 2022-04-18 16:47:52 +08:00
JianBo He
59c41c7c6e feat(sys): add sys_topics http api 2022-04-18 15:32:34 +08:00
Zhongwen Deng
164754b182 test: dashboard ct failed with lack i18n_lang 2022-04-15 12:04:01 +08:00
DDDHuang
9ef1795985 fix: add bad api test 2022-04-13 16:16:13 +08:00
EMQ-YangM
ddd46dec68 test: improve emqx_mgmt_cli test coverage 2022-04-12 17:53:15 +08:00
EMQ-YangM
2e4c9720d8 test: improve emqx_mgmt_api_stats test coverage to 100% 2022-04-12 09:35:16 +08:00
Zhongwen Deng
a8386adea3 fix: list listeners cli not working 2022-04-08 09:47:06 +08:00
Zhongwen Deng
63d6682a7d feat: refactor api_listeners api 2022-04-08 09:47:06 +08:00
Thales Macedo Garitezi
8431aecf9b
Merge pull request #7515 from thalesmg/telemetry-revamp-part4
feat(telemetry): add gateway info to reported data
2022-04-05 15:58:45 -03:00
Ilya Averyanov
f4e4331556 chore(emqx_mangement): improve emqx_mgmt_api_nodes coverage 2022-04-04 23:39:53 +03:00
Thales Macedo Garitezi
7d807ce6bb
feat(gateway): export basic gateway info for telemetry 2022-04-04 15:20:48 -03:00
firest
8c8162facb test(prometheus): improve test coverage to 88% 2022-03-24 16:17:40 +08:00
Zhongwen Deng
946d62e40a test: don't run api_plugins_SUITE for now 2022-03-21 17:57:57 +08:00
Zhongwen Deng
88e0c4067f fix: api_plugins common test failed bump dashboard to v0.25.0. 2022-03-21 17:56:22 +08:00