mirror of
https://github.com/ditkrg/jsonapi-swagger.git
synced 2026-01-25 15:23:05 +00:00
support jsonapi rails
This commit is contained in:
@@ -173,7 +173,7 @@ RSpec.describe '<%= resouces_name %>', type: :request do
|
||||
end
|
||||
end
|
||||
|
||||
<% if resource_klass.mutable? -%>
|
||||
<% if mutable? -%>
|
||||
path '/<%= route_resouces %>' do
|
||||
post '<%= route_resouces %> <%= t(:create) %>' do
|
||||
tags '<%= route_resouces %>'
|
||||
@@ -204,7 +204,7 @@ RSpec.describe '<%= resouces_name %>', type: :request do
|
||||
<%= relation_name %>: {
|
||||
type: :object,
|
||||
properties: {
|
||||
<% if relation.belongs_to? -%>
|
||||
<% if relation.try(:belongs_to?) -%>
|
||||
data: {
|
||||
type: :object,
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user