2013-04-22 14:58:53 +00:00
{
"_copyright" : "Copyright (C) 2012 - 2013, Digium, Inc." ,
"_author" : "David M. Lee, II <dlee@digium.com>" ,
"_svn_revision" : "$Revision$" ,
"apiVersion" : "0.0.1" ,
"swaggerVersion" : "1.1" ,
"basePath" : "http://localhost:8088/stasis" ,
"resourcePath" : "/api-docs/endpoints.{format}" ,
"apis" : [
{
"path" : "/endpoints" ,
"description" : "Asterisk endpoints" ,
"operations" : [
{
"httpMethod" : "GET" ,
2013-05-08 13:39:08 +00:00
"summary" : "List all endoints." ,
2013-04-22 14:58:53 +00:00
"nickname" : "getEndpoints" ,
2013-05-08 13:39:08 +00:00
"responseClass" : "List[Endpoint]"
}
]
} ,
{
"path" : "/endpoints/{tech}" ,
"description" : "Asterisk endpoints" ,
"operations" : [
{
"httpMethod" : "GET" ,
"summary" : "List available endoints for a given endpoint technology." ,
"nickname" : "getEndpointsByTech" ,
2013-04-22 14:58:53 +00:00
"responseClass" : "List[Endpoint]" ,
"parameters" : [
{
2013-05-08 13:39:08 +00:00
"name" : "tech" ,
"description" : "Technology of the endpoints (sip,iax2,...)" ,
"paramType" : "path" ,
2013-04-22 14:58:53 +00:00
"dataType" : "string"
}
]
}
]
} ,
{
2013-05-08 13:39:08 +00:00
"path" : "/endpoints/{tech}/{resource}" ,
2013-04-22 14:58:53 +00:00
"description" : "Single endpoint" ,
"operations" : [
{
"httpMethod" : "GET" ,
"summary" : "Details for an endpoint." ,
"nickname" : "getEndpoint" ,
"responseClass" : "Endpoint" ,
"parameters" : [
{
2013-05-08 13:39:08 +00:00
"name" : "tech" ,
"description" : "Technology of the endpoint" ,
"paramType" : "path" ,
"dataType" : "string"
} ,
{
"name" : "resource" ,
2013-04-22 14:58:53 +00:00
"description" : "ID of the endpoint" ,
"paramType" : "path" ,
"dataType" : "string"
}
]
}
]
}
] ,
"models" : {
"Endpoint" : {
"id" : "Endpoint" ,
2013-05-08 13:39:08 +00:00
"description" : "A snapshot of an endpoint. Unlike most resources, which have a single unique identifier, an endpoint is uniquely identified by the technology/resource pair." ,
2013-04-22 14:58:53 +00:00
"properties" : {
"technology" : {
"type" : "string" ,
2013-05-08 13:39:08 +00:00
"description" : "Technology of the endpoint" ,
2013-04-22 14:58:53 +00:00
"required" : true
} ,
2013-05-08 13:39:08 +00:00
"resource" : {
2013-04-22 14:58:53 +00:00
"type" : "string" ,
2013-05-08 13:39:08 +00:00
"description" : "Identifier of the endpoint, specific to the given technology." ,
2013-04-22 14:58:53 +00:00
"required" : true
}
}
}
}
}