1
1
package de .remsfal .core .api .project ;
2
2
3
- import de .remsfal .core .api .ProjectEndpoint ;
4
3
import de .remsfal .core .validation .PatchValidation ;
5
4
import de .remsfal .core .validation .PostValidation ;
6
5
import de .remsfal .core .validation .UUID ;
30
29
/**
31
30
* Endpoint for managing Commercial properties within buildings.
32
31
*/
33
- @ Path (ProjectEndpoint .CONTEXT + "/" + ProjectEndpoint .VERSION + "/"
34
- + ProjectEndpoint .SERVICE + "/{projectId}/" + PropertyEndpoint .SERVICE
35
- + "/{propertyId}/" + BuildingEndpoint .SERVICE
36
- + "/{buildingId}/" + CommercialEndpoint .SERVICE )
37
32
public interface CommercialEndpoint {
38
33
39
34
String SERVICE = "commercials" ;
@@ -61,8 +56,6 @@ Response createCommercial(
61
56
CommercialJson getCommercial (
62
57
@ Parameter (description = "ID of the project" , required = true )
63
58
@ PathParam ("projectId" ) @ NotNull @ UUID String projectId ,
64
- @ Parameter (description = "ID of the building" , required = true )
65
- @ PathParam ("buildingId" ) @ NotNull @ UUID String buildingId ,
66
59
@ Parameter (description = "ID of the commercial unit" , required = true )
67
60
@ PathParam ("commercialId" ) @ NotNull @ UUID String commercialId
68
61
);
@@ -77,8 +70,6 @@ CommercialJson getCommercial(
77
70
CommercialJson updateCommercial (
78
71
@ Parameter (description = "ID of the project" , required = true )
79
72
@ PathParam ("projectId" ) @ NotNull @ UUID String projectId ,
80
- @ Parameter (description = "ID of the building" , required = true )
81
- @ PathParam ("buildingId" ) @ NotNull @ UUID String buildingId ,
82
73
@ Parameter (description = "ID of the commercial unit" , required = true )
83
74
@ PathParam ("commercialId" ) @ NotNull @ UUID String commercialId ,
84
75
@ Parameter (description = "Commercial unit object with information" , required = true )
@@ -93,9 +84,8 @@ CommercialJson updateCommercial(
93
84
void deleteCommercial (
94
85
@ Parameter (description = "ID of the project" , required = true )
95
86
@ PathParam ("projectId" ) @ NotNull @ UUID String projectId ,
96
- @ Parameter (description = "ID of the building" , required = true )
97
- @ PathParam ("buildingId" ) @ NotNull @ UUID String buildingId ,
98
87
@ Parameter (description = "ID of the commercial unit" , required = true )
99
88
@ PathParam ("commercialId" ) @ NotNull @ UUID String commercialId
100
89
);
90
+
101
91
}
0 commit comments