refactor: meta oneline
This commit is contained in:
parent
edd6e2451d
commit
482752faca
6 changed files with 6 additions and 24 deletions
|
@ -13,9 +13,7 @@ describe 'Financial Transaction Classes', type: :request do
|
||||||
|
|
||||||
response '200', 'success' do
|
response '200', 'success' do
|
||||||
schema type: :object, properties: {
|
schema type: :object, properties: {
|
||||||
meta: {
|
meta: { '$ref' => '#/components/schemas/Meta' },
|
||||||
'$ref' => '#/components/schemas/Meta'
|
|
||||||
},
|
|
||||||
financial_transaction_class: {
|
financial_transaction_class: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {
|
||||||
|
|
|
@ -12,9 +12,7 @@ describe 'Financial Transaction types', type: :request do
|
||||||
let(:financial_transaction_type) { create(:financial_transaction_type) }
|
let(:financial_transaction_type) { create(:financial_transaction_type) }
|
||||||
response '200', 'success' do
|
response '200', 'success' do
|
||||||
schema type: :object, properties: {
|
schema type: :object, properties: {
|
||||||
meta: {
|
meta: { '$ref' => '#/components/schemas/Meta' },
|
||||||
'$ref' => '#/components/schemas/Meta'
|
|
||||||
},
|
|
||||||
financial_transaction_type: {
|
financial_transaction_type: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {
|
||||||
|
|
|
@ -16,9 +16,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: { '$ref' => '#/components/schemas/Meta' },
|
||||||
'$ref' => '#/components/schemas/Meta'
|
|
||||||
},
|
|
||||||
financial_transaction: {
|
financial_transaction: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {
|
||||||
|
|
|
@ -33,9 +33,7 @@ describe 'Order Articles', type: :request do
|
||||||
|
|
||||||
response '200', 'success' do
|
response '200', 'success' do
|
||||||
schema type: :object, properties: {
|
schema type: :object, properties: {
|
||||||
meta: {
|
meta: { '$ref' => '#/components/schemas/Meta' },
|
||||||
'$ref' => '#/components/schemas/Meta'
|
|
||||||
},
|
|
||||||
order_articles: {
|
order_articles: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {
|
||||||
|
|
|
@ -10,16 +10,12 @@ describe 'Orders', type: :request do
|
||||||
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
|
||||||
parameter name: "page", in: :query, type: :integer, required: false
|
parameter name: "page", in: :query, type: :integer, required: false
|
||||||
let(:page) { 1 }
|
|
||||||
let(:per_page) { 20 }
|
|
||||||
|
|
||||||
let(:order) { create(:order) }
|
let(:order) { create(:order) }
|
||||||
|
|
||||||
response '200', 'success' do
|
response '200', 'success' do
|
||||||
schema type: :object, properties: {
|
schema type: :object, properties: {
|
||||||
meta: {
|
meta: { '$ref' => '#/components/schemas/Meta' },
|
||||||
'$ref' => '#/components/schemas/Meta'
|
|
||||||
},
|
|
||||||
ordes: {
|
ordes: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {
|
||||||
|
|
|
@ -25,13 +25,7 @@ describe 'User', type: :request do
|
||||||
let(:per_page) { 20 }
|
let(:per_page) { 20 }
|
||||||
response '200', 'success' do
|
response '200', 'success' do
|
||||||
schema type: :object, properties: {
|
schema type: :object, properties: {
|
||||||
meta: {
|
meta: { '$ref': '#/components/schemas/Meta' },
|
||||||
type: :object,
|
|
||||||
items:
|
|
||||||
{
|
|
||||||
'$ref': '#/components/schemas/Meta'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
group_order_article: {
|
group_order_article: {
|
||||||
type: :array,
|
type: :array,
|
||||||
items: {
|
items: {
|
||||||
|
|
Loading…
Reference in a new issue