mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-12 13:39:09 +00:00
Adding pre-commit
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
export class CreateInputGrpcClientDto {
|
||||
|
||||
cron:string;
|
||||
|
||||
|
||||
name:string;
|
||||
|
||||
|
||||
plugin:string;
|
||||
|
||||
|
||||
values:string;
|
||||
|
||||
|
||||
operation:string;
|
||||
}
|
||||
|
||||
@@ -3,4 +3,3 @@ export class TestConnectionDTO{
|
||||
values:string;
|
||||
plugin:string;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
export class InputGrpcClient {
|
||||
|
||||
id:string;
|
||||
|
||||
|
||||
cron:string;
|
||||
|
||||
|
||||
name:string;
|
||||
|
||||
|
||||
plugin:string;
|
||||
|
||||
|
||||
values:string;
|
||||
|
||||
|
||||
operation:string;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import { InputGrpcClientController } from './input-grpc-client.controller';
|
||||
|
||||
@Module({
|
||||
controllers: [
|
||||
InputGrpcClientController,
|
||||
InputGrpcClientController,
|
||||
// InputRestClientController
|
||||
],
|
||||
providers: [InputGrpcClientService],
|
||||
|
||||
@@ -8,7 +8,7 @@ import { UpdateInputGrpcClientDto } from './dto/update-input-grpc-client.dto';
|
||||
@Controller('input')
|
||||
export class InputRestClientController {
|
||||
|
||||
|
||||
|
||||
@Get('/test-connection/')
|
||||
async testConnection(){
|
||||
console.log(process.env.DEV_URL+`/test-connection`, "ON TEST CONNECTION ROUTE")
|
||||
@@ -16,17 +16,17 @@ export class InputRestClientController {
|
||||
return response
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@Post()
|
||||
async create(@Body() createInputDto: CreateInputGrpcClientDto){
|
||||
console.log(createInputDto)
|
||||
console.log(process.env.DEV_URL+`/input`, "ON CREATE ROUTE")
|
||||
|
||||
|
||||
await axios.post(process.env.DEV_URL+'/input',createInputDto).then( (response) => {
|
||||
return response
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@Get()
|
||||
async list(){
|
||||
console.log(process.env.DEV_URL+`/input`, "ON GET ROUTE")
|
||||
@@ -43,7 +43,7 @@ export class InputRestClientController {
|
||||
return response
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Put(':id')
|
||||
async update(
|
||||
@@ -60,7 +60,7 @@ export class InputRestClientController {
|
||||
@Delete(':id')
|
||||
async delete(@Param() id: string){
|
||||
console.log(process.env.DEV_URL+`/input/${id}`, "ON DELETE ROUTE")
|
||||
|
||||
|
||||
await axios.delete(process.env.DEV_URL+`/input/${id}`).then( (response) => {
|
||||
return response
|
||||
})
|
||||
|
||||
@@ -58,8 +58,8 @@ message TestConnectionRequest{
|
||||
}
|
||||
|
||||
message TestConnectionResponse{
|
||||
|
||||
|
||||
// nao sei como vai ser a resposta
|
||||
bool respose = 1;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user