Glue Spryks
Edit on GitHubSpryker SDK facilitates Glue API Resource development by providing a set of code generation tools, called Spryks. Usage of Spryks not only provides an easy and fast way of performing various tasks, but also ensures that the generated code is fully compatible with Spryker and that all coding, naming and other conventions are observed.
For more information on Spryks, see Spryk.
The following article describes the Spryks available for Glue API development and their arguments.
To perform the requested operations, besides the Spryks called by the user, other Spryks can be called automatically. The reference includes, for each Spryk, only its own arguments.
To call a Spryk, you can use the following console commands:
-
vendor/bin/console spryk:run {SPRYK NAME}
- to call a Spryk and input the arguments interactively, one-by-one; -
vendor/bin/console spryk:run {SPRYK NAME} --{argument name}={argument value}
- to call a Spryk and pass the named arguments in one pass.
Glue Module Management
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **resourceType** - specifies the resource type.
By default, the resource type is the same as the module name without the `RestApi` suffix (if present), lower case. For example, if the module name is *MyResource**RestApi***, the default resource type is *myresource*.
For more details, see section **Resource Routing** in [Glue Infrastructure](#routing-management).
The file will be created as `src/Pyz/Glue/[ModuleName]/[ModuleName]Config.php`.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **name** - name of the constant;
- **value** - value of the constant.
Adding Resources
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **resourceType** - specifies the type of API resources that will be retrieved.
- **clientModule** - specifies the module that provides the functionality to retrieve the items represented by the given API resources. The module must have the *Client* layer.
- **clientMethod** - specifies the method in the *clientModule* that will be used to retrieve the items represented by the given API resources.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **resourceType** - specifies the type of API resources that will be deleted.
- **clientModule** - specifies the module that provides the functionality to delete the items represented by the given API resources. The module must have the *Client* layer.
- **clientMethod** - specifies the method in the *clientModule* that will be used to delete the items represented by the given API resources.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **resourceType** - specifies the type of API resources that will be modified.
- **clientModule** - specifies the module that provides the functionality to modify the items represented by the given API resources. The module must have the *Client* layer.
- **clientMethod** - specifies the method in the *clientModule* that will be used to modify the items represented by the given API resources.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **resourceType** - specifies the type of API resources that will be created.
- **clientModule** - specifies the module that provides the functionality to create the items represented by the given API resources. The module must have the *Client* layer.
- **clientMethod** - specifies the method in the *clientModule* that will be used to create the items represented by the given API resources.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **className** - specifies the PHP class name for the resource.
- **interfaceName** - specifies the PHP interface name for the resource. By default, it is the same as the class name plus the
Interface
suffix.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **className** - specifies the PHP class name for the resource.
- **interfaceName** - specifies the PHP interface name for the resource. By default, it is the same as the class name plus the `Interface` suffix.
Routing Management
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **resourceType** - specifies the resource type.
- **resourceRouteMethod** - specifies the resource method that needs to be routed.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **resourceType** - specifies the resource type.
For more details, see section Resource Routing in Glue Infrastructure.
Managing Resource Relationships
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **resourceType** - specifies the resource type to add the relationship for.
- **relationshipParameter** - specifies the parameter through which the two resources are related to each other
For more details, see section Resource Relationships in Glue Infrastructure.
Controller Management
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **controller** - specifies the controller name.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **controller** - specifies the name of the controller class to which the action will be added.
- **controllerMethod** - specifies the name of the controller method to add. By default, **deleteAction**.
- **resourceType** - specifies the type of API resources that will be deleted.
- **modelSuffix** - specifies the suffix to be used in the name of the model that will be invoked by the method. The default suffix is `Deleter`.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **controller** - specifies the name of the controller class to which the action will be added.
- **controllerMethod** - specifies the name of the controller method to add. By default, **getAction**.
- **resourceType** - specifies the type of API resources that will be retrieved.
- **modelSuffix** - specifies the suffix to be used in the name of the model that will be invoked by the method. The default suffix is `Getter`.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **controller** - specifies the name of the controller class to which the action will be added.
- **controllerMethod** - specifies the name of the controller method to add. By default, **patchAction**.
- **resourceType** - specifies the type of API resources that will be modified.
- **modelSuffix** - specifies the suffix to be used in the name of the model that will be invoked by the method. The default suffix is `Updater`.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **controller** - specifies the name of the controller class to which the action will be added.
- **controllerMethod** - specifies the name of the controller method to add. By default, **postAction**.
- **resourceType** - specifies the type of API resources that will be created.
- **modelSuffix** - specifies the suffix to be used in the name of the model that will be invoked by the method. The default suffix is `Creator`.
For more details, see section Controller management in Glue Infrastructure.
Action Plugin Management
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **modelName** - specifies the model name.
It will be used as a prefix for the plugin name. For example, if you specify `My` for *modelName*, the resulting plugin name will be `SetMyControllerBeforeActionPlugin`.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **modelName** - specifies the model name.
It will be used as a prefix for the plugin name. For example, if you specify `My` for *modelName*, the resulting plugin name will be `SetMyControllerAfterActionPlugin`.
Dependency Management
**Arguments**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Arguments**
- **organization** - specifies the name of the organization in which to create the bridge.
The default is **Spryker**. - **module** - specifies the name of the module, where to create the bridge.
- **dependentModuleOrganization** - specifies the name of the organization where the dependent module is located.
The default is **Spryker**. - **dependentModule** - specifies the name of the dependent module.
**Arguments**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization in which to create the bridge interface.
The default is **Pyz**. - **module** - specifies the name of the module, where to create the bridge interface.
- **dependentModuleOrganization** - specifies the name of the organization where the dependent module is located.
The default is **Spryker**. - **dependentModule** - specifies the name of the dependent module.
**Arguments**
- **organization** - specifies the name of the organization in which to create the interface.
The default is **Spryker**. - **module** - specifies the name of the module, where to create the bridge.
- **dependentModuleOrganization** - specifies the name of the organization where the dependent module is located.
The default is **Spryker**. - **dependentModule** - specifies the name of the dependent module.
- **methods** - specifies the method of the source module to create an interface for.
**Arguments**
- **organization** - specifies the name of the organization in which to create the method.
The default is **Spryker**. - **module** - specifies the name of the module, where to create the method.
- **dependentModuleOrganization** - specifies the name of the organization where the dependent module is located.
The default is **Spryker**. - **dependentModule** - specifies the name of the dependent module.
- **methods** - specifies the method of the source module to create the bridge for.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization in which to create the constant.
The default is **Pyz**. - **module** - specifies the name of the module, where to add the constant.
- **dependentModule** - specifies the name of the dependent module.
**Spryk-Specific Arguments:**
- **name** - specifies the name of the constant.
- **value** - specifies the value of the constant.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization in which to create the method.
The default is **Pyz**. - **module** - specifies the name of the module, where to add the method.
- **dependentModule** - specifies the name of the dependent module.
**Spryk-Specific Arguments:**
- **providerMethod** - specifies the method name.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization in which to create the method.
The default is **Pyz**. - **module** - specifies the name of the module, where to add the constant.
- **dependentModule** - specifies the name of the dependent module.
**Spryk-Specific Arguments:**
- **factoryMethod** - specifies the method name.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization in which to create the method.
The default is **Pyz**. - **module** - specifies the name of the module, where to add the provider.
- **dependentModule** - specifies the name of the dependent module.
**Spryk-Specific Arguments:**
- **providerMethod** - specifies the method name.
By default, it consists of the dependant module name plus the **Client** prefix.
Factory Management
**Arguments**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **subDirectory** - specifies the subdirectory of the class for which the method is created.
- **className** - specifies the name of the class for which the method is created.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **subDirectory** - specifies the subdirectory of the mapper for which the method is created.
- **className** - specifies the name of the mapper for which the method is created.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **subDirectory** - specifies the name of the subdirectory where the method is located.
_The subdirectory must be located in theProcessor
directory of the module root folder._ - **className** - specifies the method class name.
Request and Response Format
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **modelName** - specifies the name of the request format model that will be implemented by the plugin.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **modelName** - specifies the name of the response data format model that will be implemented by the plugin.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **modelName** - specifies the name of the response headers format model that will be implemented by the plugin.
Processor Management
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **subDirectory** - specifies the subdirectory under the
Processor
directory where the model will be created. - **className** - specifies the class name for the model.
- **interfaceName** - specifies the interface name for the model.
By default, it is the same as the class name plus the `Interface` suffix.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **subDirectory** - specifies the subdirectory under the
Processor
directory where the model interface will be created. - **className** - specifies the class name for the model.
- **interfaceName** - specifies the interface name for the model.
By default, it is the same as the class name plus the `Interface` suffix.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **subDirectory** - specifies the subdirectory under the
Processor
directory where the model class is located. - **className** - specifies the class name of the model.
- **input** - specifies the name of the *input* (`@param`) value of the method.
- **output** - specifies the name of the *output* (`@return`) value of the method.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **subDirectory** - specifies the subdirectory under the `Processor` directory where the interface class is located.
- **className** - specifies the class name of the model.
- **input** - specifies the name of the *input* (`@param`) value of the method.
- **output** - specifies the name of the *output* (`@return`) value of the method.
Resource Mapper Management
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **subDirectory** - specifies the subdirectory under the
Processor
directory where the model will be created.
The default subdirectory is `Mapper`. - **className** - specifies the class name for the model.
- **interfaceName** - specifies the interface name for the model.
By default, it is the same as the class name plus the `Interface` suffix.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **subDirectory** - specifies the subdirectory under the
Processor
directory where the interface will be created.
The default subdirectory is **Mapper**. - **className** - specifies the class name for the model.
- **interfaceName** - specifies the interface name for the model.
By default, it is the same as the class name plus the **Interface** suffix.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **resourceType** - specifies the resource type that will be mapped with this method.
- **fromTransfer** - specifies the name of the transfer class that will be used to map the properties of rest **requests** to the resource properties.
- **toTransfer** - specifies the name of the transfer class that will be used to map the properties of rest **responses** to the resource properties.
The default name for both the transfers consists of the resource type, camel-cased, with the `Rest` prefix and the`AttributesTransfer` suffix.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **resourceType** - specifies the resource type that will be mapped with this method.
- **fromTransfer** - specifies the name of the transfer class that will be used to map the properties of rest **requests** to the resource properties.
- **toTransfer** - specifies the name of the transfer class that will be used to map the properties of rest **responses** to the resource properties.
The default name for both the transfers consists of the resource type, camel-cased, with the `Rest` prefix and the`AttributesTransfer` suffix.
For more details, see section Generic Rest Response in Glue Infrastructure.
Response Model Management
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **subDirectory** - specifies the name of the subdirectory where to create the model.
By default, the Spryk uses theRestResponseBuilder
subdirectory in theProcessor
directory of the module root folder. - **resourceType** - specifies the resource type.
- **className** - specifies the class name for the model.
By default, it is the same as the resource name in singular and capitalized plus the **RestResponseBuilder** suffix. For example, if the resource name is `myresources`, the class name is `MyresourceRestResponseBuilder`. - **interfaceName** - specifies the interface name for the model.
By default, it is the same as the class name plus the `Interface` suffix.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **subDirectory** - specifies the name of the subdirectory where to create the interface.
By default, the Spryk uses the `RestResponseBuilder` subdirectory in the `Processor` directory of the module root folder. - **resourceType** - specifies the resource type.
- **className** - specifies the class name for the model.
By default, it is the same as the resource name in singular and capitalized plus the `RestResponseBuilder` suffix. For example, if the resource name is `myresources`, the class name is `MyresourceRestResponseBuilder`. - **interfaceName** - specifies the interface name for the model.
By default, it is the same as the class name plus the `Interface` suffix.
Adding Validation
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **modelName** - specifies the model name for the plugin.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization:** name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **modelName** - specifies the model name for the plugin.
**Arguments**
**General Arguments:**
- **mode** - *project* or *core*.
The default is **project**. For details, see [Difference between Core and Project modes](/docs/sdk/dev/spryks/spryks.html#core-and-project-modes). - **organization** - specifies the name of the organization for which to perform the operation.
The default is **Pyz**. - **module** - specifies the module name.
**Spryk-Specific Arguments:**
- **resourceType** - specifies the resource type.
For more details, see Validate REST request format.
Thank you!
For submitting the form