mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00:00
Document merchants API endpoints (#980)
Add rswag request specs for merchants index/show and define a MerchantDetail schema used by the docs. Update the generated OpenAPI document with merchants paths and schema.
This commit is contained in:
@@ -254,6 +254,17 @@ RSpec.configure do |config|
|
||||
name: { type: :string }
|
||||
}
|
||||
},
|
||||
MerchantDetail: {
|
||||
type: :object,
|
||||
required: %w[id name type created_at updated_at],
|
||||
properties: {
|
||||
id: { type: :string, format: :uuid },
|
||||
name: { type: :string },
|
||||
type: { type: :string, enum: %w[FamilyMerchant ProviderMerchant] },
|
||||
created_at: { type: :string, format: :'date-time' },
|
||||
updated_at: { type: :string, format: :'date-time' }
|
||||
}
|
||||
},
|
||||
Tag: {
|
||||
type: :object,
|
||||
required: %w[id name color],
|
||||
|
||||
Reference in New Issue
Block a user