Fixed templates so that the changes from r392777 won't be overwritten the next
authorDavid M. Lee <dlee@digium.com>
Mon, 24 Jun 2013 21:48:39 +0000 (21:48 +0000)
committerDavid M. Lee <dlee@digium.com>
Mon, 24 Jun 2013 21:48:39 +0000 (21:48 +0000)
time we run the generators.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392778 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/stasis_json/resource_sounds.h
rest-api-templates/res_stasis_http_resource.c.mustache
rest-api-templates/res_stasis_json_resource.c.mustache

index 306e2e4..d7f8714 100644 (file)
  * JSON models
  *
  * Sound
- * - lang: string (required)
  * - text: string
  * - id: string (required)
- * - formats: List[string] (required)
+ * - formats: List[FormatLangPair] (required)
+ * FormatLangPair
+ * - language: string (required)
+ * - format: string (required)
  */
 
 #endif /* _ASTERISK_RESOURCE_SOUNDS_H */
index cf2876c..805b2b7 100644 (file)
@@ -111,8 +111,7 @@ static int unload_module(void)
        return 0;
 }
 
-AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT,
-       "RESTful API module - {{{description}}}",
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - {{{description}}}",
        .load = load_module,
        .unload = unload_module,
        .nonoptreq = "res_stasis_http,res_stasis",
index a55389c..a25bdc2 100644 (file)
@@ -143,8 +143,7 @@ static int unload_module(void)
        return 0;
 }
 
-AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER,
-       "Stasis JSON Generators and Validators - {{{description}}}",
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER, "Stasis JSON Generators and Validators - {{{description}}}",
        .load = load_module,
        .unload = unload_module,
        .load_pri = AST_MODPRI_DEFAULT,