Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

CreateImageRequest .cs

using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;

namespace Nop.Plugin.Misc.Zettle.Domain.Api.Image;

/// 
/// Represents request to upload single image from a URL
/// 
public class CreateImageRequest : ImageApiRequest
{
    /// 
    /// Gets or sets the image format (JPEG, PNG, GIF)
    /// 
    [JsonProperty(PropertyName = "imageFormat")]
    public string ImageFormat { get; set; }

    /// 
    /// Gets or sets the image URL. Image URL must use the HTTPS protocol, and must be properly encoded (only ASCII characters in the path)
    /// 
    [JsonProperty(PropertyName = "imageUrl")]
    public string ImageUrl { get; set; }

    /// 
    /// Gets the request path
    /// 
    public override string Path => "v2/images/organizations/self/products";

    /// 
    /// Gets the request method
    /// 
    public override string Method => HttpMethods.Post;
}