From 09f5db1a313c1acd55dfaf3b524cc6fe76f45044 Mon Sep 17 00:00:00 2001 From: DanB Date: Wed, 17 Jul 2013 14:41:21 +0200 Subject: [PATCH] Fixup doc --- apier/apier.go | 1 + docs/apicalls.rst | 38 +++++++++----------------------------- 2 files changed, 10 insertions(+), 29 deletions(-) diff --git a/apier/apier.go b/apier/apier.go index 02df1e5e6..c61225fb4 100644 --- a/apier/apier.go +++ b/apier/apier.go @@ -124,6 +124,7 @@ type AttrSetRatingProfile struct { RateProfileId string } +// Process dependencies and load a specific rating profile from storDb into dataDb. func (self *Apier) SetRatingProfile(attrs AttrSetRatingProfile, reply *string) error { if missing := utils.MissingStructFields(&attrs, []string{"TPid", "RateProfileId"}); len(missing) != 0 { return fmt.Errorf("%s:%v", utils.ERR_MANDATORY_IE_MISSING, missing) diff --git a/docs/apicalls.rst b/docs/apicalls.rst index 6a9d8e58d..7bec1bbf5 100644 --- a/docs/apicalls.rst +++ b/docs/apicalls.rst @@ -205,21 +205,6 @@ Only the Id field must be set for get operation. Example GetDestination(attr \*AttrDestination, reply \*AttrDestination) -SetDestination -++++++++++++++ - -Sets the destinations for the specified tag. - -:: - - type AttrDestination struct{ - Id string - Prefixes []string - } - - -Example - SetDestination(attr *AttrDestination, reply \*rater.Destination) GetBalance ++++++++++ @@ -330,19 +315,14 @@ AddAcount Example AddAccount(attr \*AttrAccount, reply \*float64) -SetRatingProfile -++++++++++++++++ - -Sets the rating profile for the specified subject. - -:: - - type AttrSetRatingProfile struct { - TPID string - RatingProfileId string - } - -Example - SetRatingProfile(attr \*AttrSetRatingProfile, reply \*float64) +RatingProfiles +~~~~~~~~~~~~~~ + + +.. toctree:: + :maxdepth: 2 + + api_ratingprofiles +