net.finmath.smartcontract.api.InfoApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-smart-derivative-contract Show documentation
Show all versions of finmath-smart-derivative-contract Show documentation
Project to support the implementation a of smart derivative contract.
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (6.4.0).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package net.finmath.smartcontract.api;
import net.finmath.smartcontract.model.Error;
import io.swagger.v3.oas.annotations.ExternalDocumentation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.context.request.NativeWebRequest;
import org.springframework.web.multipart.MultipartFile;
import jakarta.validation.Valid;
import jakarta.validation.constraints.*;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import jakarta.annotation.Generated;
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-05T10:54:28.421239+01:00[Europe/Berlin]")
@Validated
@Tag(name = "info", description = "the info API")
public interface InfoApi {
default Optional getRequest() {
return Optional.empty();
}
/**
* GET /info/finmath : Request info on finmath-lib version and tags
*
* @return Info returned (status code 200)
* or unexpected error (status code 200)
*/
@Operation(
operationId = "infoFinmath",
summary = "Request info on finmath-lib version and tags",
responses = {
@ApiResponse(responseCode = "200", description = "Info returned", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = String.class))
}),
@ApiResponse(responseCode = "default", description = "unexpected error", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = Error.class))
})
}
)
@RequestMapping(
method = RequestMethod.GET,
value = "/info/finmath",
produces = { "application/json" }
)
default ResponseEntity _infoFinmath(
) {
return infoFinmath();
}
// Override this method
default ResponseEntity infoFinmath() {
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
}
/**
* GET /info/git : Request info on Git version and tags
*
* @return Info returned (status code 200)
* or unexpected error (status code 200)
*/
@Operation(
operationId = "infoGit",
summary = "Request info on Git version and tags",
responses = {
@ApiResponse(responseCode = "200", description = "Info returned", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = String.class))
}),
@ApiResponse(responseCode = "default", description = "unexpected error", content = {
@Content(mediaType = "application/json", schema = @Schema(implementation = Error.class))
})
}
)
@RequestMapping(
method = RequestMethod.GET,
value = "/info/git",
produces = { "application/json" }
)
default ResponseEntity _infoGit(
) {
return infoGit();
}
// Override this method
default ResponseEntity infoGit() {
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy