fix: get measure register using body

pull/1/head
Artem-Darius Weber 1 year ago
parent 3305fa77e6
commit 414806db83

@ -6,7 +6,6 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="fa9b3ab0-bfd5-4e07-8e87-da3d901a4d2e" name="Changes" comment=""> <list default="true" id="fa9b3ab0-bfd5-4e07-8e87-da3d901a4d2e" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/weather_platform/apps/agw/src/measures/measures.controller.ts" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/apps/agw/src/measures/measures.controller.ts" afterDir="false" /> <change beforePath="$PROJECT_DIR$/weather_platform/apps/agw/src/measures/measures.controller.ts" beforeDir="false" afterPath="$PROJECT_DIR$/weather_platform/apps/agw/src/measures/measures.controller.ts" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />

@ -68,11 +68,11 @@ export class MeasuresController {
@ApiOperation({ summary: 'Register Measure', description: 'Create Measure using ASC_WEATHER_RGM', operationId: 'create', tags: ['Measures StorePackages'], }) @ApiOperation({ summary: 'Register Measure', description: 'Create Measure using ASC_WEATHER_RGM', operationId: 'create', tags: ['Measures StorePackages'], })
@ApiResponse({ status: 200, type: MeasuresCreateSuccessResponse, description: 'The found measures', }) @ApiResponse({ status: 200, type: MeasuresCreateSuccessResponse, description: 'The found measures', })
@Get('register/:sendedInDate/:sensor_uuid/:agregator_uuid/:math_time/:msg_type/:msg_value') @Get('register/:sendedInDate/:sensor_id/:agregator_id/:math_time/:msg_type/:msg_value')
async createMeasuresPackBody( async createMeasuresPackBody(
@Param('sendedInDate') sendedInDate: string, @Param('sendedInDate') sendedInDate: string,
@Param('sensor_uuid') sensor_uuid: string, @Param('sensor_id') sensor_uuid: string,
@Param('agregator_uuid') agregator_uuid: string, @Param('agregator_id') agregator_uuid: string,
@Param('math_time') math_time: string, @Param('math_time') math_time: string,
@Param('msg_type') msg_type: string, @Param('msg_type') msg_type: string,
@Param('msg_value') msg_value: string, @Param('msg_value') msg_value: string,

Loading…
Cancel
Save