mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
Adding TP APIs
This commit is contained in:
49
docs/api_tp.rst
Normal file
49
docs/api_tp.rst
Normal file
@@ -0,0 +1,49 @@
|
||||
Apier.GetTPDestinationIds
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
// Queries tarrif plan identities gathered from all tables.
|
||||
|
||||
**Request**:
|
||||
|
||||
Data:
|
||||
::
|
||||
|
||||
type AttrGetTPIds struct {
|
||||
}
|
||||
|
||||
*JSON sample*:
|
||||
::
|
||||
|
||||
{
|
||||
"id": 9,
|
||||
"method": "Apier.GetTPIds",
|
||||
"params": []
|
||||
}
|
||||
|
||||
|
||||
**Reply**:
|
||||
|
||||
Data:
|
||||
::
|
||||
|
||||
[]string
|
||||
|
||||
*JSON sample*:
|
||||
::
|
||||
|
||||
{
|
||||
"error": null,
|
||||
"id": 9,
|
||||
"result": [
|
||||
"SAMPLE_TP",
|
||||
"SAMPLE_TP_2"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
||||
**Errors**:
|
||||
|
||||
``SERVER_ERROR`` - Server error occurred.
|
||||
|
||||
``NOT_FOUND`` - No tariff plans defined.
|
||||
Reference in New Issue
Block a user