28_introduce_rswag #35

Merged
philipp merged 46 commits from 28_introduce_rswag into develop 2023-01-05 13:45:47 +01:00
3 changed files with 5 additions and 9 deletions
Showing only changes of commit 1c5a3c6864 - Show all commits

View File

@ -17,11 +17,7 @@ describe 'Financial Transaction', type: :request do
response '200', 'success' do response '200', 'success' do
schema type: :object, properties: { schema type: :object, properties: {
meta: { meta: {
type: :object, '$ref' => '#/components/schemas/Meta'
items:
{
'$ref': '#/components/schemas/Meta'
}
}, },
financial_transaction: { financial_transaction: {
type: :array, type: :array,
@ -40,7 +36,7 @@ describe 'Financial Transaction', type: :request do
path '/financial_transactions/{id}' do path '/financial_transactions/{id}' do
get 'Retrieves a financial transaction ' do get 'Retrieves a financial transaction ' do
tags 'Category' tags 'Financial Transaction'
produces 'application/json' produces 'application/json'
parameter name: :id, in: :path, type: :string parameter name: :id, in: :path, type: :string

View File

@ -14,7 +14,7 @@ describe 'User', type: :request do
path '/user/financial_transactions' do path '/user/financial_transactions' do
post 'create new financial transaction (requires enabled self service)' do post 'create new financial transaction (requires enabled self service)' do
tags 'User', 'FinancialTransaction' tags "Financial Transaction"
consumes 'application/json' consumes 'application/json'
produces 'application/json' produces 'application/json'
parameter name: "per_page", in: :query, type: :integer, required: false parameter name: "per_page", in: :query, type: :integer, required: false
@ -105,7 +105,7 @@ describe 'User', type: :request do
path '/user/financial_transactions/{id}' do path '/user/financial_transactions/{id}' do
get 'find financial transaction by id' do get 'find financial transaction by id' do
tags 'User', 'FinancialTransaction' tags 'User', 'Financial Transaction'
produces 'application/json' produces 'application/json'
parameter name: :id, in: :path, type: :string parameter name: :id, in: :path, type: :string

View File

@ -50,7 +50,7 @@ describe 'User', type: :request do
path '/user/financial_overview' do path '/user/financial_overview' do
get 'financial summary about the currently logged-in user' do get 'financial summary about the currently logged-in user' do
tags 'User', 'FinancialTransaction' tags 'User', 'Financial Transaction'
produces 'application/json' produces 'application/json'
let(:user) { create :user, :ordergroup } let(:user) { create :user, :ordergroup }
FinancialTransactionClass.create(name: 'TestTransaction') FinancialTransactionClass.create(name: 'TestTransaction')