All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.oslomet.aaas.controller.AnalysationController Maven / Gradle / Ivy

Go to download

AaaS is a Anonymization as a Service project implemented as a RESTful web application using Spring Boot.

There is a newer version: 0.2.2-RELEASE
Show newest version
package no.oslomet.aaas.controller;

import no.oslomet.aaas.model.AnalysationPayload;
import no.oslomet.aaas.model.AnalysisResult;
import no.oslomet.aaas.service.AnalysationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/api/analyse")
public class AnalysationController {

    private  final AnalysationService analysationService;

    @Autowired
    AnalysationController(AnalysationService analysationService){
        this.analysationService = analysationService;
    }


    @PostMapping
    public AnalysisResult getPayloadAnalysis(@RequestBody AnalysationPayload payload) {
        return analysationService.analyse(payload);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy