Skip to content

Commit

Permalink
Merge "REST: Mark CreateProperty route production ready"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Nov 5, 2024
2 parents bb95c97 + 6cbe0a6 commit 5ee85b3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
5 changes: 5 additions & 0 deletions extension-repo.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@
"method": "GET",
"factory": "Wikibase\\Repo\\RestApi\\RouteHandlers\\GetPropertyRouteHandler::factory"
},
{
"path": "/wikibase/v1/entities/properties",
"method": "POST",
"factory": "Wikibase\\Repo\\RestApi\\RouteHandlers\\CreatePropertyRouteHandler::factory"
},
{
"path": "/wikibase/v1/entities/properties/{property_id}",
"method": "PATCH",
Expand Down
5 changes: 5 additions & 0 deletions repo/rest-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG {#wb_rest_api_changelog}


## Version 1.1

* Added endpoint `POST /wikibase/v1/entities/properties` ([T342992](https://phabricator.wikimedia.org/T342992))

## Version 1.0

* Wikibase REST API v1 released
Expand Down
8 changes: 1 addition & 7 deletions repo/rest-api/routes.dev.json
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
[
{
"path": "/wikibase/v1/entities/properties",
"method": "POST",
"factory": "Wikibase\\Repo\\RestApi\\RouteHandlers\\CreatePropertyRouteHandler::factory"
}
]
[]
2 changes: 1 addition & 1 deletion repo/rest-api/specs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.1.0",
"info": {
"title": "Wikibase REST API",
"version": "1.0",
"version": "1.1",
"description": "OpenAPI definition of Wikibase REST API",
"contact": {
"name": "Wikimedia Deutschland - Wikibase Product Platform Team",
Expand Down
3 changes: 1 addition & 2 deletions repo/rest-api/specs/resources/properties/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"post": {
"operationId": "addProperty",
"tags": [ "properties" ],
"summary": "[WIP] Create a Wikibase Property",
"description": "This endpoint is currently in development and is not recommended for production use",
"summary": "Create a Wikibase Property",
"parameters": [
{ "$ref": "../../global/parameters.json#/Authorization" }
],
Expand Down
5 changes: 2 additions & 3 deletions repo/rest-api/src/RouteHandlers/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.1.0",
"info": {
"title": "Wikibase REST API",
"version": "1.0",
"version": "1.1",
"description": "OpenAPI definition of Wikibase REST API",
"contact": {
"name": "Wikimedia Deutschland - Wikibase Product Platform Team",
Expand Down Expand Up @@ -915,8 +915,7 @@
"tags": [
"properties"
],
"summary": "[WIP] Create a Wikibase Property",
"description": "This endpoint is currently in development and is not recommended for production use",
"summary": "Create a Wikibase Property",
"parameters": [
{
"$ref": "#/components/parameters/Authorization"
Expand Down

0 comments on commit 5ee85b3

Please sign in to comment.