Fix the incorrect JSON format in v1 REST API doc

Fix the incorrect JSON format for sample of response in v1 REST API
document.
Fix the following:
* remove the trailing comma
* add the lacked comma

Change-Id: Id033f2f40df5fbefddbf058acf4451bdcbff051e
Closes-Bug: #1478517
This commit is contained in:
keisuke_yamamoto 2015-07-28 09:44:53 +09:00
parent 90b8295483
commit 83b29a1af8
2 changed files with 13 additions and 13 deletions

View File

@ -328,7 +328,7 @@ Create Record
{
"name": "_sip._tcp.example.com.",
"type": "SRV",
"data": "0 5060 sip.example.com."
"data": "0 5060 sip.example.com.",
"priority": 30
}
@ -588,7 +588,7 @@ Create Record
"domain_id": "89acac79-38e7-497d-807c-a011e1310438",
"ttl": null,
"priority" : null,
"data": "2 1 6c3c958af43d953f91f40e0d84157f4fe7b4a898"
"data": "2 1 6c3c958af43d953f91f40e0d84157f4fe7b4a898",
"description": null
}
@ -772,7 +772,7 @@ List Records in a Domain
{
"records": [
{
"id": "2e32e609-3a4f-45ba-bdef-e50eacd345ad"
"id": "2e32e609-3a4f-45ba-bdef-e50eacd345ad",
"name": "www.example.com.",
"type": "A",
"ttl": 3600,
@ -783,10 +783,10 @@ List Records in a Domain
"tenant_id": null,
"priority": null,
"description": null,
"version": 1,
"version": 1
},
{
"id": "8e9ecf3e-fb92-4a3a-a8ae-7596f167bea3"
"id": "8e9ecf3e-fb92-4a3a-a8ae-7596f167bea3",
"name": "host1.example.com.",
"type": "A",
"ttl": 3600,
@ -797,10 +797,10 @@ List Records in a Domain
"tenant_id": null,
"priority": null,
"description": null,
"version": 1,
"version": 1
},
{
"id": "4ad19089-3e62-40f8-9482-17cc8ccb92cb"
"id": "4ad19089-3e62-40f8-9482-17cc8ccb92cb",
"name": "web.example.com.",
"type": "CNAME",
"ttl": 3600,
@ -811,7 +811,7 @@ List Records in a Domain
"tenant_id": null,
"priority": null,
"description": null,
"version": 1,
"version": 1
}
]
}

View File

@ -38,7 +38,7 @@ Create Server
{
"id": "384a9b20-239c-11e2-81c1-0800200c9a66",
"name": "ns1.example.org."
"name": "ns1.example.org.",
"created_at": "2011-01-21T11:33:21Z",
"updated_at": null
}
@ -116,8 +116,8 @@ Update Server
Content-Type: application/json
{
"id": "879c1100-9c92-4244-bc83-9535ee6534d0"t
"name": "ns1.example.org."
"id": "879c1100-9c92-4244-bc83-9535ee6534d0",
"name": "ns1.example.org.",
"created_at": "2012-11-02T02:55:44.000000",
"updated_at": "2012-11-02T02:58:41.993556"
}
@ -157,13 +157,13 @@ List Servers
[
{
"id": "384a9b20-239c-11e2-81c1-0800200c9a66",
"name": "ns1.example.org."
"name": "ns1.example.org.",
"created_at": "2011-01-21T11:33:21Z",
"updated_at": null
},
{
"id": "cf661142-e577-40b5-b3eb-75795cdc0cd7",
"name": "ns2.example.org."
"name": "ns2.example.org.",
"created_at": "2011-01-21T11:33:21Z",
"updated_at": "2011-01-21T11:33:21Z"
}