Organizacion docs

This commit is contained in:
2026-05-07 09:20:26 +02:00
parent 3cf5c3695e
commit d2c86396b1
20 changed files with 68 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
meta { meta {
name: Activation Email Health name: Activation Email Health
type: http type: http
seq: 8 seq: 9
} }
post { post {

View File

@@ -1,7 +1,7 @@
meta { meta {
name: Activation Email name: Activation Email
type: http type: http
seq: 7 seq: 8
} }
post { post {

View File

@@ -1,6 +1,6 @@
meta { meta {
name: Alai name: Alai
seq: 15 seq: 14
} }
auth { auth {

View File

@@ -1,7 +1,7 @@
meta { meta {
name: Cancel name: Cancel
type: http type: http
seq: 3 seq: 4
} }
post { post {

View File

@@ -1,7 +1,7 @@
meta { meta {
name: Docs name: Docs
type: http type: http
seq: 10 seq: 11
} }
get { get {

View File

@@ -1,7 +1,7 @@
meta { meta {
name: Health name: Health
type: http type: http
seq: 6 seq: 7
} }
get { get {

View File

@@ -0,0 +1,16 @@
meta {
name: Select
type: http
seq: 1
}
get {
url:
body: none
auth: inherit
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,8 @@
meta {
name: Nos
seq: 15
}
auth {
mode: inherit
}

View File

@@ -1,7 +1,7 @@
meta { meta {
name: France Suspended Lines name: France Suspended Lines
type: http type: http
seq: 17 seq: 16
} }
get { get {

View File

@@ -0,0 +1,8 @@
meta {
name: Objenious
seq: 16
}
auth {
mode: inherit
}

View File

@@ -1,5 +1,6 @@
meta { meta {
name: Orders name: Orders
seq: 3
} }
auth { auth {

View File

@@ -1,7 +1,7 @@
meta { meta {
name: Pause name: Pause
type: http type: http
seq: 4 seq: 5
} }
post { post {

View File

@@ -1,7 +1,7 @@
meta { meta {
name: Preactivate name: Preactivate
type: http type: http
seq: 5 seq: 6
} }
post { post {

View File

@@ -1,7 +1,7 @@
meta { meta {
name: ReActivate name: ReActivate
type: http type: http
seq: 11 seq: 12
} }
post { post {

20
docs/sim-api/Select.bru Normal file
View 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
}

View File

@@ -1,7 +1,7 @@
meta { meta {
name: Test Order name: Test Order
type: http type: http
seq: 9 seq: 10
} }
post { post {

View File

@@ -1,7 +1,7 @@
meta { meta {
name: test proxy name: test proxy
type: http type: http
seq: 12 seq: 13
} }
get { get {

View File

@@ -139,7 +139,7 @@ export class SimAlaiController {
const validateBody = iccidValidator.validate(body); const validateBody = iccidValidator.validate(body);
if (validateBody.error != undefined) { if (validateBody.error != undefined) {
res.status(402).json(validateBody) res.status(422).json(validateBody)
return; return;
} }

View File

@@ -219,8 +219,9 @@ export class SimController {
*/ */
public select() { public select() {
return async (req: Request, res: Response) => { return async (req: Request, res: Response) => {
const iccid = req.query.iccid as string
try { try {
iccidValidator.validate(req.body) iccidValidator.validate({ iccid: iccid })
} catch (e) { } catch (e) {
res.status(422).json({ res.status(422).json({
errors: { errors: {
@@ -229,7 +230,6 @@ export class SimController {
}) })
} }
const { iccid } = req.body
const company = companyFromIccid(iccid) const company = companyFromIccid(iccid)
const url = mapCompanyService.get(company) const url = mapCompanyService.get(company)
const endpoint = "/select" const endpoint = "/select"