Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: mkljczk <[email protected]>
  • Loading branch information
mkljczk committed Dec 6, 2024
1 parent ffa874e commit 74b3849
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions lib/pleroma/web/api_spec.ex
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ defmodule Pleroma.Web.ApiSpec do
"Frontend management",
"Instance configuration",
"Instance documents",
"Instance rule managment",
"Instance rule management",
"Invites",
"MediaProxy cache",
"OAuth application management",
Expand All @@ -106,9 +106,9 @@ defmodule Pleroma.Web.ApiSpec do
"Status administration",
"User administration",
"Announcement management",
"Instance rule managment",
"Instance rule management",
"Webhooks",
"Domain managment"
"Domain management"
]
},
%{
Expand Down
8 changes: 4 additions & 4 deletions lib/pleroma/web/api_spec/operations/admin/domain_operation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.DomainOperation 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"]}],
Expand All @@ -33,7 +33,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.DomainOperation do

def create_operation do
%Operation{
tags: ["Domain managment"],
tags: ["Domain management"],
summary: "Create new domain",
operationId: "AdminAPI.DomainController.create",
security: [%{"oAuth" => ["admin:write"]}],
Expand All @@ -49,7 +49,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.DomainOperation do

def update_operation do
%Operation{
tags: ["Domain managment"],
tags: ["Domain management"],
summary: "Modify existing domain",
operationId: "AdminAPI.DomainController.update",
security: [%{"oAuth" => ["admin:write"]}],
Expand All @@ -65,7 +65,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.DomainOperation 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")],
Expand Down
8 changes: 4 additions & 4 deletions lib/pleroma/web/api_spec/operations/admin/rule_operation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.RuleOperation 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"]}],
Expand All @@ -33,7 +33,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.RuleOperation 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"]}],
Expand All @@ -49,7 +49,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.RuleOperation 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"]}],
Expand All @@ -65,7 +65,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.RuleOperation 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")],
Expand Down

0 comments on commit 74b3849

Please sign in to comment.