mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-25 01:13:03 -04:00
Compare commits
1 Commits
Layout/Has
...
openapi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fea2f6ff61 |
@@ -14,7 +14,7 @@ RSpec.configure do |config|
|
||||
# By default, the operations defined in spec files are added to the first
|
||||
# document below. You can override this behavior by adding a swagger_doc tag to the
|
||||
# the root example_group in your specs, e.g. describe '...', swagger_doc: 'v2/swagger.json'
|
||||
config.swagger_docs = {
|
||||
config.openapi_specs = {
|
||||
'v1/swagger.yaml' => {
|
||||
openapi: '3.0.1',
|
||||
info: {
|
||||
@@ -29,5 +29,5 @@ RSpec.configure do |config|
|
||||
# The swagger_docs configuration option has the filename including format in
|
||||
# the key, this may want to be changed to avoid putting yaml in json files.
|
||||
# Defaults to json. Accepts ':json' and ':yaml'.
|
||||
config.swagger_format = :yaml
|
||||
config.openapi_format = :yaml
|
||||
end
|
||||
|
||||
6
swagger/v1/swagger.yaml
Normal file
6
swagger/v1/swagger.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
openapi: 3.0.1
|
||||
info:
|
||||
title: API V1
|
||||
version: v1
|
||||
paths: {}
|
||||
Reference in New Issue
Block a user