11package io .swagger .api ;
22
3- import io .swagger .model .CohortData ;
4- import io .swagger .model .Error ;
5- import io .swagger .model .HFCurationListResponse ;
6- import io .swagger .model .HFCurationRequest ;
7- import io .swagger .model .HFCurationResponse ;
8- import io .swagger .model .HaplotypeFrequencyData ;
9- import io .swagger .model .LabelData ;
10- import io .swagger .model .PopulationData ;
11- import io .swagger .model .PopulationResponse ;
12- import io .swagger .model .PopulationSubmissionResponse ;
13- import io .swagger .model .ScopeData ;
3+ import io .swagger .model .*;
144
155import io .swagger .annotations .*;
16- import org .springframework .http .HttpStatus ;
176import org .springframework .http .ResponseEntity ;
187import org .springframework .web .bind .annotation .PathVariable ;
198import org .springframework .web .bind .annotation .RequestBody ;
20- import org .springframework .web .bind .annotation .RequestHeader ;
219import org .springframework .web .bind .annotation .RequestMapping ;
2210import org .springframework .web .bind .annotation .RequestMethod ;
23- import org .springframework .web .bind .annotation .RequestParam ;
24- import org .springframework .web .bind .annotation .RequestPart ;
25- import org .springframework .web .multipart .MultipartFile ;
2611
27- import java .util .List ;
28- import javax .validation .constraints .*;
29- @ javax .annotation .Generated (value = "io.swagger.codegen.languages.SpringCodegen" , date = "2017-05-26T11:57:21.787-05:00" )
12+ @ javax .annotation .Generated (value = "io.swagger.codegen.languages.SpringCodegen" , date = "2017-05-30T13:04:33.940Z" )
3013
3114@ Api (value = "hfc" , description = "the hfc API" )
3215public interface HfcApi {
3316
34- @ ApiOperation (value = "" , notes = "Gets a list of all submission data sets " , response = HFCurationListResponse .class , tags ={ })
17+ @ ApiOperation (value = "" , notes = "Gets a list of all submission data sets " , response = HFCurationResponseList .class , tags ={ })
3518 @ ApiResponses (value = {
36- @ ApiResponse (code = 200 , message = "Successful response" , response = HFCurationListResponse .class ),
37- @ ApiResponse (code = 500 , message = "An unexpected error ocurred" , response = HFCurationListResponse .class ) })
19+ @ ApiResponse (code = 200 , message = "Successful response" , response = HFCurationResponseList .class ),
20+ @ ApiResponse (code = 500 , message = "An unexpected error ocurred" , response = HFCurationResponseList .class ) })
3821 @ RequestMapping (value = "/hfc" ,
3922 method = RequestMethod .GET )
40- default ResponseEntity <HFCurationListResponse > hfcGet () {
41- // do some magic!
42- return new ResponseEntity <HFCurationListResponse >(HttpStatus .OK );
43- }
23+ ResponseEntity <HFCurationResponseList > hfcGet ();
4424
4525
4626 @ ApiOperation (value = "" , notes = "Get a list of all populations " , response = PopulationResponse .class , tags ={ })
@@ -49,10 +29,7 @@ default ResponseEntity<HFCurationListResponse> hfcGet() {
4929 @ ApiResponse (code = 500 , message = "An unexpected error ocurred" , response = PopulationResponse .class ) })
5030 @ RequestMapping (value = "/hfc/population" ,
5131 method = RequestMethod .GET )
52- default ResponseEntity <PopulationResponse > hfcPopulationGet () {
53- // do some magic!
54- return new ResponseEntity <PopulationResponse >(HttpStatus .OK );
55- }
32+ ResponseEntity <PopulationResponse > hfcPopulationGet ();
5633
5734
5835 @ ApiOperation (value = "" , notes = "Returns a population with its attached submissions" , response = PopulationSubmissionResponse .class , tags ={ })
@@ -61,10 +38,7 @@ default ResponseEntity<PopulationResponse> hfcPopulationGet() {
6138 @ ApiResponse (code = 500 , message = "An unexpected error ocurred" , response = PopulationSubmissionResponse .class ) })
6239 @ RequestMapping (value = "/hfc/population/{populationId}" ,
6340 method = RequestMethod .GET )
64- default ResponseEntity <PopulationSubmissionResponse > hfcPopulationPopulationIdGet (@ ApiParam (value = "The population id" ,required =true ) @ PathVariable ("populationId" ) String populationId ) {
65- // do some magic!
66- return new ResponseEntity <PopulationSubmissionResponse >(HttpStatus .OK );
67- }
41+ ResponseEntity <PopulationSubmissionResponse > hfcPopulationPopulationIdGet (@ ApiParam (value = "The population id" ,required =true ) @ PathVariable ("populationId" ) String populationId );
6842
6943
7044 @ ApiOperation (value = "" , notes = "Storing of a new Haplotype Frequency set. " , response = HFCurationResponse .class , tags ={ })
@@ -73,10 +47,7 @@ default ResponseEntity<PopulationSubmissionResponse> hfcPopulationPopulationIdGe
7347 @ ApiResponse (code = 500 , message = "An unexpected error ocurred" , response = HFCurationResponse .class ) })
7448 @ RequestMapping (value = "/hfc" ,
7549 method = RequestMethod .POST )
76- default ResponseEntity <HFCurationResponse > hfcPost (@ ApiParam (value = "Haplotype Frequency Curation Data" ,required =true ) @ RequestBody HFCurationRequest hfCurationRequest ) {
77- // do some magic!
78- return new ResponseEntity <HFCurationResponse >(HttpStatus .OK );
79- }
50+ ResponseEntity <HFCurationResponse > hfcPost (@ ApiParam (value = "Haplotype Frequency Curation Data" ,required =true ) @ RequestBody HFCurationRequest hfCurationRequest );
8051
8152
8253 @ ApiOperation (value = "" , notes = "Returns the list of haplotypes attached to the given submission" , response = CohortData .class , tags ={ })
@@ -85,10 +56,7 @@ default ResponseEntity<HFCurationResponse> hfcPost(@ApiParam(value = "Haplotype
8556 @ ApiResponse (code = 500 , message = "An unexpected error ocurred" , response = CohortData .class ) })
8657 @ RequestMapping (value = "/hfc/{submissionId}/cohort" ,
8758 method = RequestMethod .GET )
88- default ResponseEntity <CohortData > hfcSubmissionIdCohortGet (@ ApiParam (value = "The submission id" ,required =true ) @ PathVariable ("submissionId" ) String submissionId ) {
89- // do some magic!
90- return new ResponseEntity <CohortData >(HttpStatus .OK );
91- }
59+ ResponseEntity <CohortData > hfcSubmissionIdCohortGet (@ ApiParam (value = "The submission id" ,required =true ) @ PathVariable ("submissionId" ) String submissionId );
9260
9361
9462 @ ApiOperation (value = "" , notes = "Returns a submission of haplotypes" , response = HFCurationResponse .class , tags ={ })
@@ -97,10 +65,7 @@ default ResponseEntity<CohortData> hfcSubmissionIdCohortGet(@ApiParam(value = "T
9765 @ ApiResponse (code = 500 , message = "An unexpected error ocurred" , response = HFCurationResponse .class ) })
9866 @ RequestMapping (value = "/hfc/{submissionId}" ,
9967 method = RequestMethod .GET )
100- default ResponseEntity <HFCurationResponse > hfcSubmissionIdGet (@ ApiParam (value = "The submission id that the haplotype frequencies were submitted under" ,required =true ) @ PathVariable ("submissionId" ) String submissionId ) {
101- // do some magic!
102- return new ResponseEntity <HFCurationResponse >(HttpStatus .OK );
103- }
68+ ResponseEntity <HFCurationResponse > hfcSubmissionIdGet (@ ApiParam (value = "The submission id that the haplotype frequencies were submitted under" ,required =true ) @ PathVariable ("submissionId" ) String submissionId );
10469
10570
10671 @ ApiOperation (value = "" , notes = "Returns the list of haplotypes attached to the given submission" , response = HaplotypeFrequencyData .class , tags ={ })
@@ -109,10 +74,7 @@ default ResponseEntity<HFCurationResponse> hfcSubmissionIdGet(@ApiParam(value =
10974 @ ApiResponse (code = 500 , message = "An unexpected error ocurred" , response = HaplotypeFrequencyData .class ) })
11075 @ RequestMapping (value = "/hfc/{submissionId}/haplotypes" ,
11176 method = RequestMethod .GET )
112- default ResponseEntity <HaplotypeFrequencyData > hfcSubmissionIdHaplotypesGet (@ ApiParam (value = "The submission id" ,required =true ) @ PathVariable ("submissionId" ) String submissionId ) {
113- // do some magic!
114- return new ResponseEntity <HaplotypeFrequencyData >(HttpStatus .OK );
115- }
77+ ResponseEntity <HaplotypeFrequencyData > hfcSubmissionIdHaplotypesGet (@ ApiParam (value = "The submission id" ,required =true ) @ PathVariable ("submissionId" ) String submissionId );
11678
11779
11880 @ ApiOperation (value = "" , notes = "Returns the labels associated to the submission" , response = LabelData .class , tags ={ })
@@ -121,10 +83,7 @@ default ResponseEntity<HaplotypeFrequencyData> hfcSubmissionIdHaplotypesGet(@Api
12183 @ ApiResponse (code = 500 , message = "An unexpected error ocurred" , response = LabelData .class ) })
12284 @ RequestMapping (value = "/hfc/{submissionId}/labels" ,
12385 method = RequestMethod .GET )
124- default ResponseEntity <LabelData > hfcSubmissionIdLabelsGet (@ ApiParam (value = "The submission id" ,required =true ) @ PathVariable ("submissionId" ) String submissionId ) {
125- // do some magic!
126- return new ResponseEntity <LabelData >(HttpStatus .OK );
127- }
86+ ResponseEntity <LabelData > hfcSubmissionIdLabelsGet (@ ApiParam (value = "The submission id" ,required =true ) @ PathVariable ("submissionId" ) String submissionId );
12887
12988
13089 @ ApiOperation (value = "" , notes = "Returns the population of the given submission" , response = PopulationData .class , tags ={ })
@@ -133,10 +92,7 @@ default ResponseEntity<LabelData> hfcSubmissionIdLabelsGet(@ApiParam(value = "Th
13392 @ ApiResponse (code = 500 , message = "An unexpected error ocurred" , response = PopulationData .class ) })
13493 @ RequestMapping (value = "/hfc/{submissionId}/population" ,
13594 method = RequestMethod .GET )
136- default ResponseEntity <PopulationData > hfcSubmissionIdPopulationGet (@ ApiParam (value = "The submission id" ,required =true ) @ PathVariable ("submissionId" ) String submissionId ) {
137- // do some magic!
138- return new ResponseEntity <PopulationData >(HttpStatus .OK );
139- }
95+ ResponseEntity <PopulationData > hfcSubmissionIdPopulationGet (@ ApiParam (value = "The submission id" ,required =true ) @ PathVariable ("submissionId" ) String submissionId );
14096
14197
14298 @ ApiOperation (value = "" , notes = "Returns the scope of the genotypes used for creating the submitted haplotypes" , response = ScopeData .class , tags ={ })
@@ -145,9 +101,6 @@ default ResponseEntity<PopulationData> hfcSubmissionIdPopulationGet(@ApiParam(va
145101 @ ApiResponse (code = 500 , message = "An unexpected error ocurred" , response = ScopeData .class ) })
146102 @ RequestMapping (value = "/hfc/{submissionId}/scope" ,
147103 method = RequestMethod .GET )
148- default ResponseEntity <ScopeData > hfcSubmissionIdScopeGet (@ ApiParam (value = "The submission id" ,required =true ) @ PathVariable ("submissionId" ) String submissionId ) {
149- // do some magic!
150- return new ResponseEntity <ScopeData >(HttpStatus .OK );
151- }
104+ ResponseEntity <ScopeData > hfcSubmissionIdScopeGet (@ ApiParam (value = "The submission id" ,required =true ) @ PathVariable ("submissionId" ) String submissionId );
152105
153106}
0 commit comments