Skip to content

Commit

Permalink
Add News Search API Swagger Spec (#2026)
Browse files Browse the repository at this point in the history
* Add News Search API Swagger Spec

* Add News Search API Swagger Spec

* Add NewsArticle into Spec

* Add miss comma before x-ms-examples

* suppress _type error, fix 'OBJECT_ADDITIONAL_PROPERTIES'  error, add … (#2)

Suppress _type error, fix 'OBJECT_ADDITIONAL_PROPERTIES'  error, add required parameters

* Update description and Remove some internal properties (#3)

Update description and Remove some internal properties
  • Loading branch information
xiaojinghe authored and alvadb committed Dec 11, 2017
1 parent 36731b0 commit 4794347
Show file tree
Hide file tree
Showing 5 changed files with 1,500 additions and 0 deletions.
41 changes: 41 additions & 0 deletions specification/cognitiveservices/data-plane/NewsSearch/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Cognitive Services News Search SDK

> see https://aka.ms/autorest
Configuration for generating News Search SDK.

The current release is `release_1_0`.

``` yaml

tag: release_1_0
add-credentials: true
openapi-type: data-plane
```
# Releases
### Release 1.0
These settings apply only when `--tag=release_1_0` is specified on the command line.

``` yaml $(tag) == 'release_1_0'
input-file: v1.0/NewsSearch.json
```

## Suppressions

Suppressing errors due to API design:
``` yaml
directive:
- suppress: R3016
reason: _type is a polymorphic discriminator that can't be changed.
```

## CSharp Settings
These settings apply only when `--csharp` is specified on the command line.
``` yaml $(csharp)
csharp:
namespace: Microsoft.Azure.CognitiveServices.Search.NewsSearch
output-folder: $(csharp-sdks-folder)/CognitiveServices/dataPlane/Search/Search/Generated/NewsSearch
sync-methods: none
```

Loading

0 comments on commit 4794347

Please sign in to comment.