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 {
name: Activation Email Health
type: http
seq: 8
seq: 9
}
post {

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
meta {
name: Health
type: http
seq: 6
seq: 7
}
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 {
name: France Suspended Lines
type: http
seq: 17
seq: 16
}
get {

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
meta {
name: ReActivate
type: http
seq: 11
seq: 12
}
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 {
name: Test Order
type: http
seq: 9
seq: 10
}
post {

View File

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

View File

@@ -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;
}

View File

@@ -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"