From bb50542d8f64530a241f4cd19a4b68511f745ae7 Mon Sep 17 00:00:00 2001 From: Aceix Date: Tue, 9 Apr 2024 06:22:00 +0000 Subject: [PATCH] docs(NET-953): update docs spec, gitignore (#2880) --- .gitignore | 1 + swagger.yml | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/.gitignore b/.gitignore index 69a3f8a1..b7aaba09 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ data/ netmaker.exe netmaker.code-workspace dist/ +nmctl diff --git a/swagger.yml b/swagger.yml index 98276853..21a8c9d4 100644 --- a/swagger.yml +++ b/swagger.yml @@ -642,6 +642,9 @@ definitions: $ref: '#/definitions/EgressNetworkRoutes' type: array x-go-name: EgressRoutes + endpoint_detection: + type: boolean + x-go-name: EndpointDetection fw_update: $ref: '#/definitions/FwUpdate' host: @@ -1203,6 +1206,8 @@ definitions: type: string APIPort: type: string + AllowedEmailDomains: + type: string AllowedOrigin: type: string AuthProvider: @@ -1324,6 +1329,9 @@ definitions: type: integer Version: type: string + endpoint_detection: + type: boolean + x-go-name: EndpointDetection type: object x-go-package: github.com/gravitl/netmaker/config Signal: @@ -1584,6 +1592,17 @@ paths: summary: Push DNS entries to nameserver. tags: - dns + /api/emqx/hosts: + delete: + operationId: delEmqxHosts + responses: + "200": + $ref: '#/responses/apiHostResponse' + schemes: + - https + summary: Lists all hosts. + tags: + - hosts /api/extclients: get: operationId: getAllExtClients @@ -2654,6 +2673,49 @@ paths: summary: Transfers superadmin role to an admin user. tags: - user + /api/users_pending: + get: + operationId: getPendingUsers + responses: + "200": + $ref: '#/responses/userBodyResponse' + schemes: + - https + summary: Get all pending users. + tags: + - user + /api/users_pending/{username}/pending: + delete: + operationId: deleteAllPendingUsers + responses: + "200": + $ref: '#/responses/userBodyResponse' + schemes: + - https + summary: delete all pending users. + tags: + - user + /api/users_pending/user/{username}: + delete: + operationId: deletePendingUser + responses: + "200": + $ref: '#/responses/userBodyResponse' + schemes: + - https + summary: delete pending user. + tags: + - user + post: + operationId: approvePendingUser + responses: + "200": + $ref: '#/responses/userBodyResponse' + schemes: + - https + summary: approve pending user. + tags: + - user /api/v1/enrollment-keys: get: operationId: getEnrollmentKeys