Skip to content

Commit

Permalink
Dataplane swagger for tables (#8151)
Browse files Browse the repository at this point in the history
* adding swagger for tables dataplane

* updating produces/consumes, adding format parameter and adding DataServiceVersion header

* update swagger so that query parameters do not appear in x-ms-paths

* add new custom words, fix incorrect api version

* making suggested changes to continuation header, response status codes

* Updates to tables spec

* Fixed indentation

* Removed storage references

* Grammar

* Improved match condition description

* Remove format statements

* Removed excess tags

* Fix extra commas

* Added missing example

* Updated Delete example

* Run prettier

* Removed duplicate API version

* Fixed insert response

* Removed 2018 readme tag

* Remove storage name

* Remove multi-api reference

Co-authored-by: Sam Hurd <[email protected]>
Co-authored-by: annatisch <[email protected]>
  • Loading branch information
3 people authored May 8, 2020
1 parent 6871a33 commit f8b92e8
Show file tree
Hide file tree
Showing 15 changed files with 2,440 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ Français
frontdoor
fsaction
Fulfilment
fullmetadata
Fulltext
fullyqualified
functionappsettings
Expand Down Expand Up @@ -980,6 +981,7 @@ nodeconfiguration
nodecounts
Nodeploy
nodrm
nometadata
nonadmin
NONCLUSTERED
nonincreasing
Expand Down Expand Up @@ -1253,6 +1255,7 @@ resourcetype
Responsys
restoreheartbeat
Restproxy
restype
resumable
resync
resynchronization
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"x-ms-version": "2019-02-02",
"DataServiceVersion": "3.0",
"url": "myaccount.table.core.windows.net",
"tableProperties": {
"TableName": "mytable"
}
},
"responses": {
"201": {
"body": {
"odata.metadata": "https://myaccount.table.core.windows.net/$metadata#Tables/@Element",
"odata.type": " myaccount.Tables",
"odata.id": "https://myaccount.table.core.windows.net/Tables('mytable')",
"odata.editLink": "Tables('mytable')",
"TableName": "mytable"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"x-ms-version": "2019-02-02",
"url": "myaccount.table.core.windows.net",
"table": "mytable"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"x-ms-version": "2019-02-02",
"DataServiceVersion": "3.0",
"If-Match": "*",
"url": "myaccount.table.core.windows.net",
"table": "Customers",
"partitionKey": "mypartitionkey",
"rowKey": "myrowkey"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"parameters": {
"x-ms-version": "2019-02-02",
"DataServiceVersion": "3.0",
"$top": 1,
"url": "myaccount.table.core.windows.net"
},
"responses": {
"200": {
"body": {
"odata.metadata": "https://myaccount.table.core.windows.net/$metadata#Tables",
"value": [
{
"odata.type": "myaccount.Tables",
"odata.id": "https://myaccount.table.core.windows.net/Tables('mytable')",
"odata.editLink": "Tables('mytable')",
"TableName": "mytable"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"x-ms-version": "2019-02-02",
"DataServiceVersion": "3.0",
"table": "Customer",
"url": "myaccount.table.core.windows.net",
"tableEntityProperties": {
"Address": "Mountain View",
"Age": 23,
"AmountDue": 200.23,
"[email protected]": "Edm.Guid",
"CustomerCode": "c9da6455-213d-42c9-9a79-3e9149a57833",
"[email protected]": "Edm.DateTime",
"CustomerSince": "2008-07-10T00:00:00",
"IsActive": true,
"[email protected]": "Edm.Int64",
"NumberOfOrders": "255",
"PartitionKey": "mypartitionkey",
"RowKey": "myrowkey"
}
},
"responses": {
"201": {
"body": {
"odata.metadata": "https://myaccount.table.core.windows.net/Customer/$metadata#Customers/@Element",
"odata.type": "myaccount.Customers",
"odata.id": " https://myaccount.table.core.windows.net/Customers(PartitionKey='mypartitionkey',RowKey='myrowkey')",
"odata.etag": "W/\"0x5B168C7B6E589D2\"",
"odata.editLink": "Customers(PartitionKey='mypartitionkey',RowKey='myrowkey')",
"PartitionKey": "mypartitionkey",
"RowKey": "myrowkey",
"[email protected]": "Edm.DateTime",
"Timestamp": "2013-08-22T01:12:06.2608595Z",
"Address": "Mountain View",
"Age": 23,
"AmountDue": 200.23,
"[email protected]": "Edm.Guid",
"CustomerCode": "c9da6455-213d-42c9-9a79-3e9149a57833",
"[email protected]": "Edm.DateTime",
"CustomerSince": "2008-07-10T00:00:00",
"IsActive": true,
"[email protected]": "Edm.Int64",
"NumberOfOrders": "255"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"x-ms-version": "2019-02-02",
"DataServiceVersion": "3.0",
"url": "myaccount.table.core.windows.net",
"table": "Customers",
"partitionKey": "mypartitionkey",
"rowKey": "myrowkey",
"tableEntityProperties": {
"Address": "Santa Clara",
"Age": 23,
"AmountDue": 200.23,
"[email protected]": "Edm.Guid",
"CustomerCode": "c9da6455-213d-42c9-9a79-3e9149a57833",
"[email protected]": "Edm.DateTime",
"CustomerSince": "2008-07-10T00:00:00",
"IsActive": false,
"[email protected]": "Edm.Int64",
"NumberOfOrders": "255",
"PartitionKey": "mypartitionkey",
"RowKey": "myrowkey"
}
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"x-ms-version": "2019-02-02",
"DataServiceVersion": "3.0",
"url": "myaccount.table.core.windows.net",
"$top": 1,
"table": "Customer"
},
"responses": {
"200": {
"body": {
"odata.metadata": " https://myaccount.table.core.windows.net/metadata#Customers",
"value": [
{
"PartitionKey": "Customer",
"RowKey": "Name",
"odata.type": "myaccount.Customers",
"odata.id": "https://myaccount.table.core.windows.net/Customers(PartitionKey=Customer',RowKey='Name')",
"odata.etag": "W/\"0x5B168C7B6E589D2\"",
"odata.editLink": "Customers(PartitionKey=Customer',RowKey='Name')",
"[email protected]": "Edm.DateTime",
"Timestamp": "2013-08-22T00:20:16.3134645Z",
"[email protected]": "Edm.DateTime",
"CustomerSince": "2008-10-01T15:25:05.2852025Z"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"x-ms-version": "2019-02-02",
"DataServiceVersion": "3.0",
"url": "myaccount.table.core.windows.net",
"table": "Customers",
"partitionKey": "Customer",
"rowKey": "Name"
},
"responses": {
"200": {
"body": {
"odata.metadata": " https://myaccount.table.core.windows.net/metadata#Customers",
"value": [
{
"odata.type": "myaccount.Customers",
"odata.id": "https://myaccount.table.core.windows.net/Customers(PartitionKey=Customer',RowKey='Name')",
"odata.etag": "W/\"0x5B168C7B6E589D2\"",
"odata.editLink": "Customers(PartitionKey=Customer',RowKey='Name')",
"PartitionKey": "Customer",
"RowKey": "Name",
"[email protected]": "Edm.DateTime",
"Timestamp": "2013-08-22T00:20:16.3134645Z",
"[email protected]": "Edm.DateTime",
"CustomerSince": "2008-10-01T15:25:05.2852025Z"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"x-ms-version": "2019-02-02",
"DataServiceVersion": "3.0",
"url": "myaccount.table.core.windows.net",
"table": "Customers",
"partitionKey": "mypartitionkey",
"rowKey": "myrowkey",
"tableEntityProperties": {
"Address": "Santa Clara",
"Age": 23,
"AmountDue": 200.23,
"[email protected]": "Edm.Guid",
"CustomerCode": "c9da6455-213d-42c9-9a79-3e9149a57833",
"[email protected]": "Edm.DateTime",
"CustomerSince": "2008-07-10T00:00:00",
"IsActive": false,
"[email protected]": "Edm.Int64",
"NumberOfOrders": "255",
"PartitionKey": "mypartitionkey",
"RowKey": "myrowkey"
}
},
"responses": {
"204": {}
}
}
Loading

0 comments on commit f8b92e8

Please sign in to comment.