Skip to content

Commit

Permalink
chore: removed operation which was not following operationId constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla committed Oct 4, 2023
1 parent b3b510a commit 7f6abd0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 322 deletions.
52 changes: 0 additions & 52 deletions spec/json/twilio_lookups_bulk.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,58 +21,6 @@
}
],
"paths": {
"/v2/batch/query": {
"post": {
"summary": "In Request Bulk",
"operationId": "post-bulkLookup",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "LookupResponse",
"properties": {
"phone_numbers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LookupResponseWithCorId"
}
}
}
}
}
}
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "LookupRequest",
"properties": {
"phone_numbers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/LookupRequestWithCorId"
}
}
}
}
}
}
},
"description": "Discussions made regarding how to help the customer to correlation request and response objects:\n- Respecting the natural order (requests vs. response)\n- Using phone numbers as unique key\n- Adding a correlation_id key",
"security": [
{
"accountSid_authToken": []
}
],
"parameters": []
}
}
},
"components": {
"schemas": {
Expand Down
146 changes: 1 addition & 145 deletions spec/json/twilio_messaging_bulk_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,90 +166,7 @@
"in": "path",
"required": true
}
],
"get": {
"description": "Get details of an existing Broadcast",
"operationId": "GetBroadcastByBroadcastSid",
"responses": {
"200": {
"description": "Broadcast Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/messaging.v1.Broadcast"
},
"examples": {}
}
}
},
"404": {
"description": "Broadcast Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/messaging.v1.Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/messaging.v1.Error"
}
}
}
}
},
"security": [
{
"accountSid_authToken": []
}
]
},
"post": {
"description": "Cancel an existing Broadcast",
"operationId": "CancelBroadcastByBroadcastSid",
"responses": {
"202": {
"description": "Accepted",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/messaging.v1.Broadcast"
}
}
}
},
"404": {
"description": "Broadcast Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/messaging.v1.Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/messaging.v1.Error"
}
}
}
}
},
"security": [
{
"accountSid_authToken": []
}
]
}
]
},
"/v1/Broadcasts": {
"post": {
Expand Down Expand Up @@ -313,67 +230,6 @@
"accountSid_authToken": []
}
]
},
"get": {
"description": "Get all Broadcasts for a given AccountSID",
"operationId": "GetAllBroadcastsByAccountSid",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"broadcasts": {
"type": "array",
"description": "List of Broadcasts retrieved",
"items": {
"$ref": "#/components/schemas/messaging.v1.Broadcast"
}
}
}
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/messaging.v1.Error"
}
}
}
}
},
"parameters": [
{
"schema": {
"type": "integer",
"minimum": 0,
"maximum": 25,
"default": 25
},
"in": "query",
"name": "PageSize",
"description": "Number of Broadcasts retrieved per page"
},
{
"schema": {
"type": "string"
},
"in": "query",
"name": "PageToken",
"description": "Cursor pointing to a specific page in the list"
}
],
"security": [
{
"accountSid_authToken": []
}
]
}
}
},
Expand Down
38 changes: 0 additions & 38 deletions spec/yaml/twilio_lookups_bulk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,45 +21,7 @@ info:
servers:
- url: https://lookups.twilio.com
paths:
/v2/batch/query:
post:
summary: In Request Bulk
operationId: post-bulkLookup
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
title: LookupResponse
properties:
phone_numbers:
type: array
items:
$ref: '#/components/schemas/LookupResponseWithCorId'
requestBody:
content:
application/json:
schema:
type: object
title: LookupRequest
properties:
phone_numbers:
type: array
items:
$ref: '#/components/schemas/LookupRequestWithCorId'
description: 'Discussions made regarding how to help the customer to correlation
request and response objects:

- Respecting the natural order (requests vs. response)
- Using phone numbers as unique key
- Adding a correlation_id key'
security:
- accountSid_authToken: []
parameters: []
components:
schemas:
LookupRequest:
Expand Down
87 changes: 0 additions & 87 deletions spec/yaml/twilio_messaging_bulk_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,55 +188,6 @@ paths:
description: Id of an existing Broadcast.
in: path
required: true
get:
description: Get details of an existing Broadcast
operationId: GetBroadcastByBroadcastSid
responses:
'200':
description: Broadcast Found
content:
application/json:
schema:
$ref: '#/components/schemas/messaging.v1.Broadcast'
examples: {}
'404':
description: Broadcast Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/messaging.v1.Error'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/messaging.v1.Error'
security:
- accountSid_authToken: []
post:
description: Cancel an existing Broadcast
operationId: CancelBroadcastByBroadcastSid
responses:
'202':
description: Accepted
content:
application/json:
schema:
$ref: '#/components/schemas/messaging.v1.Broadcast'
'404':
description: Broadcast Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/messaging.v1.Error'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/messaging.v1.Error'
security:
- accountSid_authToken: []
/v1/Broadcasts:
post:
description: Create a new Broadcast
Expand Down Expand Up @@ -275,44 +226,6 @@ paths:
description: Idempotency key provided by the client
security:
- accountSid_authToken: []
get:
description: Get all Broadcasts for a given AccountSID
operationId: GetAllBroadcastsByAccountSid
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
broadcasts:
type: array
description: List of Broadcasts retrieved
items:
$ref: '#/components/schemas/messaging.v1.Broadcast'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/messaging.v1.Error'
parameters:
- schema:
type: integer
minimum: 0
maximum: 25
default: 25
in: query
name: PageSize
description: Number of Broadcasts retrieved per page
- schema:
type: string
in: query
name: PageToken
description: Cursor pointing to a specific page in the list
security:
- accountSid_authToken: []
components:
schemas:
messaging.v1.Message:
Expand Down

0 comments on commit 7f6abd0

Please sign in to comment.