Organizacion docs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: Activation Email Health
|
||||
type: http
|
||||
seq: 8
|
||||
seq: 9
|
||||
}
|
||||
|
||||
post {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: Activation Email
|
||||
type: http
|
||||
seq: 7
|
||||
seq: 8
|
||||
}
|
||||
|
||||
post {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
meta {
|
||||
name: Alai
|
||||
seq: 15
|
||||
seq: 14
|
||||
}
|
||||
|
||||
auth {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: Cancel
|
||||
type: http
|
||||
seq: 3
|
||||
seq: 4
|
||||
}
|
||||
|
||||
post {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: Docs
|
||||
type: http
|
||||
seq: 10
|
||||
seq: 11
|
||||
}
|
||||
|
||||
get {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: Health
|
||||
type: http
|
||||
seq: 6
|
||||
seq: 7
|
||||
}
|
||||
|
||||
get {
|
||||
|
||||
16
docs/sim-api/Nos/Select.bru
Normal file
16
docs/sim-api/Nos/Select.bru
Normal file
@@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Select
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url:
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
8
docs/sim-api/Nos/folder.bru
Normal file
8
docs/sim-api/Nos/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Nos
|
||||
seq: 15
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: France Suspended Lines
|
||||
type: http
|
||||
seq: 17
|
||||
seq: 16
|
||||
}
|
||||
|
||||
get {
|
||||
8
docs/sim-api/Objenious/folder.bru
Normal file
8
docs/sim-api/Objenious/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: Objenious
|
||||
seq: 16
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
meta {
|
||||
name: Orders
|
||||
seq: 3
|
||||
}
|
||||
|
||||
auth {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: Pause
|
||||
type: http
|
||||
seq: 4
|
||||
seq: 5
|
||||
}
|
||||
|
||||
post {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: Preactivate
|
||||
type: http
|
||||
seq: 5
|
||||
seq: 6
|
||||
}
|
||||
|
||||
post {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: ReActivate
|
||||
type: http
|
||||
seq: 11
|
||||
seq: 12
|
||||
}
|
||||
|
||||
post {
|
||||
|
||||
20
docs/sim-api/Select.bru
Normal file
20
docs/sim-api/Select.bru
Normal file
@@ -0,0 +1,20 @@
|
||||
meta {
|
||||
name: Select
|
||||
type: http
|
||||
seq: 13
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseurl}}/sim/select?iccid=8934909001500561503
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
iccid: 8934909001500561503
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: Test Order
|
||||
type: http
|
||||
seq: 9
|
||||
seq: 10
|
||||
}
|
||||
|
||||
post {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
meta {
|
||||
name: test proxy
|
||||
type: http
|
||||
seq: 12
|
||||
seq: 13
|
||||
}
|
||||
|
||||
get {
|
||||
|
||||
@@ -139,7 +139,7 @@ export class SimAlaiController {
|
||||
const validateBody = iccidValidator.validate(body);
|
||||
|
||||
if (validateBody.error != undefined) {
|
||||
res.status(402).json(validateBody)
|
||||
res.status(422).json(validateBody)
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -219,8 +219,9 @@ export class SimController {
|
||||
*/
|
||||
public select() {
|
||||
return async (req: Request, res: Response) => {
|
||||
const iccid = req.query.iccid as string
|
||||
try {
|
||||
iccidValidator.validate(req.body)
|
||||
iccidValidator.validate({ iccid: iccid })
|
||||
} catch (e) {
|
||||
res.status(422).json({
|
||||
errors: {
|
||||
@@ -229,7 +230,6 @@ export class SimController {
|
||||
})
|
||||
}
|
||||
|
||||
const { iccid } = req.body
|
||||
const company = companyFromIccid(iccid)
|
||||
const url = mapCompanyService.get(company)
|
||||
const endpoint = "/select"
|
||||
|
||||
Reference in New Issue
Block a user