Fix typos

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-03-23 14:43:56 +01:00
parent 5cd4c179f5
commit d2f3a09682
3 changed files with 10 additions and 10 deletions

View file

@ -105,9 +105,9 @@ def spec(opts \\ []) do
"Status administration",
"User administration",
"Announcement management",
"Instance rule managment",
"Instance rule management",
"Webhooks",
"Domain managment"
"Domain management"
]
},
%{

View file

@ -16,7 +16,7 @@ def open_api_operation(action) do
def index_operation do
%Operation{
tags: ["Domain managment"],
tags: ["Domain management"],
summary: "Retrieve list of domains",
operationId: "AdminAPI.DomainController.index",
security: [%{"oAuth" => ["admin:read"]}],
@ -33,7 +33,7 @@ def index_operation do
def create_operation do
%Operation{
tags: ["Domain managment"],
tags: ["Domain management"],
summary: "Create new domain",
operationId: "AdminAPI.DomainController.create",
security: [%{"oAuth" => ["admin:write"]}],
@ -49,7 +49,7 @@ def create_operation do
def update_operation do
%Operation{
tags: ["Domain managment"],
tags: ["Domain management"],
summary: "Modify existing domain",
operationId: "AdminAPI.DomainController.update",
security: [%{"oAuth" => ["admin:write"]}],
@ -65,7 +65,7 @@ def update_operation do
def delete_operation do
%Operation{
tags: ["Domain managment"],
tags: ["Domain management"],
summary: "Delete domain",
operationId: "AdminAPI.DomainController.delete",
parameters: [Operation.parameter(:id, :path, :string, "Domain ID")],

View file

@ -16,7 +16,7 @@ def open_api_operation(action) do
def index_operation do
%Operation{
tags: ["Instance rule managment"],
tags: ["Instance rule management"],
summary: "Retrieve list of instance rules",
operationId: "AdminAPI.RuleController.index",
security: [%{"oAuth" => ["admin:read"]}],
@ -33,7 +33,7 @@ def index_operation do
def create_operation do
%Operation{
tags: ["Instance rule managment"],
tags: ["Instance rule management"],
summary: "Create new rule",
operationId: "AdminAPI.RuleController.create",
security: [%{"oAuth" => ["admin:write"]}],
@ -49,7 +49,7 @@ def create_operation do
def update_operation do
%Operation{
tags: ["Instance rule managment"],
tags: ["Instance rule management"],
summary: "Modify existing rule",
operationId: "AdminAPI.RuleController.update",
security: [%{"oAuth" => ["admin:write"]}],
@ -65,7 +65,7 @@ def update_operation do
def delete_operation do
%Operation{
tags: ["Instance rule managment"],
tags: ["Instance rule management"],
summary: "Delete rule",
operationId: "AdminAPI.RuleController.delete",
parameters: [Operation.parameter(:id, :path, :string, "Rule ID")],