-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Need to comment all bundle config api_resource definitions
- Loading branch information
1 parent
fb32223
commit cfd0c53
Showing
12 changed files
with
311 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resources: | ||
RZ\Roadiz\CoreBundle\Entity\Attribute: | ||
operations: [] | ||
|
||
#resources: | ||
# RZ\Roadiz\CoreBundle\Entity\Attribute: | ||
# operations: [] | ||
# |
28 changes: 14 additions & 14 deletions
28
lib/RoadizCoreBundle/config/api_resources/attribute_value.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
resources: | ||
RZ\Roadiz\CoreBundle\Entity\AttributeValue: | ||
operations: | ||
ApiPlatform\Metadata\GetCollection: | ||
method: "GET" | ||
normalizationContext: | ||
groups: ["urls", "attribute", "document_display", "attribute_node", "attribute_documents"] | ||
enable_max_depth: true | ||
ApiPlatform\Metadata\Get: | ||
method: 'GET' | ||
normalizationContext: | ||
groups: ["urls", "attribute", "document_display", "attribute_node", "attribute_documents"] | ||
enable_max_depth: true | ||
|
||
#resources: | ||
# RZ\Roadiz\CoreBundle\Entity\AttributeValue: | ||
# operations: | ||
# ApiPlatform\Metadata\GetCollection: | ||
# method: "GET" | ||
# normalizationContext: | ||
# groups: ["urls", "attribute", "document_display", "attribute_node", "attribute_documents"] | ||
# enable_max_depth: true | ||
# ApiPlatform\Metadata\Get: | ||
# method: 'GET' | ||
# normalizationContext: | ||
# groups: ["urls", "attribute", "document_display", "attribute_node", "attribute_documents"] | ||
# enable_max_depth: true | ||
# |
58 changes: 29 additions & 29 deletions
58
lib/RoadizCoreBundle/config/api_resources/common_content.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
resources: | ||
App\Api\Model\CommonContent: | ||
operations: | ||
getCommonContent: | ||
class: ApiPlatform\Metadata\Get | ||
method: 'GET' | ||
uriTemplate: '/common_content' | ||
read: false | ||
controller: App\Controller\GetCommonContentController | ||
pagination_enabled: false | ||
normalizationContext: | ||
enable_max_depth: true | ||
pagination_enabled: false | ||
groups: | ||
- get | ||
- common_content | ||
- web_response | ||
- walker | ||
- walker_level | ||
- children | ||
- children_count | ||
- nodes_sources_base | ||
- nodes_sources_default | ||
- urls | ||
- blocks_urls | ||
- tag_base | ||
- translation_base | ||
- document_display | ||
- document_folders | ||
#resources: | ||
# App\Api\Model\CommonContent: | ||
# operations: | ||
# getCommonContent: | ||
# class: ApiPlatform\Metadata\Get | ||
# method: 'GET' | ||
# uriTemplate: '/common_content' | ||
# read: false | ||
# controller: App\Controller\GetCommonContentController | ||
# pagination_enabled: false | ||
# normalizationContext: | ||
# enable_max_depth: true | ||
# pagination_enabled: false | ||
# groups: | ||
# - get | ||
# - common_content | ||
# - web_response | ||
# - walker | ||
# - walker_level | ||
# - children | ||
# - children_count | ||
# - nodes_sources_base | ||
# - nodes_sources_default | ||
# - urls | ||
# - blocks_urls | ||
# - tag_base | ||
# - translation_base | ||
# - document_display | ||
# - document_folders |
220 changes: 110 additions & 110 deletions
220
lib/RoadizCoreBundle/config/api_resources/custom_form.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,110 @@ | ||
resources: | ||
RZ\Roadiz\CoreBundle\Entity\CustomForm: | ||
operations: | ||
ApiPlatform\Metadata\GetCollection: | ||
method: "GET" | ||
normalizationContext: | ||
enable_max_depth: true | ||
|
||
ApiPlatform\Metadata\Get: | ||
method: 'GET' | ||
normalizationContext: | ||
enable_max_depth: true | ||
|
||
api_custom_forms_item_post: | ||
method: 'POST' | ||
class: ApiPlatform\Metadata\Post | ||
routeName: api_custom_forms_item_post | ||
normalizationContext: | ||
enable_max_depth: true | ||
openapiContext: | ||
summary: Post a user custom form | ||
description: | | ||
Post a user custom form | ||
requestBody: | ||
content: | ||
multipart/form-data: | ||
schema: | ||
type: object | ||
properties: | ||
custom_form_slug[email]: | ||
type: string | ||
example: [email protected] | ||
custom_form_slug[first_name]: | ||
type: string | ||
example: John | ||
custom_form_slug[last_name]: | ||
type: string | ||
example: Doe | ||
responses: | ||
201: ~ | ||
400: | ||
description: Posted custom form has errors | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
email: | ||
type: object | ||
example: | ||
email: This value is not a valid email address. | ||
202: | ||
description: Posted custom form was accepted | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: { } | ||
|
||
api_custom_forms_item_definition: | ||
method: 'GET' | ||
class: ApiPlatform\Metadata\Get | ||
routeName: api_custom_forms_item_definition | ||
normalizationContext: | ||
enable_max_depth: true | ||
openapiContext: | ||
summary: Get a custom form definition for frontend | ||
description: | | ||
Get a custom form definition for frontend | ||
responses: | ||
200: | ||
description: Custom form definition object | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
title: | ||
type: string | ||
description: Form inputs prefix | ||
example: reiciendis_natus_ducimus_nostrum | ||
type: | ||
type: string | ||
description: Form definition type | ||
example: object | ||
properties: | ||
type: object | ||
description: Form definition fields | ||
example: | ||
email: | ||
type: string | ||
title: Email | ||
attr: | ||
data-group: null | ||
placeholder: null | ||
widget: email | ||
propertyOrder: 1 | ||
first_name: | ||
type: string | ||
title: Firstname | ||
attr: | ||
data-group: null | ||
placeholder: null | ||
widget: string | ||
propertyOrder: 2 | ||
required: | ||
type: array | ||
description: Required fields names | ||
example: | ||
- 'email' | ||
#resources: | ||
# RZ\Roadiz\CoreBundle\Entity\CustomForm: | ||
# operations: | ||
# ApiPlatform\Metadata\GetCollection: | ||
# method: "GET" | ||
# normalizationContext: | ||
# enable_max_depth: true | ||
# | ||
# ApiPlatform\Metadata\Get: | ||
# method: 'GET' | ||
# normalizationContext: | ||
# enable_max_depth: true | ||
# | ||
# api_custom_forms_item_post: | ||
# method: 'POST' | ||
# class: ApiPlatform\Metadata\Post | ||
# routeName: api_custom_forms_item_post | ||
# normalizationContext: | ||
# enable_max_depth: true | ||
# openapiContext: | ||
# summary: Post a user custom form | ||
# description: | | ||
# Post a user custom form | ||
# requestBody: | ||
# content: | ||
# multipart/form-data: | ||
# schema: | ||
# type: object | ||
# properties: | ||
# custom_form_slug[email]: | ||
# type: string | ||
# example: [email protected] | ||
# custom_form_slug[first_name]: | ||
# type: string | ||
# example: John | ||
# custom_form_slug[last_name]: | ||
# type: string | ||
# example: Doe | ||
# responses: | ||
# 201: ~ | ||
# 400: | ||
# description: Posted custom form has errors | ||
# content: | ||
# application/json: | ||
# schema: | ||
# type: object | ||
# properties: | ||
# email: | ||
# type: object | ||
# example: | ||
# email: This value is not a valid email address. | ||
# 202: | ||
# description: Posted custom form was accepted | ||
# content: | ||
# application/json: | ||
# schema: | ||
# type: object | ||
# properties: { } | ||
# | ||
# api_custom_forms_item_definition: | ||
# method: 'GET' | ||
# class: ApiPlatform\Metadata\Get | ||
# routeName: api_custom_forms_item_definition | ||
# normalizationContext: | ||
# enable_max_depth: true | ||
# openapiContext: | ||
# summary: Get a custom form definition for frontend | ||
# description: | | ||
# Get a custom form definition for frontend | ||
# responses: | ||
# 200: | ||
# description: Custom form definition object | ||
# content: | ||
# application/json: | ||
# schema: | ||
# type: object | ||
# properties: | ||
# title: | ||
# type: string | ||
# description: Form inputs prefix | ||
# example: reiciendis_natus_ducimus_nostrum | ||
# type: | ||
# type: string | ||
# description: Form definition type | ||
# example: object | ||
# properties: | ||
# type: object | ||
# description: Form definition fields | ||
# example: | ||
# email: | ||
# type: string | ||
# title: Email | ||
# attr: | ||
# data-group: null | ||
# placeholder: null | ||
# widget: email | ||
# propertyOrder: 1 | ||
# first_name: | ||
# type: string | ||
# title: Firstname | ||
# attr: | ||
# data-group: null | ||
# placeholder: null | ||
# widget: string | ||
# propertyOrder: 2 | ||
# required: | ||
# type: array | ||
# description: Required fields names | ||
# example: | ||
# - 'email' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
resources: | ||
RZ\Roadiz\CoreBundle\Entity\Document: | ||
operations: | ||
ApiPlatform\Metadata\GetCollection: | ||
method: "GET" | ||
normalizationContext: | ||
groups: ["urls", "document_display", "document_folders", "document_folders_all", "document_display_sources"] | ||
enable_max_depth: true | ||
|
||
ApiPlatform\Metadata\Get: | ||
method: 'GET' | ||
normalizationContext: | ||
groups: ["urls", "document", "document_display", "document_folders", "document_folders_all", "document_display_sources"] | ||
enable_max_depth: true | ||
|
||
#resources: | ||
# RZ\Roadiz\CoreBundle\Entity\Document: | ||
# operations: | ||
# ApiPlatform\Metadata\GetCollection: | ||
# method: "GET" | ||
# normalizationContext: | ||
# groups: ["urls", "document_display", "document_folders", "document_folders_all", "document_display_sources"] | ||
# enable_max_depth: true | ||
# | ||
# ApiPlatform\Metadata\Get: | ||
# method: 'GET' | ||
# normalizationContext: | ||
# groups: ["urls", "document", "document_display", "document_folders", "document_folders_all", "document_display_sources"] | ||
# enable_max_depth: true | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
resources: | ||
RZ\Roadiz\CoreBundle\Entity\Folder: | ||
operations: | ||
ApiPlatform\Metadata\GetCollection: | ||
method: "GET" | ||
normalizationContext: | ||
groups: [ "folder" ] | ||
enable_max_depth: true | ||
ApiPlatform\Metadata\Get: | ||
method: "GET" | ||
normalizationContext: | ||
groups: [ "folder" ] | ||
enable_max_depth: true | ||
#resources: | ||
# RZ\Roadiz\CoreBundle\Entity\Folder: | ||
# operations: | ||
# ApiPlatform\Metadata\GetCollection: | ||
# method: "GET" | ||
# normalizationContext: | ||
# groups: [ "folder" ] | ||
# enable_max_depth: true | ||
# ApiPlatform\Metadata\Get: | ||
# method: "GET" | ||
# normalizationContext: | ||
# groups: [ "folder" ] | ||
# enable_max_depth: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
resources: | ||
RZ\Roadiz\CoreBundle\Entity\Node: | ||
operations: | ||
ApiPlatform\Metadata\Get: | ||
method: 'GET' | ||
normalizationContext: | ||
groups: ["node", "document_display"] | ||
enable_max_depth: true | ||
#resources: | ||
# RZ\Roadiz\CoreBundle\Entity\Node: | ||
# operations: | ||
# ApiPlatform\Metadata\Get: | ||
# method: 'GET' | ||
# normalizationContext: | ||
# groups: ["node", "document_display"] | ||
# enable_max_depth: true |
Oops, something went wrong.