With the /ProductTemplateRules endpoint user can manage ProductTemplateRules from the database.

GET /api/ProductTemplateRules/List Get a list of all ProductTemplateRules
Request Example
    /api/ProductTemplateRules/List
            
RESPONSE EXAMPLE
    [
        {
            "Id": "string",
            "ProductRuleId": "string",
            "ProductCode": "string",
            "Side": "string",
            "TemplateCode": "string",
            "MinLines": Number,
            "MaxLines": Number,
        },
        {...}
    ]
            
GET /api/ProductTemplateRules/Get Get a ProductTemplateRules
Request Example
    /api/ProductTemplateRules/Get?id=ProductTemplateRulesId
            
RESPONSE EXAMPLE
    If found, a ProductTemplateRules is returned with status code 200. Otherwise an error with code and message is returned with status code 404  
    {
        "Id": "string",
        "ProductRuleId": "string",
        "ProductCode": "string",
        "Side": "string",
        "TemplateCode": "string",
        "MinLines": Number,
        "MaxLines": Number,
    }
            
POST /api/ProductTemplateRules/Create
Model Request Example
    {
        "ProductRuleId": "string",
        "ProductCode": "string",
        "Side": "string",  // front/ back
        "TemplateCode": "string",
        "MinLines": Number,
        "MaxLines": Number        
    }   
            
Response Example
If the operation is successful a ProductTemplateRules will be returned with status code 201
Otherwise an error with code and message will be returned with status code 409          
            
PUT /api/ProductTemplateRules/Update Update a ProductTemplateRules
Request Example
    /api/ProductTemplateRules/Update?id=ProductTemplateRulesId
            
Model Request Example
    All fields are updated
    {
        "ProductRuleId": "string",
        "ProductCode": "string",
        "Side": "string",  // front/ back
        "TemplateCode": "string",
        "MinLines": Number,
        "MaxLines": Number        
    }  
            
Response Example
If the operation is successful an empty response will be returned with status code 200
Otherwise an error with code and message will be returned with status code 409
            
DELETE /api/ProductTemplateRules/Delete Delete a ProductTemplateRules
Request Example
/api/ProductTemplateRules/Delete?id=ProductTemplateRulesId
            
Response Example
If the operation is successful an empty response will be returned with status code 200
Otherwise an error with code and message will be returned with status code 409