Toolpack:Add Edit Digitmap Files RestFul A: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:Add/Edit Digitmap files with RestFul API}} | {{DISPLAYTITLE:Add/Edit Digitmap files with RestFul API}} | ||
You can | You can Add/Edit digitmap file/s in your system with RestFul API using JSON format. The JSON must be in the following format: | ||
<pre> | <pre> | ||
{ | { | ||
Latest revision as of 04:33, 5 January 2023
You can Add/Edit digitmap file/s in your system with RestFul API using JSON format. The JSON must be in the following format:
{
"***meta***": {
"version": "3.1.135",
"src_path": ""
},
"name": "digitmap_1.csv",
"content": "called,calling,routeset_name\r\n1001,,NAP_1\r\n1002,,NAP_1\r\n1003,,NAP_1\r\n11,,NAP_2\r\n1200,,NAP_3\r\n1201,,NAP_3\r\n1202,,NAP_3\r\n1310,,NAP_6\r\n1310,,NAP_6\r\n1310,,NAP_6\r\n1220,,NAP_4\r\n1221,,NAP_4\r\n2105,,NAP_5\r\n2106,,NAP_5\r\n"
}
- name: digitmap file name
- \r\n: new line. Each digit/digits you entered must start with the new line.
Adding a new Digitmap File
You can add a new Digitmap file with the POST command:
POST http://ProSBCIP:12358/configurations/Configurationname/file_dbs/File_DB/routesets_digitmaps/
ProSBC will create a new Digitmap file from the name in the JSON file.
Example: We use the Postman tool in this example and the URL is:
http://192.168.1.26:12358/configurations/3CX/file_dbs/File_DB/routesets_digitmaps/
If the import is successful you will see the following information in the Postman Tool
Updating a Digitmap File
You can update the existing Digitmap file with the PUT command:
Example: We use the Postman tool in this example and the URL is http://192.168.1.26:12358/configurations/3CX/file_dbs/File_DB/routesets_digitmaps/digitmap_1%2Ecsv
If the update is successful you will see the following information in the Postman Tool
You can get more information about how to use RestFul API and Postman Tool from the following link Northbound_interface:RESTful