io.convergence_platform.services.dto.ServiceEndpointDTO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-lib Show documentation
Show all versions of service-lib Show documentation
Holds the common functionality needed by all Convergence Platform-based services written in Java.
The newest version!
package io.convergence_platform.services.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ServiceEndpointDTO {
@JsonProperty("url")
private String url;
@JsonProperty("method")
private String method;
@JsonProperty("exposed_through_gateway")
private boolean exposedThroughGateway;
@JsonProperty("expected_authorization")
private String expectedAuthorization;
@JsonProperty("max_payload_size")
private int maxPayloadSize = 200 * 1024;
@JsonProperty("timeout")
private int timeout = 10000;
@JsonProperty("rate_limiting_policy")
private List rateLimitingPolicy = new ArrayList<>();
@JsonProperty("maintenance_mode")
private String maintenanceMode = "restrict";
@JsonProperty("accepts")
private String[] accepts = null;
}