add perm-delete bruno doc
This commit is contained in:
23
.bruno/Plan Endpoints/perm delete plan.bru
Normal file
23
.bruno/Plan Endpoints/perm delete plan.bru
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
meta {
|
||||||
|
name: perm delete plan
|
||||||
|
type: http
|
||||||
|
seq: 10
|
||||||
|
}
|
||||||
|
|
||||||
|
delete {
|
||||||
|
url: http://localhost:14014/api/perm-delete/[planId]
|
||||||
|
body: json
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
body:json {
|
||||||
|
{
|
||||||
|
"name": "test",
|
||||||
|
"pin": "1234"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
timeout: 0
|
||||||
|
}
|
||||||
2
mod.ts
2
mod.ts
@@ -300,7 +300,7 @@ Deno.serve({ port: config.api.port }, async (req) => {
|
|||||||
failed = true;
|
failed = true;
|
||||||
});
|
});
|
||||||
if (failed) return genericResponse(STATUS_CODE.InternalServerError, "Couldn't update DB.");
|
if (failed) return genericResponse(STATUS_CODE.InternalServerError, "Couldn't update DB.");
|
||||||
return genericResponse(STATUS_CODE.OK, 'Plan deleted.');
|
return genericResponse(STATUS_CODE.OK, 'Plan permanently deleted.');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user