mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
docs: Add version information to ARI resources and methods.
* Dump a git blame of each file in rest-api/api-docs.
* Get the commit for each "resourcePath" and "httpMethod" entry.
* Find the tags for each commit (same as other processes).
* Insert a "since" array after each "resourcePath" and "httpMethod" entry.
(cherry picked from commit a84d4cd0b4
)
This commit is contained in:
committed by
Asterisk Development Team
parent
3f15501335
commit
e938771ac8
@@ -6,6 +6,9 @@
|
||||
"swaggerVersion": "1.1",
|
||||
"basePath": "http://localhost:8088/ari",
|
||||
"resourcePath": "/api-docs/mailboxes.{format}",
|
||||
"since": [
|
||||
"12.1.0"
|
||||
],
|
||||
"requiresModules": [
|
||||
"res_stasis_mailbox"
|
||||
],
|
||||
@@ -16,6 +19,9 @@
|
||||
"operations": [
|
||||
{
|
||||
"httpMethod": "GET",
|
||||
"since": [
|
||||
"12.1.0"
|
||||
],
|
||||
"summary": "List all mailboxes.",
|
||||
"nickname": "list",
|
||||
"responseClass": "List[Mailbox]"
|
||||
@@ -28,6 +34,9 @@
|
||||
"operations": [
|
||||
{
|
||||
"httpMethod": "GET",
|
||||
"since": [
|
||||
"12.1.0"
|
||||
],
|
||||
"summary": "Retrieve the current state of a mailbox.",
|
||||
"nickname": "get",
|
||||
"responseClass": "Mailbox",
|
||||
@@ -50,6 +59,9 @@
|
||||
},
|
||||
{
|
||||
"httpMethod": "PUT",
|
||||
"since": [
|
||||
"12.1.0"
|
||||
],
|
||||
"summary": "Change the state of a mailbox. (Note - implicitly creates the mailbox).",
|
||||
"nickname": "update",
|
||||
"responseClass": "void",
|
||||
@@ -88,6 +100,9 @@
|
||||
},
|
||||
{
|
||||
"httpMethod": "DELETE",
|
||||
"since": [
|
||||
"12.1.0"
|
||||
],
|
||||
"summary": "Destroy a mailbox.",
|
||||
"nickname": "delete",
|
||||
"responseClass": "void",
|
||||
|
Reference in New Issue
Block a user