Skip to content

Commit

Permalink
feat(specs): ingestion partial update method changed to patch (#1564)
Browse files Browse the repository at this point in the history
## 🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-1280

Ingestion partial updates will use `PATCH` instead of `PUT`.

### Changes included:

- `PUT` method changed to `PATCH` for partial updates.
  • Loading branch information
mehmetaligok authored May 25, 2023
1 parent ed1222f commit 635806c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion specs/ingestion/paths/authentications/authenticationID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ get:
'400':
$ref: '../../../common/responses/BadRequest.yml'

put:
patch:
tags:
- authentications
summary: Update a authentication.
Expand Down
2 changes: 1 addition & 1 deletion specs/ingestion/paths/destinations/destinationID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ get:
'400':
$ref: '../../../common/responses/BadRequest.yml'

put:
patch:
tags:
- destinations
summary: Update a destination.
Expand Down
2 changes: 1 addition & 1 deletion specs/ingestion/paths/sources/sourceID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ get:
'400':
$ref: '../../../common/responses/BadRequest.yml'

put:
patch:
tags:
- sources
summary: Update a source.
Expand Down
2 changes: 1 addition & 1 deletion specs/ingestion/paths/tasks/taskID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ get:
'400':
$ref: '../../../common/responses/BadRequest.yml'

put:
patch:
tags:
- tasks
summary: Update a task.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"request": {
"path": "/1/authentications/6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"method": "PUT",
"method": "PATCH",
"body": {
"name": "newName"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"request": {
"path": "/1/destinations/6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"method": "PUT",
"method": "PATCH",
"body": {
"name": "newName"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/CTS/methods/requests/ingestion/updateSource.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"request": {
"path": "/1/sources/6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"method": "PUT",
"method": "PATCH",
"body": {
"name": "newName"
}
Expand Down
2 changes: 1 addition & 1 deletion tests/CTS/methods/requests/ingestion/updateTask.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"request": {
"path": "/1/tasks/6c02aeb1-775e-418e-870b-1faccd4b2c0f",
"method": "PUT",
"method": "PATCH",
"body": {
"enabled": false
}
Expand Down

0 comments on commit 635806c

Please sign in to comment.