Skip to content

Commit

Permalink
Add list API for Annotation Service (#23)
Browse files Browse the repository at this point in the history
* Add ga contract for Content Safety

* Update examples for 2023-10-01

* Resolve ModelValidation SpellCheck and Avocado

* Fix typo

* Fix minor errors in example and readme

* Fix example

* remove the 0430 content

* update readme

* re-format markdowm

* Fix example

* init content safety 2023-10-15-preview

* init content safety 2023-10-15-previwe

* update

* format example

* update read me file

* update

* update

* update contract

* update

* update

* update threshold

* update new contract by add judgement kind enum

* update description

* u

* update

* updat length

* update

* update

* update description for accept severity threshodl

* update

* merge with acs-ga

* Add snippy contract

* remove 8 sev levels for image

* update contentsafety.json

* Update snippy path

* add type spec for jailbreak

* compiled

* update

* update

* refine

* update

* make 0,1,2,3,4,5,6,7 to 0, 1, 2, 3, ... and add comman in last enum value

* update path

* Update NL Snippy path

* Resolve conflict

* Update protected material API

* update project sample

* Change path name

* Update protect material contract

* update jailbreak

* Remove project related contract (#20)

* Remove project related things

* Remove accepted

* Remove examples

* Add list category APIs

---------

Co-authored-by: FAREAST\suxi <suxi@microsoft.com>
Co-authored-by: Lixiang Liu <lixiangliu@microsoft.com>
Co-authored-by: Lixiang Liu <liulixiang1988@gmail.com>
Co-authored-by: zhaiyutong <mo.huainian@163.com>
  • Loading branch information
5 people authored Oct 27, 2023
1 parent fb39f1b commit 138febd
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
2 changes: 2 additions & 0 deletions specification/cognitiveservices/ContentSafety/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ interface TextCategoryCustomization {
getTextCustomizedCategory is CategoryOps.ResourceRead<TextCustomizedCategory>;

deleteTextCustomizedCategory is CategoryOps.ResourceDelete<TextCustomizedCategory>;

listTextCustomizedCategory is CategoryOps.ResourceList<TextCustomizedCategory>;
}

@added(Versions.v2023_10_30_Preview)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,40 @@
}
}
},
"/text/categories": {
"get": {
"operationId": "TextCategoryCustomization_ListTextCustomizedCategory",
"description": "Resource list operation template.",
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/PagedTextCustomizedCategory"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/text/categories/{categoryName}": {
"get": {
"operationId": "TextCategoryCustomization_GetTextCustomizedCategory",
Expand Down Expand Up @@ -2363,6 +2397,28 @@
"value"
]
},
"PagedTextCustomizedCategory": {
"type": "object",
"description": "Paged collection of TextCustomizedCategory items",
"properties": {
"value": {
"type": "array",
"description": "The TextCustomizedCategory items on this page",
"items": {
"$ref": "#/definitions/TextCustomizedCategory"
},
"x-ms-identifiers": []
},
"nextLink": {
"type": "string",
"format": "uri",
"description": "The link to the next page of items"
}
},
"required": [
"value"
]
},
"PagedTextIncident": {
"type": "object",
"description": "Paged collection of TextIncident items",
Expand Down

0 comments on commit 138febd

Please sign in to comment.