Skip to content

Commit

Permalink
api: Remove body from Unclaim RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishnaIyer committed Jun 13, 2023
1 parent ac3625d commit e8f76f9
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 125 deletions.
2 changes: 1 addition & 1 deletion api/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2862,7 +2862,7 @@ and allows clients to claim end devices.
| Method Name | Method | Pattern | Body |
| ----------- | ------ | ------- | ---- |
| `Claim` | `POST` | `/api/v3/edcs/claim` | `*` |
| `Unclaim` | `DELETE` | `/api/v3/edcs/claim/{application_ids.application_id}/devices/{device_id}` | `*` |
| `Unclaim` | `DELETE` | `/api/v3/edcs/claim/{application_ids.application_id}/devices/{device_id}` | |
| `GetInfoByJoinEUI` | `POST` | `/api/v3/edcs/claim/info` | `*` |
| `GetClaimStatus` | `GET` | `/api/v3/edcs/claim/{application_ids.application_id}/devices/{device_id}` | |
| `AuthorizeApplication` | `POST` | `/api/v3/edcs/applications/{application_ids.application_id}/authorize` | `*` |
Expand Down
51 changes: 22 additions & 29 deletions api/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -7974,35 +7974,28 @@
"type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "object",
"properties": {
"application_ids": {
"type": "object"
},
"dev_eui": {
"type": "string",
"format": "string",
"example": "70B3D57ED000ABCD",
"description": "The LoRaWAN DevEUI."
},
"join_eui": {
"type": "string",
"format": "string",
"example": "70B3D57ED000ABCD",
"description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices)."
},
"dev_addr": {
"type": "string",
"format": "string",
"example": "2600ABCD",
"description": "The LoRaWAN DevAddr."
}
}
}
"name": "dev_eui",
"description": "The LoRaWAN DevEUI.",
"in": "query",
"required": false,
"type": "string",
"format": "string"
},
{
"name": "join_eui",
"description": "The LoRaWAN JoinEUI (AppEUI until LoRaWAN 1.0.3 end devices).",
"in": "query",
"required": false,
"type": "string",
"format": "string"
},
{
"name": "dev_addr",
"description": "The LoRaWAN DevAddr.",
"in": "query",
"required": false,
"type": "string",
"format": "string"
}
],
"tags": [
Expand Down
1 change: 0 additions & 1 deletion api/deviceclaimingserver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ service EndDeviceClaimingServer {
rpc Unclaim(EndDeviceIdentifiers) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/edcs/claim/{application_ids.application_id}/devices/{device_id}",
body: "*"
};
};

Expand Down
152 changes: 76 additions & 76 deletions pkg/ttnpb/deviceclaimingserver.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e8f76f9

Please sign in to comment.