Skip to content

Commit

Permalink
docs: fix invalid iban type
Browse files Browse the repository at this point in the history
in the swagger documentations the iban was displayed as integer
  • Loading branch information
janz93 committed Dec 11, 2024
1 parent 8f71c10 commit 08a4243
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions box/apis/v2/management/ebics_users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class EbicsUsers < Grape::API
content_type :html, "text/html"

namespace "/management/accounts/:iban" do
params do
requires :iban, type: String, desc: "IBAN for the account"
end
before do
unless env["box.admin"]
error!({message: "Unauthorized access. Please provide a valid organization management token!"}, 401)
Expand All @@ -35,11 +32,6 @@ class EbicsUsers < Grape::API
error!({message: "Your organization does not have an account with given IBAN!"}, 404)
end

desc "Service", hidden: true
get "/" do
{message: "not yet implemented"}
end

resource :ebics_users do
###
### GET /management/accounts/DExx/ebics_users/1/ini_letter
Expand Down Expand Up @@ -86,7 +78,9 @@ class EbicsUsers < Grape::API
produces: ["application/vnd.ebicsbox-v2+json"]

params do
requires :iban, type: String, desc: "IBAN for the account"
end

get do
present @account.ebics_users, with: Entities::EbicsUser
end
Expand All @@ -103,6 +97,7 @@ class EbicsUsers < Grape::API
produces: ["application/vnd.ebicsbox-v2+json"]

params do
requires :iban, type: String, desc: "IBAN for the account"
requires :user_id, type: Integer, desc: "Internal user identifier to associate the ebics_user with", documentation: {param_type: "body"}
requires :ebics_user, type: String, unique_ebics_user: true, desc: "EBICS user to represent"
end
Expand Down

0 comments on commit 08a4243

Please sign in to comment.