Skip to content

Instantly share code, notes, and snippets.

@joshbooker
Created November 2, 2016 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshbooker/56d84fd2a3cc708b9d98a3eb748b8723 to your computer and use it in GitHub Desktop.
Save joshbooker/56d84fd2a3cc708b9d98a3eb748b8723 to your computer and use it in GitHub Desktop.
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "NorthwindAPI2"
},
"host": "services.odata.org",
"schemes": [
"http"
],
"consumes": [],
"produces": [],
"paths": {
"/V4/Northwind/Northwind.svc/Categories": {
"get": {
"tags": [
"Categories"
],
"summary": "Get Categories",
"description": "Returns the EntitySet Categories",
"operationId": "Categories_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "$expand",
"in": "query",
"description": "Expands related entities inline.",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results, based on a Boolean condition.",
"required": false,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results.",
"required": false,
"type": "string"
},
{
"name": "$top",
"in": "query",
"description": "Returns only the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$skip",
"in": "query",
"description": "Skips the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$count",
"in": "query",
"description": "Includes a count of the matching results in the response.",
"required": false,
"type": "boolean"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ODataResponse[Category]"
}
}
},
"deprecated": false
},
"post": {
"tags": [
"Categories"
],
"summary": "Create Category",
"description": "Post a new entity to EntitySet Categories",
"operationId": "Categories_Post",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "Category",
"in": "body",
"description": "The entity to post",
"required": true,
"schema": {
"$ref": "#/definitions/Category"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Category"
}
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Categories({CategoryID})": {
"get": {
"tags": [
"Categories"
],
"summary": "Get Category",
"description": "Returns the entity with the key from Categories",
"operationId": "Categories_GetByCategoryid",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "CategoryID",
"in": "path",
"description": "key: CategoryID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Category"
}
}
},
"deprecated": false
},
"put": {
"tags": [
"Categories"
],
"summary": "Replace Category",
"description": "Replace entity in EntitySet Categories",
"operationId": "Categories_PutByCategoryid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "CategoryID",
"in": "path",
"description": "key: CategoryID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Category",
"in": "body",
"description": "The entity to put",
"required": true,
"schema": {
"$ref": "#/definitions/Category"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"delete": {
"tags": [
"Categories"
],
"summary": "Delete Category",
"description": "Delete entity in EntitySet Categories",
"operationId": "Categories_DeleteByCategoryid",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "CategoryID",
"in": "path",
"description": "key: CategoryID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "If-Match",
"in": "header",
"description": "If-Match header",
"required": false,
"type": "string"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"patch": {
"tags": [
"Categories"
],
"summary": "Update Category",
"description": "Update entity in EntitySet Categories",
"operationId": "Categories_PatchByCategoryid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "CategoryID",
"in": "path",
"description": "key: CategoryID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Category",
"in": "body",
"description": "The entity to patch",
"required": true,
"schema": {
"$ref": "#/definitions/Category"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/CustomerDemographics": {
"get": {
"tags": [
"CustomerDemographics"
],
"summary": "Get CustomerDemographics",
"description": "Returns the EntitySet CustomerDemographics",
"operationId": "CustomerDemographics_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "$expand",
"in": "query",
"description": "Expands related entities inline.",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results, based on a Boolean condition.",
"required": false,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results.",
"required": false,
"type": "string"
},
{
"name": "$top",
"in": "query",
"description": "Returns only the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$skip",
"in": "query",
"description": "Skips the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$count",
"in": "query",
"description": "Includes a count of the matching results in the response.",
"required": false,
"type": "boolean"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ODataResponse[CustomerDemographic]"
}
}
},
"deprecated": false
},
"post": {
"tags": [
"CustomerDemographics"
],
"summary": "Create CustomerDemographic",
"description": "Post a new entity to EntitySet CustomerDemographics",
"operationId": "CustomerDemographics_Post",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "CustomerDemographic",
"in": "body",
"description": "The entity to post",
"required": true,
"schema": {
"$ref": "#/definitions/CustomerDemographic"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/CustomerDemographic"
}
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/CustomerDemographics('{CustomerTypeID}')": {
"get": {
"tags": [
"CustomerDemographics"
],
"summary": "Get CustomerDemographic",
"description": "Returns the entity with the key from CustomerDemographics",
"operationId": "CustomerDemographics_GetByCustomertypeid",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "CustomerTypeID",
"in": "path",
"description": "key: CustomerTypeID",
"required": true,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/CustomerDemographic"
}
}
},
"deprecated": false
},
"put": {
"tags": [
"CustomerDemographics"
],
"summary": "Replace CustomerDemographic",
"description": "Replace entity in EntitySet CustomerDemographics",
"operationId": "CustomerDemographics_PutByCustomertypeid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "CustomerTypeID",
"in": "path",
"description": "key: CustomerTypeID",
"required": true,
"type": "string"
},
{
"name": "CustomerDemographic",
"in": "body",
"description": "The entity to put",
"required": true,
"schema": {
"$ref": "#/definitions/CustomerDemographic"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"delete": {
"tags": [
"CustomerDemographics"
],
"summary": "Delete CustomerDemographic",
"description": "Delete entity in EntitySet CustomerDemographics",
"operationId": "CustomerDemographics_DeleteByCustomertypeid",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "CustomerTypeID",
"in": "path",
"description": "key: CustomerTypeID",
"required": true,
"type": "string"
},
{
"name": "If-Match",
"in": "header",
"description": "If-Match header",
"required": false,
"type": "string"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"patch": {
"tags": [
"CustomerDemographics"
],
"summary": "Update CustomerDemographic",
"description": "Update entity in EntitySet CustomerDemographics",
"operationId": "CustomerDemographics_PatchByCustomertypeid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "CustomerTypeID",
"in": "path",
"description": "key: CustomerTypeID",
"required": true,
"type": "string"
},
{
"name": "CustomerDemographic",
"in": "body",
"description": "The entity to patch",
"required": true,
"schema": {
"$ref": "#/definitions/CustomerDemographic"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Customers": {
"get": {
"tags": [
"Customers"
],
"summary": "Get Customers",
"description": "Returns the EntitySet Customers",
"operationId": "Customers_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "$expand",
"in": "query",
"description": "Expands related entities inline.",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results, based on a Boolean condition.",
"required": false,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results.",
"required": false,
"type": "string"
},
{
"name": "$top",
"in": "query",
"description": "Returns only the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$skip",
"in": "query",
"description": "Skips the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$count",
"in": "query",
"description": "Includes a count of the matching results in the response.",
"required": false,
"type": "boolean"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ODataResponse[Customer]"
}
}
},
"deprecated": false
},
"post": {
"tags": [
"Customers"
],
"summary": "Create Customer",
"description": "Post a new entity to EntitySet Customers",
"operationId": "Customers_Post",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "Customer",
"in": "body",
"description": "The entity to post",
"required": true,
"schema": {
"$ref": "#/definitions/Customer"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Customer"
}
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Customers('{CustomerID}')": {
"get": {
"tags": [
"Customers"
],
"summary": "Get Customer",
"description": "Returns the entity with the key from Customers",
"operationId": "Customers_GetByCustomerid",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "CustomerID",
"in": "path",
"description": "key: CustomerID",
"required": true,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Customer"
}
}
},
"deprecated": false
},
"put": {
"tags": [
"Customers"
],
"summary": "Replace Customer",
"description": "Replace entity in EntitySet Customers",
"operationId": "Customers_PutByCustomerid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "CustomerID",
"in": "path",
"description": "key: CustomerID",
"required": true,
"type": "string"
},
{
"name": "Customer",
"in": "body",
"description": "The entity to put",
"required": true,
"schema": {
"$ref": "#/definitions/Customer"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"delete": {
"tags": [
"Customers"
],
"summary": "Delete Customer",
"description": "Delete entity in EntitySet Customers",
"operationId": "Customers_DeleteByCustomerid",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "CustomerID",
"in": "path",
"description": "key: CustomerID",
"required": true,
"type": "string"
},
{
"name": "If-Match",
"in": "header",
"description": "If-Match header",
"required": false,
"type": "string"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"patch": {
"tags": [
"Customers"
],
"summary": "Update Customer",
"description": "Update entity in EntitySet Customers",
"operationId": "Customers_PatchByCustomerid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "CustomerID",
"in": "path",
"description": "key: CustomerID",
"required": true,
"type": "string"
},
{
"name": "Customer",
"in": "body",
"description": "The entity to patch",
"required": true,
"schema": {
"$ref": "#/definitions/Customer"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Employees": {
"get": {
"tags": [
"Employees"
],
"summary": "Get Employees",
"description": "Returns the EntitySet Employees",
"operationId": "Employees_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "$expand",
"in": "query",
"description": "Expands related entities inline.",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results, based on a Boolean condition.",
"required": false,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results.",
"required": false,
"type": "string"
},
{
"name": "$top",
"in": "query",
"description": "Returns only the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$skip",
"in": "query",
"description": "Skips the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$count",
"in": "query",
"description": "Includes a count of the matching results in the response.",
"required": false,
"type": "boolean"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ODataResponse[Employee]"
}
}
},
"deprecated": false
},
"post": {
"tags": [
"Employees"
],
"summary": "Create Employee",
"description": "Post a new entity to EntitySet Employees",
"operationId": "Employees_Post",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "Employee",
"in": "body",
"description": "The entity to post",
"required": true,
"schema": {
"$ref": "#/definitions/Employee"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Employee"
}
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Employees({EmployeeID})": {
"get": {
"tags": [
"Employees"
],
"summary": "Get Employee",
"description": "Returns the entity with the key from Employees",
"operationId": "Employees_GetByEmployeeid",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "EmployeeID",
"in": "path",
"description": "key: EmployeeID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Employee"
}
}
},
"deprecated": false
},
"put": {
"tags": [
"Employees"
],
"summary": "Replace Employee",
"description": "Replace entity in EntitySet Employees",
"operationId": "Employees_PutByEmployeeid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "EmployeeID",
"in": "path",
"description": "key: EmployeeID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Employee",
"in": "body",
"description": "The entity to put",
"required": true,
"schema": {
"$ref": "#/definitions/Employee"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"delete": {
"tags": [
"Employees"
],
"summary": "Delete Employee",
"description": "Delete entity in EntitySet Employees",
"operationId": "Employees_DeleteByEmployeeid",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "EmployeeID",
"in": "path",
"description": "key: EmployeeID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "If-Match",
"in": "header",
"description": "If-Match header",
"required": false,
"type": "string"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"patch": {
"tags": [
"Employees"
],
"summary": "Update Employee",
"description": "Update entity in EntitySet Employees",
"operationId": "Employees_PatchByEmployeeid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "EmployeeID",
"in": "path",
"description": "key: EmployeeID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Employee",
"in": "body",
"description": "The entity to patch",
"required": true,
"schema": {
"$ref": "#/definitions/Employee"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Order_Details": {
"get": {
"tags": [
"Order_Details"
],
"summary": "Get Details Order",
"description": "Returns the EntitySet Order_Details",
"operationId": "Order_Details_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "$expand",
"in": "query",
"description": "Expands related entities inline.",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results, based on a Boolean condition.",
"required": false,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results.",
"required": false,
"type": "string"
},
{
"name": "$top",
"in": "query",
"description": "Returns only the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$skip",
"in": "query",
"description": "Skips the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$count",
"in": "query",
"description": "Includes a count of the matching results in the response.",
"required": false,
"type": "boolean"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ODataResponse[Order_Detail]"
}
}
},
"deprecated": false
},
"post": {
"tags": [
"Order_Details"
],
"summary": "Create Detail",
"description": "Post a new entity to EntitySet Order_Details",
"operationId": "Order_Details_Post",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "Order_Detail",
"in": "body",
"description": "The entity to post",
"required": true,
"schema": {
"$ref": "#/definitions/Order_Detail"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Order_Detail"
}
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Order_Details(OrderID={OrderID}, ProductID={ProductID})": {
"get": {
"tags": [
"Order_Details"
],
"summary": "Get Detail",
"description": "Returns the entity with the key from Order_Details",
"operationId": "Order_Details_GetByOrderidAndProductid",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "OrderID",
"in": "path",
"description": "key: OrderID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "ProductID",
"in": "path",
"description": "key: ProductID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Order_Detail"
}
}
},
"deprecated": false
},
"put": {
"tags": [
"Order_Details"
],
"summary": "Replace Detail",
"description": "Replace entity in EntitySet Order_Details",
"operationId": "Order_Details_PutByOrderidAndProductid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "OrderID",
"in": "path",
"description": "key: OrderID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "ProductID",
"in": "path",
"description": "key: ProductID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Order_Detail",
"in": "body",
"description": "The entity to put",
"required": true,
"schema": {
"$ref": "#/definitions/Order_Detail"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"delete": {
"tags": [
"Order_Details"
],
"summary": "Delete Detail",
"description": "Delete entity in EntitySet Order_Details",
"operationId": "Order_Details_DeleteByOrderidAndProductid",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "OrderID",
"in": "path",
"description": "key: OrderID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "ProductID",
"in": "path",
"description": "key: ProductID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "If-Match",
"in": "header",
"description": "If-Match header",
"required": false,
"type": "string"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"patch": {
"tags": [
"Order_Details"
],
"summary": "Update Detail",
"description": "Update entity in EntitySet Order_Details",
"operationId": "Order_Details_PatchByOrderidAndProductid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "OrderID",
"in": "path",
"description": "key: OrderID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "ProductID",
"in": "path",
"description": "key: ProductID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Order_Detail",
"in": "body",
"description": "The entity to patch",
"required": true,
"schema": {
"$ref": "#/definitions/Order_Detail"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Orders": {
"get": {
"tags": [
"Orders"
],
"summary": "Get Orders",
"description": "Returns the EntitySet Orders",
"operationId": "Orders_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "$expand",
"in": "query",
"description": "Expands related entities inline.",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results, based on a Boolean condition.",
"required": false,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results.",
"required": false,
"type": "string"
},
{
"name": "$top",
"in": "query",
"description": "Returns only the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$skip",
"in": "query",
"description": "Skips the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$count",
"in": "query",
"description": "Includes a count of the matching results in the response.",
"required": false,
"type": "boolean"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ODataResponse[Order]"
}
}
},
"deprecated": false
},
"post": {
"tags": [
"Orders"
],
"summary": "Create Order",
"description": "Post a new entity to EntitySet Orders",
"operationId": "Orders_Post",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "Order",
"in": "body",
"description": "The entity to post",
"required": true,
"schema": {
"$ref": "#/definitions/Order"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Order"
}
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Orders({OrderID})": {
"get": {
"tags": [
"Orders"
],
"summary": "Get Order",
"description": "Returns the entity with the key from Orders",
"operationId": "Orders_GetByOrderid",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "OrderID",
"in": "path",
"description": "key: OrderID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Order"
}
}
},
"deprecated": false
},
"put": {
"tags": [
"Orders"
],
"summary": "Replace Order",
"description": "Replace entity in EntitySet Orders",
"operationId": "Orders_PutByOrderid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "OrderID",
"in": "path",
"description": "key: OrderID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Order",
"in": "body",
"description": "The entity to put",
"required": true,
"schema": {
"$ref": "#/definitions/Order"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"delete": {
"tags": [
"Orders"
],
"summary": "Delete Order",
"description": "Delete entity in EntitySet Orders",
"operationId": "Orders_DeleteByOrderid",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "OrderID",
"in": "path",
"description": "key: OrderID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "If-Match",
"in": "header",
"description": "If-Match header",
"required": false,
"type": "string"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"patch": {
"tags": [
"Orders"
],
"summary": "Update Order",
"description": "Update entity in EntitySet Orders",
"operationId": "Orders_PatchByOrderid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "OrderID",
"in": "path",
"description": "key: OrderID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Order",
"in": "body",
"description": "The entity to patch",
"required": true,
"schema": {
"$ref": "#/definitions/Order"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Products": {
"get": {
"tags": [
"Products"
],
"summary": "Get Products",
"description": "Returns the EntitySet Products",
"operationId": "Products_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "$expand",
"in": "query",
"description": "Expands related entities inline.",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results, based on a Boolean condition.",
"required": false,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results.",
"required": false,
"type": "string"
},
{
"name": "$top",
"in": "query",
"description": "Returns only the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$skip",
"in": "query",
"description": "Skips the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$count",
"in": "query",
"description": "Includes a count of the matching results in the response.",
"required": false,
"type": "boolean"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ODataResponse[Product]"
}
}
},
"deprecated": false
},
"post": {
"tags": [
"Products"
],
"summary": "Create Product",
"description": "Post a new entity to EntitySet Products",
"operationId": "Products_Post",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "Product",
"in": "body",
"description": "The entity to post",
"required": true,
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Product"
}
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Products({ProductID})": {
"get": {
"tags": [
"Products"
],
"summary": "Get Product",
"description": "Returns the entity with the key from Products",
"operationId": "Products_GetByProductid",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "ProductID",
"in": "path",
"description": "key: ProductID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Product"
}
}
},
"deprecated": false
},
"put": {
"tags": [
"Products"
],
"summary": "Replace Product",
"description": "Replace entity in EntitySet Products",
"operationId": "Products_PutByProductid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "ProductID",
"in": "path",
"description": "key: ProductID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Product",
"in": "body",
"description": "The entity to put",
"required": true,
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"delete": {
"tags": [
"Products"
],
"summary": "Delete Product",
"description": "Delete entity in EntitySet Products",
"operationId": "Products_DeleteByProductid",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "ProductID",
"in": "path",
"description": "key: ProductID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "If-Match",
"in": "header",
"description": "If-Match header",
"required": false,
"type": "string"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"patch": {
"tags": [
"Products"
],
"summary": "Update Product",
"description": "Update entity in EntitySet Products",
"operationId": "Products_PatchByProductid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "ProductID",
"in": "path",
"description": "key: ProductID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Product",
"in": "body",
"description": "The entity to patch",
"required": true,
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Regions": {
"get": {
"tags": [
"Regions"
],
"summary": "Get Regions",
"description": "Returns the EntitySet Regions",
"operationId": "Regions_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "$expand",
"in": "query",
"description": "Expands related entities inline.",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results, based on a Boolean condition.",
"required": false,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results.",
"required": false,
"type": "string"
},
{
"name": "$top",
"in": "query",
"description": "Returns only the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$skip",
"in": "query",
"description": "Skips the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$count",
"in": "query",
"description": "Includes a count of the matching results in the response.",
"required": false,
"type": "boolean"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ODataResponse[Region]"
}
}
},
"deprecated": false
},
"post": {
"tags": [
"Regions"
],
"summary": "Create Region",
"description": "Post a new entity to EntitySet Regions",
"operationId": "Regions_Post",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "Region",
"in": "body",
"description": "The entity to post",
"required": true,
"schema": {
"$ref": "#/definitions/Region"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Region"
}
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Regions({RegionID})": {
"get": {
"tags": [
"Regions"
],
"summary": "Get Region",
"description": "Returns the entity with the key from Regions",
"operationId": "Regions_GetByRegionid",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "RegionID",
"in": "path",
"description": "key: RegionID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Region"
}
}
},
"deprecated": false
},
"put": {
"tags": [
"Regions"
],
"summary": "Replace Region",
"description": "Replace entity in EntitySet Regions",
"operationId": "Regions_PutByRegionid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "RegionID",
"in": "path",
"description": "key: RegionID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Region",
"in": "body",
"description": "The entity to put",
"required": true,
"schema": {
"$ref": "#/definitions/Region"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"delete": {
"tags": [
"Regions"
],
"summary": "Delete Region",
"description": "Delete entity in EntitySet Regions",
"operationId": "Regions_DeleteByRegionid",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "RegionID",
"in": "path",
"description": "key: RegionID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "If-Match",
"in": "header",
"description": "If-Match header",
"required": false,
"type": "string"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"patch": {
"tags": [
"Regions"
],
"summary": "Update Region",
"description": "Update entity in EntitySet Regions",
"operationId": "Regions_PatchByRegionid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "RegionID",
"in": "path",
"description": "key: RegionID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Region",
"in": "body",
"description": "The entity to patch",
"required": true,
"schema": {
"$ref": "#/definitions/Region"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Shippers": {
"get": {
"tags": [
"Shippers"
],
"summary": "Get Shippers",
"description": "Returns the EntitySet Shippers",
"operationId": "Shippers_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "$expand",
"in": "query",
"description": "Expands related entities inline.",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results, based on a Boolean condition.",
"required": false,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results.",
"required": false,
"type": "string"
},
{
"name": "$top",
"in": "query",
"description": "Returns only the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$skip",
"in": "query",
"description": "Skips the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$count",
"in": "query",
"description": "Includes a count of the matching results in the response.",
"required": false,
"type": "boolean"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ODataResponse[Shipper]"
}
}
},
"deprecated": false
},
"post": {
"tags": [
"Shippers"
],
"summary": "Create Shipper",
"description": "Post a new entity to EntitySet Shippers",
"operationId": "Shippers_Post",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "Shipper",
"in": "body",
"description": "The entity to post",
"required": true,
"schema": {
"$ref": "#/definitions/Shipper"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Shipper"
}
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Shippers({ShipperID})": {
"get": {
"tags": [
"Shippers"
],
"summary": "Get Shipper",
"description": "Returns the entity with the key from Shippers",
"operationId": "Shippers_GetByShipperid",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "ShipperID",
"in": "path",
"description": "key: ShipperID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Shipper"
}
}
},
"deprecated": false
},
"put": {
"tags": [
"Shippers"
],
"summary": "Replace Shipper",
"description": "Replace entity in EntitySet Shippers",
"operationId": "Shippers_PutByShipperid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "ShipperID",
"in": "path",
"description": "key: ShipperID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Shipper",
"in": "body",
"description": "The entity to put",
"required": true,
"schema": {
"$ref": "#/definitions/Shipper"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"delete": {
"tags": [
"Shippers"
],
"summary": "Delete Shipper",
"description": "Delete entity in EntitySet Shippers",
"operationId": "Shippers_DeleteByShipperid",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "ShipperID",
"in": "path",
"description": "key: ShipperID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "If-Match",
"in": "header",
"description": "If-Match header",
"required": false,
"type": "string"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"patch": {
"tags": [
"Shippers"
],
"summary": "Update Shipper",
"description": "Update entity in EntitySet Shippers",
"operationId": "Shippers_PatchByShipperid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "ShipperID",
"in": "path",
"description": "key: ShipperID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Shipper",
"in": "body",
"description": "The entity to patch",
"required": true,
"schema": {
"$ref": "#/definitions/Shipper"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Suppliers": {
"get": {
"tags": [
"Suppliers"
],
"summary": "Get Suppliers",
"description": "Returns the EntitySet Suppliers",
"operationId": "Suppliers_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "$expand",
"in": "query",
"description": "Expands related entities inline.",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results, based on a Boolean condition.",
"required": false,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results.",
"required": false,
"type": "string"
},
{
"name": "$top",
"in": "query",
"description": "Returns only the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$skip",
"in": "query",
"description": "Skips the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$count",
"in": "query",
"description": "Includes a count of the matching results in the response.",
"required": false,
"type": "boolean"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ODataResponse[Supplier]"
}
}
},
"deprecated": false
},
"post": {
"tags": [
"Suppliers"
],
"summary": "Create Supplier",
"description": "Post a new entity to EntitySet Suppliers",
"operationId": "Suppliers_Post",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "Supplier",
"in": "body",
"description": "The entity to post",
"required": true,
"schema": {
"$ref": "#/definitions/Supplier"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Supplier"
}
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Suppliers({SupplierID})": {
"get": {
"tags": [
"Suppliers"
],
"summary": "Get Supplier",
"description": "Returns the entity with the key from Suppliers",
"operationId": "Suppliers_GetBySupplierid",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "SupplierID",
"in": "path",
"description": "key: SupplierID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Supplier"
}
}
},
"deprecated": false
},
"put": {
"tags": [
"Suppliers"
],
"summary": "Replace Supplier",
"description": "Replace entity in EntitySet Suppliers",
"operationId": "Suppliers_PutBySupplierid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "SupplierID",
"in": "path",
"description": "key: SupplierID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Supplier",
"in": "body",
"description": "The entity to put",
"required": true,
"schema": {
"$ref": "#/definitions/Supplier"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"delete": {
"tags": [
"Suppliers"
],
"summary": "Delete Supplier",
"description": "Delete entity in EntitySet Suppliers",
"operationId": "Suppliers_DeleteBySupplierid",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "SupplierID",
"in": "path",
"description": "key: SupplierID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "If-Match",
"in": "header",
"description": "If-Match header",
"required": false,
"type": "string"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"patch": {
"tags": [
"Suppliers"
],
"summary": "Update Supplier",
"description": "Update entity in EntitySet Suppliers",
"operationId": "Suppliers_PatchBySupplierid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "SupplierID",
"in": "path",
"description": "key: SupplierID",
"required": true,
"type": "integer",
"format": "int32"
},
{
"name": "Supplier",
"in": "body",
"description": "The entity to patch",
"required": true,
"schema": {
"$ref": "#/definitions/Supplier"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Territories": {
"get": {
"tags": [
"Territories"
],
"summary": "Get Territories",
"description": "Returns the EntitySet Territories",
"operationId": "Territories_Get",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "$expand",
"in": "query",
"description": "Expands related entities inline.",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results, based on a Boolean condition.",
"required": false,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results.",
"required": false,
"type": "string"
},
{
"name": "$top",
"in": "query",
"description": "Returns only the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$skip",
"in": "query",
"description": "Skips the first n results.",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "$count",
"in": "query",
"description": "Includes a count of the matching results in the response.",
"required": false,
"type": "boolean"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ODataResponse[Territory]"
}
}
},
"deprecated": false
},
"post": {
"tags": [
"Territories"
],
"summary": "Create Territory",
"description": "Post a new entity to EntitySet Territories",
"operationId": "Territories_Post",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "Territory",
"in": "body",
"description": "The entity to post",
"required": true,
"schema": {
"$ref": "#/definitions/Territory"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Territory"
}
}
},
"deprecated": false
}
},
"/V4/Northwind/Northwind.svc/Territories('{TerritoryID}')": {
"get": {
"tags": [
"Territories"
],
"summary": "Get Territory",
"description": "Returns the entity with the key from Territories",
"operationId": "Territories_GetByTerritoryid",
"consumes": [],
"produces": [
"application/json"
],
"parameters": [
{
"name": "TerritoryID",
"in": "path",
"description": "key: TerritoryID",
"required": true,
"type": "string"
},
{
"name": "$select",
"in": "query",
"description": "Selects which properties to include in the response.",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Territory"
}
}
},
"deprecated": false
},
"put": {
"tags": [
"Territories"
],
"summary": "Replace Territory",
"description": "Replace entity in EntitySet Territories",
"operationId": "Territories_PutByTerritoryid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "TerritoryID",
"in": "path",
"description": "key: TerritoryID",
"required": true,
"type": "string"
},
{
"name": "Territory",
"in": "body",
"description": "The entity to put",
"required": true,
"schema": {
"$ref": "#/definitions/Territory"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"delete": {
"tags": [
"Territories"
],
"summary": "Delete Territory",
"description": "Delete entity in EntitySet Territories",
"operationId": "Territories_DeleteByTerritoryid",
"consumes": [],
"produces": [],
"parameters": [
{
"name": "TerritoryID",
"in": "path",
"description": "key: TerritoryID",
"required": true,
"type": "string"
},
{
"name": "If-Match",
"in": "header",
"description": "If-Match header",
"required": false,
"type": "string"
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
},
"patch": {
"tags": [
"Territories"
],
"summary": "Update Territory",
"description": "Update entity in EntitySet Territories",
"operationId": "Territories_PatchByTerritoryid",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "TerritoryID",
"in": "path",
"description": "key: TerritoryID",
"required": true,
"type": "string"
},
{
"name": "Territory",
"in": "body",
"description": "The entity to patch",
"required": true,
"schema": {
"$ref": "#/definitions/Territory"
}
}
],
"responses": {
"204": {
"description": "No Content"
}
},
"deprecated": false
}
}
},
"definitions": {
"ODataResponse[Category]": {
"type": "object",
"properties": {
"@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Category"
}
}
}
},
"Category": {
"required": [
"CategoryName"
],
"type": "object",
"properties": {
"CategoryID": {
"format": "int32",
"type": "integer"
},
"CategoryName": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"Description": {
"type": "string"
},
"Picture": {
"type": "string"
}
}
},
"Product": {
"required": [
"ProductName"
],
"type": "object",
"properties": {
"ProductID": {
"format": "int32",
"type": "integer"
},
"ProductName": {
"maxLength": 40,
"minLength": 0,
"type": "string"
},
"SupplierID": {
"format": "int32",
"type": "integer"
},
"CategoryID": {
"format": "int32",
"type": "integer"
},
"QuantityPerUnit": {
"maxLength": 20,
"minLength": 0,
"type": "string"
},
"UnitPrice": {
"format": "double",
"type": "number"
},
"UnitsInStock": {
"format": "int32",
"type": "integer"
},
"UnitsOnOrder": {
"format": "int32",
"type": "integer"
},
"ReorderLevel": {
"format": "int32",
"type": "integer"
},
"Discontinued": {
"type": "boolean"
}
}
},
"Order_Detail": {
"type": "object",
"properties": {
"OrderID": {
"format": "int32",
"type": "integer"
},
"ProductID": {
"format": "int32",
"type": "integer"
},
"UnitPrice": {
"format": "double",
"type": "number"
},
"Quantity": {
"format": "int32",
"type": "integer"
},
"Discount": {
"format": "float",
"type": "number"
}
}
},
"Supplier": {
"required": [
"CompanyName"
],
"type": "object",
"properties": {
"SupplierID": {
"format": "int32",
"type": "integer"
},
"CompanyName": {
"maxLength": 40,
"minLength": 0,
"type": "string"
},
"ContactName": {
"maxLength": 30,
"minLength": 0,
"type": "string"
},
"ContactTitle": {
"maxLength": 30,
"minLength": 0,
"type": "string"
},
"Address": {
"maxLength": 60,
"minLength": 0,
"type": "string"
},
"City": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"Region": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"PostalCode": {
"maxLength": 10,
"minLength": 0,
"type": "string"
},
"Country": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"Phone": {
"maxLength": 24,
"minLength": 0,
"type": "string"
},
"Fax": {
"maxLength": 24,
"minLength": 0,
"type": "string"
},
"HomePage": {
"type": "string"
}
}
},
"Order": {
"type": "object",
"properties": {
"OrderID": {
"format": "int32",
"type": "integer"
},
"CustomerID": {
"maxLength": 5,
"minLength": 0,
"type": "string"
},
"EmployeeID": {
"format": "int32",
"type": "integer"
},
"OrderDate": {
"format": "date-time",
"type": "string"
},
"RequiredDate": {
"format": "date-time",
"type": "string"
},
"ShippedDate": {
"format": "date-time",
"type": "string"
},
"ShipVia": {
"format": "int32",
"type": "integer"
},
"Freight": {
"format": "double",
"type": "number"
},
"ShipName": {
"maxLength": 40,
"minLength": 0,
"type": "string"
},
"ShipAddress": {
"maxLength": 60,
"minLength": 0,
"type": "string"
},
"ShipCity": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"ShipRegion": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"ShipPostalCode": {
"maxLength": 10,
"minLength": 0,
"type": "string"
},
"ShipCountry": {
"maxLength": 15,
"minLength": 0,
"type": "string"
}
}
},
"Customer": {
"required": [
"CompanyName"
],
"type": "object",
"properties": {
"CustomerID": {
"maxLength": 5,
"minLength": 0,
"type": "string"
},
"CompanyName": {
"maxLength": 40,
"minLength": 0,
"type": "string"
},
"ContactName": {
"maxLength": 30,
"minLength": 0,
"type": "string"
},
"ContactTitle": {
"maxLength": 30,
"minLength": 0,
"type": "string"
},
"Address": {
"maxLength": 60,
"minLength": 0,
"type": "string"
},
"City": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"Region": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"PostalCode": {
"maxLength": 10,
"minLength": 0,
"type": "string"
},
"Country": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"Phone": {
"maxLength": 24,
"minLength": 0,
"type": "string"
},
"Fax": {
"maxLength": 24,
"minLength": 0,
"type": "string"
}
}
},
"Employee": {
"required": [
"LastName",
"FirstName"
],
"type": "object",
"properties": {
"EmployeeID": {
"format": "int32",
"type": "integer"
},
"LastName": {
"maxLength": 20,
"minLength": 0,
"type": "string"
},
"FirstName": {
"maxLength": 10,
"minLength": 0,
"type": "string"
},
"Title": {
"maxLength": 30,
"minLength": 0,
"type": "string"
},
"TitleOfCourtesy": {
"maxLength": 25,
"minLength": 0,
"type": "string"
},
"BirthDate": {
"format": "date-time",
"type": "string"
},
"HireDate": {
"format": "date-time",
"type": "string"
},
"Address": {
"maxLength": 60,
"minLength": 0,
"type": "string"
},
"City": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"Region": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"PostalCode": {
"maxLength": 10,
"minLength": 0,
"type": "string"
},
"Country": {
"maxLength": 15,
"minLength": 0,
"type": "string"
},
"HomePhone": {
"maxLength": 24,
"minLength": 0,
"type": "string"
},
"Extension": {
"maxLength": 4,
"minLength": 0,
"type": "string"
},
"Photo": {
"type": "string"
},
"Notes": {
"type": "string"
},
"ReportsTo": {
"format": "int32",
"type": "integer"
},
"PhotoPath": {
"maxLength": 255,
"minLength": 0,
"type": "string"
}
}
},
"Shipper": {
"required": [
"CompanyName"
],
"type": "object",
"properties": {
"ShipperID": {
"format": "int32",
"type": "integer"
},
"CompanyName": {
"maxLength": 40,
"minLength": 0,
"type": "string"
},
"Phone": {
"maxLength": 24,
"minLength": 0,
"type": "string"
}
}
},
"CustomerDemographic": {
"type": "object",
"properties": {
"CustomerTypeID": {
"maxLength": 10,
"minLength": 0,
"type": "string"
},
"CustomerDesc": {
"type": "string"
}
}
},
"Territory": {
"required": [
"TerritoryDescription"
],
"type": "object",
"properties": {
"TerritoryID": {
"maxLength": 20,
"minLength": 0,
"type": "string"
},
"TerritoryDescription": {
"maxLength": 50,
"minLength": 0,
"type": "string"
},
"RegionID": {
"format": "int32",
"type": "integer"
}
}
},
"Region": {
"required": [
"RegionDescription"
],
"type": "object",
"properties": {
"RegionID": {
"format": "int32",
"type": "integer"
},
"RegionDescription": {
"maxLength": 50,
"minLength": 0,
"type": "string"
}
}
},
"ODataResponse[CustomerDemographic]": {
"type": "object",
"properties": {
"@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/CustomerDemographic"
}
}
}
},
"ODataResponse[Customer]": {
"type": "object",
"properties": {
"@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Customer"
}
}
}
},
"ODataResponse[Employee]": {
"type": "object",
"properties": {
"@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Employee"
}
}
}
},
"ODataResponse[Order_Detail]": {
"type": "object",
"properties": {
"@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Order_Detail"
}
}
}
},
"ODataResponse[Order]": {
"type": "object",
"properties": {
"@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Order"
}
}
}
},
"ODataResponse[Product]": {
"type": "object",
"properties": {
"@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Product"
}
}
}
},
"ODataResponse[Region]": {
"type": "object",
"properties": {
"@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Region"
}
}
}
},
"ODataResponse[Shipper]": {
"type": "object",
"properties": {
"@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Shipper"
}
}
}
},
"ODataResponse[Supplier]": {
"type": "object",
"properties": {
"@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Supplier"
}
}
}
},
"ODataResponse[Territory]": {
"type": "object",
"properties": {
"@odata.context": {
"type": "string"
},
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/Territory"
}
}
}
}
},
"parameters": {},
"responses": {},
"securityDefinitions": {},
"security": [],
"tags": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment