API to parse nested structure of data using recursive approach.
- Run Docker Build command:
docker build . -t root/web-app
- Docker run server:
docker run -p 5000:5000 -d root/web-app
- Install packages or dependencies:
npm i
- Build Scripts:
npm run build:staging
- Run app on local:
npm run start
- Check Lints or Faults:
npm run lint
- Run Unit Tests:
npm run test
├── Dockerfile
│ └── lcov.info
├── docker-compose.yml
├── index.js
├── lib
│ └── log
│ └── interfaces
│ └── index.ts
├── package-lock.json
├── package.json
├── scripts
│ ├── json-mapper.js
│ └── json-mapper.js.map
├── src
│ ├── __tests__
│ │ ├── fixtures
│ │ │ └── json-mapper
│ │ │ ├── invalid.json
│ │ │ ├── success-response.json
│ │ │ ├── valid-without-array.json
│ │ │ └── valid.json
│ │ └── json-mapper
│ │ └── handler.test.ts
│ └── json-mapper
│ ├── controllers
│ │ └── mapper.controller.ts
│ ├── index.ts
│ └── interfaces
│ └── handler.interface.ts
├── tsconfig.json
└── webpack.config.js
/parse-json
POST
{
"payload": {
"name": "subscriber",
"valueType": "array",
"value": [
{
"name": "MN",
"valueType": "string",
"value": "{REF_MSISDN}"
},
{
"name": "IM",
"valueType": "string",
"value": "{REF_IMSI}"
}
]
},
"referenceData": {
"REF_MSISDN": "0406679321",
"REF_IMSI": "50002312344314",
"REF_SERVPROFID": "2"
}
}
{
"name": "subscriber",
"valueType": "array",
"value": [
{
"name": "MN",
"valueType": "string",
"value": "0406679321"
},
{
"name": "IM",
"valueType": "string",
"value": "50002312344314"
}
]
}