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

GET /api/ProductFontRules/List Get a list of all ProductFontRules
Request Example
    /api/ProductFontRules/List
            
RESPONSE EXAMPLE
    [
        {
            "Id": "string"
            "ProductId": "string",
            "FontId": "string",
            "FontRecipes": [
                {
                    "FontHeightTo": Number,
                    "FontHeightFrom": Number,
                    "Recipe": "string",
                }
            ],
            "ProductCode": "string",
            "FontName": "string",
        },
        {...}
    ]
            
GET /api/ProductFontRules/Get Get a ProductFontRules
Request Example
    /api/ProductFontRules/Get?id=ProductFontRulesId
            
RESPONSE EXAMPLE
    If found, a ProductFontRules is returned with status code 200. Otherwise an error with code and message is returned with status code 404  
    {
        "Id": "string"
        "ProductId": "string",
        "FontId": "string",
        "FontRecipes": [
            {
                "FontHeightTo": Number,
                "FontHeightFrom": Number,
                "Recipe": "string",
            }
        ],
        "ProductCode": "string",
        "FontName": "string",
    }
            
POST /api/ProductFontRules/Create
Model Request Example
    {
        "ProductCode": "string",
        "FontName": "string",
        "FontRecipes": [
            {
                "FontHeightTo": Number,
                "FontHeightFrom": Number,
                "Recipe": "string"
            }
        ]           

    }
            
Response Example
If the operation is successful a ProductFontRules will be returned with status code 201
Otherwise an error with code and message will be returned with status code 409          
            
PUT /api/ProductFontRules/Update Update a ProductFontRules
Request Example
    /api/ProductFontRules/Update?id=ProductFontRulesId
            
Model Request Example
    {
        "ProductCode": "string",
        "FontName": "string",
        "FontRecipes": [
            {
                "FontHeightTo": Number,
                "FontHeightFrom": Number,
                "Recipe": "string"
            }
        ]           

    }  
            
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/ProductFontRules/Delete Delete a ProductFontRules
Request Example
/api/ProductFontRules/Delete?id=ProductFontRulesId
            
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