2017-10-19 23:39:57 +02:00
|
|
|
openapi: 3.0.0
|
|
|
|
info:
|
|
|
|
title: OData Service for namespace DefaultNs
|
2017-11-15 01:54:03 +01:00
|
|
|
version: 0.1.0
|
2017-10-19 23:39:57 +02:00
|
|
|
servers:
|
|
|
|
- url: http://localhost
|
|
|
|
paths:
|
|
|
|
/People:
|
|
|
|
get:
|
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: People
|
|
|
|
summary: Get entities from People
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
2017-11-15 01:54:03 +01:00
|
|
|
- $ref: '#/components/parameters/top'
|
|
|
|
- $ref: '#/components/parameters/skip'
|
|
|
|
- $ref: '#/components/parameters/search'
|
|
|
|
- $ref: '#/components/parameters/filter'
|
|
|
|
- $ref: '#/components/parameters/count'
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $orderby
|
|
|
|
in: query
|
|
|
|
description: Order items by property values
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- UserName
|
|
|
|
- UserName desc
|
|
|
|
- HomeAddress
|
|
|
|
- HomeAddress desc
|
|
|
|
- WorkAddress
|
|
|
|
- WorkAddress desc
|
|
|
|
- Addresses
|
2017-11-15 01:54:03 +01:00
|
|
|
- Addresses desc
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $select
|
|
|
|
in: query
|
|
|
|
description: Select properties to be returned
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- UserName
|
|
|
|
- HomeAddress
|
|
|
|
- WorkAddress
|
2017-11-15 01:54:03 +01:00
|
|
|
- Addresses
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $expand
|
|
|
|
in: query
|
|
|
|
description: Expand related entities
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- *
|
2017-11-15 01:54:03 +01:00
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Retrieved entities
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
title: Collection of People
|
2017-11-15 01:54:03 +01:00
|
|
|
type: object
|
2017-10-19 23:39:57 +02:00
|
|
|
properties:
|
|
|
|
value:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.Person'
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
2017-10-19 23:39:57 +02:00
|
|
|
post:
|
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: People
|
|
|
|
summary: Add new entity to People
|
2017-10-19 23:39:57 +02:00
|
|
|
requestBody:
|
|
|
|
description: New entity
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.Person'
|
|
|
|
required: true
|
|
|
|
responses:
|
|
|
|
201:
|
|
|
|
description: Created entity
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.Person'
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
2017-10-19 23:39:57 +02:00
|
|
|
/People('{UserName}'):
|
|
|
|
get:
|
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: People
|
|
|
|
summary: Get entity from People by key
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
|
|
|
- name: UserName
|
|
|
|
in: path
|
|
|
|
description: key: UserName
|
|
|
|
required: true
|
2017-11-15 01:54:03 +01:00
|
|
|
schema:
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $select
|
|
|
|
in: query
|
|
|
|
description: Select properties to be returned
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- UserName
|
|
|
|
- HomeAddress
|
|
|
|
- WorkAddress
|
2017-11-15 01:54:03 +01:00
|
|
|
- Addresses
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $expand
|
|
|
|
in: query
|
|
|
|
description: Expand related entities
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- *
|
2017-11-15 01:54:03 +01:00
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Retrieved entity
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.Person'
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
|
|
|
patch:
|
2017-10-19 23:39:57 +02:00
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: People
|
|
|
|
summary: Update entity in People
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
|
|
|
- name: UserName
|
|
|
|
in: path
|
|
|
|
description: key: UserName
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
2017-11-15 01:54:03 +01:00
|
|
|
requestBody:
|
|
|
|
description: New property values
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.Person'
|
|
|
|
required: true
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: Success
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
|
|
|
delete:
|
2017-10-19 23:39:57 +02:00
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: People
|
|
|
|
summary: Delete entity from People
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
|
|
|
- name: UserName
|
|
|
|
in: path
|
|
|
|
description: key: UserName
|
|
|
|
required: true
|
2017-11-15 01:54:03 +01:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: If-Match
|
|
|
|
in: header
|
|
|
|
description: ETag
|
|
|
|
schema:
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: Success
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
2017-10-19 23:39:57 +02:00
|
|
|
/City:
|
|
|
|
get:
|
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: City
|
|
|
|
summary: Get entities from City
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
2017-11-15 01:54:03 +01:00
|
|
|
- $ref: '#/components/parameters/top'
|
|
|
|
- $ref: '#/components/parameters/skip'
|
|
|
|
- $ref: '#/components/parameters/search'
|
|
|
|
- $ref: '#/components/parameters/filter'
|
|
|
|
- $ref: '#/components/parameters/count'
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $orderby
|
|
|
|
in: query
|
|
|
|
description: Order items by property values
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- Name
|
2017-11-15 01:54:03 +01:00
|
|
|
- Name desc
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $select
|
|
|
|
in: query
|
|
|
|
description: Select properties to be returned
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
2017-11-15 01:54:03 +01:00
|
|
|
- Name
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $expand
|
|
|
|
in: query
|
|
|
|
description: Expand related entities
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- *
|
2017-11-15 01:54:03 +01:00
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Retrieved entities
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
title: Collection of City
|
2017-11-15 01:54:03 +01:00
|
|
|
type: object
|
2017-10-19 23:39:57 +02:00
|
|
|
properties:
|
|
|
|
value:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.City'
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
2017-10-19 23:39:57 +02:00
|
|
|
post:
|
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: City
|
|
|
|
summary: Add new entity to City
|
2017-10-19 23:39:57 +02:00
|
|
|
requestBody:
|
|
|
|
description: New entity
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.City'
|
|
|
|
required: true
|
|
|
|
responses:
|
|
|
|
201:
|
|
|
|
description: Created entity
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.City'
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
2017-10-19 23:39:57 +02:00
|
|
|
/City('{Name}'):
|
|
|
|
get:
|
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: City
|
|
|
|
summary: Get entity from City by key
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
|
|
|
- name: Name
|
|
|
|
in: path
|
|
|
|
description: key: Name
|
|
|
|
required: true
|
2017-11-15 01:54:03 +01:00
|
|
|
schema:
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $select
|
|
|
|
in: query
|
|
|
|
description: Select properties to be returned
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
2017-11-15 01:54:03 +01:00
|
|
|
- Name
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $expand
|
|
|
|
in: query
|
|
|
|
description: Expand related entities
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- *
|
2017-11-15 01:54:03 +01:00
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Retrieved entity
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.City'
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
|
|
|
patch:
|
2017-10-19 23:39:57 +02:00
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: City
|
|
|
|
summary: Update entity in City
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
|
|
|
- name: Name
|
|
|
|
in: path
|
|
|
|
description: key: Name
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
2017-11-15 01:54:03 +01:00
|
|
|
requestBody:
|
|
|
|
description: New property values
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.City'
|
|
|
|
required: true
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: Success
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
|
|
|
delete:
|
2017-10-19 23:39:57 +02:00
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: City
|
|
|
|
summary: Delete entity from City
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
|
|
|
- name: Name
|
|
|
|
in: path
|
|
|
|
description: key: Name
|
|
|
|
required: true
|
2017-11-15 01:54:03 +01:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: If-Match
|
|
|
|
in: header
|
|
|
|
description: ETag
|
|
|
|
schema:
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: Success
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
2017-10-19 23:39:57 +02:00
|
|
|
/CountryOrRegion:
|
|
|
|
get:
|
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: CountryOrRegion
|
|
|
|
summary: Get entities from CountryOrRegion
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
2017-11-15 01:54:03 +01:00
|
|
|
- $ref: '#/components/parameters/top'
|
|
|
|
- $ref: '#/components/parameters/skip'
|
|
|
|
- $ref: '#/components/parameters/search'
|
|
|
|
- $ref: '#/components/parameters/filter'
|
|
|
|
- $ref: '#/components/parameters/count'
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $orderby
|
|
|
|
in: query
|
|
|
|
description: Order items by property values
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- Name
|
2017-11-15 01:54:03 +01:00
|
|
|
- Name desc
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $select
|
|
|
|
in: query
|
|
|
|
description: Select properties to be returned
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
2017-11-15 01:54:03 +01:00
|
|
|
- Name
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $expand
|
|
|
|
in: query
|
|
|
|
description: Expand related entities
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- *
|
2017-11-15 01:54:03 +01:00
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Retrieved entities
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
title: Collection of CountryOrRegion
|
2017-11-15 01:54:03 +01:00
|
|
|
type: object
|
2017-10-19 23:39:57 +02:00
|
|
|
properties:
|
|
|
|
value:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.CountryOrRegion'
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
2017-10-19 23:39:57 +02:00
|
|
|
post:
|
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: CountryOrRegion
|
|
|
|
summary: Add new entity to CountryOrRegion
|
2017-10-19 23:39:57 +02:00
|
|
|
requestBody:
|
|
|
|
description: New entity
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.CountryOrRegion'
|
|
|
|
required: true
|
|
|
|
responses:
|
|
|
|
201:
|
|
|
|
description: Created entity
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.CountryOrRegion'
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
2017-10-19 23:39:57 +02:00
|
|
|
/CountryOrRegion('{Name}'):
|
|
|
|
get:
|
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: CountryOrRegion
|
|
|
|
summary: Get entity from CountryOrRegion by key
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
|
|
|
- name: Name
|
|
|
|
in: path
|
|
|
|
description: key: Name
|
|
|
|
required: true
|
2017-11-15 01:54:03 +01:00
|
|
|
schema:
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $select
|
|
|
|
in: query
|
|
|
|
description: Select properties to be returned
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
2017-11-15 01:54:03 +01:00
|
|
|
- Name
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
- name: $expand
|
|
|
|
in: query
|
|
|
|
description: Expand related entities
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
2017-11-15 01:54:03 +01:00
|
|
|
type: array
|
2017-10-19 23:39:57 +02:00
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- *
|
2017-11-15 01:54:03 +01:00
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Retrieved entity
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.CountryOrRegion'
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
|
|
|
patch:
|
2017-10-19 23:39:57 +02:00
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: CountryOrRegion
|
|
|
|
summary: Update entity in CountryOrRegion
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
|
|
|
- name: Name
|
|
|
|
in: path
|
|
|
|
description: key: Name
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
2017-11-15 01:54:03 +01:00
|
|
|
requestBody:
|
|
|
|
description: New property values
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.CountryOrRegion'
|
|
|
|
required: true
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: Success
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
|
|
|
delete:
|
2017-10-19 23:39:57 +02:00
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: CountryOrRegion
|
|
|
|
summary: Delete entity from CountryOrRegion
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
|
|
|
- name: Name
|
|
|
|
in: path
|
|
|
|
description: key: Name
|
|
|
|
required: true
|
2017-11-15 01:54:03 +01:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- name: If-Match
|
|
|
|
in: header
|
|
|
|
description: ETag
|
|
|
|
schema:
|
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: Success
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
2017-11-15 01:54:03 +01:00
|
|
|
callbacks: { }
|
2017-11-16 20:19:47 +01:00
|
|
|
/Me:
|
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- name: Me
|
|
|
|
summary: Get Me
|
|
|
|
parameters:
|
|
|
|
- name: $select
|
|
|
|
in: query
|
|
|
|
description: Select properties to be returned
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- UserName
|
|
|
|
- HomeAddress
|
|
|
|
- WorkAddress
|
|
|
|
- Addresses
|
|
|
|
type: string
|
|
|
|
- name: $expand
|
|
|
|
in: query
|
|
|
|
description: Expand related entities
|
|
|
|
schema:
|
|
|
|
uniqueItems: true
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
enum:
|
|
|
|
- *
|
|
|
|
type: string
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Retrieved entity
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.Person'
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
|
|
|
callbacks: { }
|
|
|
|
patch:
|
|
|
|
tags:
|
|
|
|
- name: Me
|
|
|
|
summary: Update Me
|
|
|
|
requestBody:
|
|
|
|
description: New property values
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.Person'
|
|
|
|
required: true
|
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: Success
|
|
|
|
default:
|
|
|
|
$ref: '#/components/responses/error'
|
|
|
|
callbacks: { }
|
2017-10-19 23:39:57 +02:00
|
|
|
components:
|
|
|
|
schemas:
|
|
|
|
DefaultNs.Color:
|
|
|
|
title: Color
|
|
|
|
enum:
|
|
|
|
- Blue
|
|
|
|
- White
|
2017-11-15 01:54:03 +01:00
|
|
|
type: string
|
2017-10-19 23:39:57 +02:00
|
|
|
DefaultNs.Person:
|
|
|
|
title: Person
|
2017-11-15 01:54:03 +01:00
|
|
|
type: object
|
2017-10-19 23:39:57 +02:00
|
|
|
properties:
|
|
|
|
UserName:
|
|
|
|
type: string
|
|
|
|
HomeAddress:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.Address'
|
|
|
|
WorkAddress:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.Address'
|
|
|
|
Addresses:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.Address'
|
|
|
|
DefaultNs.City:
|
|
|
|
title: City
|
2017-11-15 01:54:03 +01:00
|
|
|
type: object
|
2017-10-19 23:39:57 +02:00
|
|
|
properties:
|
|
|
|
Name:
|
|
|
|
type: string
|
|
|
|
DefaultNs.CountryOrRegion:
|
|
|
|
title: CountryOrRegion
|
2017-11-15 01:54:03 +01:00
|
|
|
type: object
|
2017-10-19 23:39:57 +02:00
|
|
|
properties:
|
|
|
|
Name:
|
|
|
|
type: string
|
|
|
|
DefaultNs.Address:
|
|
|
|
title: Address
|
2017-11-15 01:54:03 +01:00
|
|
|
type: object
|
2017-10-19 23:39:57 +02:00
|
|
|
properties:
|
|
|
|
Id:
|
2017-11-15 01:54:03 +01:00
|
|
|
maximum: 2147483647
|
|
|
|
minimum: -2147483648
|
2017-10-19 23:39:57 +02:00
|
|
|
type: integer
|
2017-11-15 01:54:03 +01:00
|
|
|
format: int32
|
2017-10-19 23:39:57 +02:00
|
|
|
City:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.City'
|
|
|
|
DefaultNs.WorkAddress:
|
|
|
|
allOf:
|
2017-11-15 01:54:03 +01:00
|
|
|
- $ref: '#/components/schemas/DefaultNs.Address'
|
|
|
|
- title: WorkAddress
|
|
|
|
type: object
|
2017-10-19 23:39:57 +02:00
|
|
|
properties:
|
|
|
|
CountryOrRegion:
|
|
|
|
$ref: '#/components/schemas/DefaultNs.CountryOrRegion'
|
|
|
|
odata.error:
|
|
|
|
required:
|
|
|
|
- error
|
2017-11-15 01:54:03 +01:00
|
|
|
type: object
|
2017-10-19 23:39:57 +02:00
|
|
|
properties:
|
|
|
|
error:
|
|
|
|
$ref: '#/components/schemas/odata.error.main'
|
|
|
|
odata.error.main:
|
|
|
|
required:
|
|
|
|
- code
|
|
|
|
- message
|
2017-11-15 01:54:03 +01:00
|
|
|
type: object
|
2017-10-19 23:39:57 +02:00
|
|
|
properties:
|
|
|
|
code:
|
|
|
|
type: string
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
target:
|
|
|
|
type: string
|
|
|
|
details:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/odata.error.detail'
|
|
|
|
innererror:
|
|
|
|
type: object
|
|
|
|
description: The structure of this object is service-specific
|
|
|
|
odata.error.detail:
|
|
|
|
required:
|
|
|
|
- code
|
|
|
|
- message
|
2017-11-15 01:54:03 +01:00
|
|
|
type: object
|
2017-10-19 23:39:57 +02:00
|
|
|
properties:
|
|
|
|
code:
|
|
|
|
type: string
|
|
|
|
message:
|
|
|
|
type: string
|
|
|
|
target:
|
|
|
|
type: string
|
2017-11-15 01:54:03 +01:00
|
|
|
responses:
|
|
|
|
error:
|
|
|
|
description: error
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/odata.error'
|
2017-10-19 23:39:57 +02:00
|
|
|
parameters:
|
|
|
|
top:
|
|
|
|
name: $top
|
|
|
|
in: query
|
|
|
|
description: Show only the first n items
|
|
|
|
schema:
|
|
|
|
minimum: 0
|
2017-11-15 01:54:03 +01:00
|
|
|
type: integer
|
|
|
|
example: 50
|
2017-10-19 23:39:57 +02:00
|
|
|
skip:
|
|
|
|
name: $skip
|
|
|
|
in: query
|
2017-11-15 01:54:03 +01:00
|
|
|
description: Skip the first n items
|
2017-10-19 23:39:57 +02:00
|
|
|
schema:
|
|
|
|
minimum: 0
|
2017-11-15 01:54:03 +01:00
|
|
|
type: integer
|
2017-10-19 23:39:57 +02:00
|
|
|
count:
|
|
|
|
name: $count
|
|
|
|
in: query
|
|
|
|
description: Include count of items
|
|
|
|
schema:
|
|
|
|
type: boolean
|
|
|
|
filter:
|
|
|
|
name: $filter
|
|
|
|
in: query
|
|
|
|
description: Filter items by property values
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
search:
|
|
|
|
name: $search
|
|
|
|
in: query
|
|
|
|
description: Search items by search phrases
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
tags:
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: People
|
2017-11-16 20:19:47 +01:00
|
|
|
description: People's description.
|
2017-11-15 01:54:03 +01:00
|
|
|
- name: City
|
2017-11-16 20:19:47 +01:00
|
|
|
- name: CountryOrRegion
|
|
|
|
- name: Me
|