Skip to content

Commit d2604d6

Browse files
committed
REST: Move PATCH routes to routes.json
Now that the json-diff library has been security reviewed and approved, we can move the PATCH routes out of the "dev" file and consider them ready to be enabled. Change-Id: Ieb1106dda26f4def6a8f20dee57743cd66690385
1 parent f381b99 commit d2604d6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

repo/rest-api/routes.dev.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,5 @@
88
"path": "/wikibase/v0/entities/items/{item_id}/labels",
99
"method": "GET",
1010
"factory": "Wikibase\\Repo\\RestApi\\RouteHandlers\\GetItemLabelsRouteHandler::factory"
11-
},
12-
{
13-
"path": "/wikibase/v0/entities/items/{item_id}/statements/{statement_id}",
14-
"method": "PATCH",
15-
"factory": "Wikibase\\Repo\\RestApi\\RouteHandlers\\PatchItemStatementRouteHandler::factory"
16-
},
17-
{
18-
"path": "/wikibase/v0/statements/{statement_id}",
19-
"method": "PATCH",
20-
"factory": "Wikibase\\Repo\\RestApi\\RouteHandlers\\PatchStatementRouteHandler::factory"
2111
}
2212
]

repo/rest-api/routes.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,15 @@
4343
"path": "/wikibase/v0/statements/{statement_id}",
4444
"method": "DELETE",
4545
"factory": "Wikibase\\Repo\\RestApi\\RouteHandlers\\RemoveStatementRouteHandler::factory"
46+
},
47+
{
48+
"path": "/wikibase/v0/entities/items/{item_id}/statements/{statement_id}",
49+
"method": "PATCH",
50+
"factory": "Wikibase\\Repo\\RestApi\\RouteHandlers\\PatchItemStatementRouteHandler::factory"
51+
},
52+
{
53+
"path": "/wikibase/v0/statements/{statement_id}",
54+
"method": "PATCH",
55+
"factory": "Wikibase\\Repo\\RestApi\\RouteHandlers\\PatchStatementRouteHandler::factory"
4656
}
4757
]

0 commit comments

Comments
 (0)