GeneticMarkerController.java
/*
* Copyright 2026 Global Crop Diversity Trust
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root folder or http://www.apache.org/licenses/LICENSE-2.0
*/
package org.gringlobal.api.v2.impl;
import org.gringlobal.api.ApiBaseController;
import org.gringlobal.api.model.GeneticMarkerDTO;
import org.gringlobal.api.v2.FilteredCRUDController;
import org.gringlobal.api.v2.facade.GeneticMarkerApiService;
import org.gringlobal.model.GeneticMarker;
import org.gringlobal.service.filter.GeneticMarkerFilter;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.v3.oas.annotations.tags.Tag;
@RestController("geneticMarkerApi2")
@RequestMapping(GeneticMarkerController.API_URL)
@PreAuthorize("isAuthenticated()")
@Tag(name = "Genetics")
public class GeneticMarkerController
extends FilteredCRUDController<GeneticMarkerDTO, GeneticMarker, GeneticMarkerApiService, GeneticMarkerFilter> {
/** The Constant API_URL. */
public static final String API_URL = ApiBaseController.APIv2_BASE + "/genetic-marker";
}