fix(swagger): remote api_secret field form api_key api
This commit is contained in:
parent
0614c157ec
commit
64341fdc23
|
@ -36,9 +36,9 @@ schema("/api_key") ->
|
|||
#{
|
||||
'operationId' => api_key,
|
||||
get => #{
|
||||
description => "Return api_keys list",
|
||||
description => "Return api_key list",
|
||||
responses => #{
|
||||
200 => hoconsc:ref(app)
|
||||
200 => delete([api_secret], fields(app))
|
||||
}
|
||||
},
|
||||
post => #{
|
||||
|
@ -56,7 +56,7 @@ schema("/api_key/:name") ->
|
|||
description => "Return the specific api_key",
|
||||
parameters => [hoconsc:ref(name)],
|
||||
responses => #{
|
||||
200 => hoconsc:ref(app)
|
||||
200 => delete([api_secret], fields(app))
|
||||
}
|
||||
},
|
||||
put => #{
|
||||
|
@ -64,7 +64,7 @@ schema("/api_key/:name") ->
|
|||
parameters => [hoconsc:ref(name)],
|
||||
'requestBody' => delete([created_at, api_key, api_secret, name], fields(app)),
|
||||
responses => #{
|
||||
200 => hoconsc:ref(app)
|
||||
200 => delete([api_secret], fields(app))
|
||||
}
|
||||
},
|
||||
delete => #{
|
||||
|
|
|
@ -32,13 +32,13 @@
|
|||
-define(APP, emqx_app).
|
||||
|
||||
-record(?APP, {
|
||||
name = <<>> :: binary(),
|
||||
api_key = <<>> :: binary(),
|
||||
api_secret_hash = <<>> :: binary(),
|
||||
enable = true :: boolean(),
|
||||
desc = <<>> :: binary(),
|
||||
expired_at = 0 :: integer(),
|
||||
created_at = 0 :: integer()
|
||||
name = <<>> :: binary() | '_',
|
||||
api_key = <<>> :: binary() | '_',
|
||||
api_secret_hash = <<>> :: binary() | '_',
|
||||
enable = true :: boolean() | '_',
|
||||
desc = <<>> :: binary() | '_',
|
||||
expired_at = 0 :: integer() | '_',
|
||||
created_at = 0 :: integer() | '_'
|
||||
}).
|
||||
|
||||
mnesia(boot) ->
|
||||
|
|
Loading…
Reference in New Issue