Skip to content

Instantly share code, notes, and snippets.

@muojp
Created June 9, 2016 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muojp/73bc86593de2d6aa4b1e9ccf1283c78e to your computer and use it in GitHub Desktop.
Save muojp/73bc86593de2d6aa4b1e9ccf1283c78e to your computer and use it in GitHub Desktop.
{
paths: {
+ /orders/{order_id}/subscribers: {
+ get: {
+ tags: [
+ "Order"
+ ]
+ summary: "List ordered subscribers."
+ description: "発注したSIMのSubscriber一覧を返します。"
+ operationId: "listOrderedSubscribers"
+ consumes: [
+ "application/json"
+ ]
+ produces: [
+ "application/json;charset=UTF-8"
+ ]
+ parameters: [
+ {
+ name: "order_id"
+ in: "path"
+ description: "order_id"
+ required: true
+ type: "string"
+ }
+ {
+ name: "last_evaluated_key"
+ in: "query"
+ description: "直前のリクエストで取得したうち、最後のSubscriberの製造番号。レスポンスヘッダのX-Soracom-Next-Keyに含まれる値"
+ required: false
+ type: "string"
+ }
+ {
+ name: "limit"
+ in: "query"
+ description: "レスポンスに含まれる最大Subscriber数"
+ required: false
+ type: "integer"
+ format: "int32"
+ }
+ ]
+ responses: {
+ 200: {
+ description: "OK"
+ schema: {
+ $ref: "#/definitions/ListOrderedSubscriberResponse"
+ }
+ }
+ }
+ }
+ }
}
definitions: {
+ ListOrderedSubscriberResponse: {
+ properties: {
+ orderedSubscriberList: {
+ type: "array"
+ description: "発注したSIMのリスト"
+ items: {
+ $ref: "#/definitions/OrderedSubscriber"
+ }
+ }
+ }
+ }
+ OrderedSubscriber: {
+ properties: {
+ imsi: {
+ type: "string"
+ description: "IMSI"
+ }
+ msisdn: {
+ type: "string"
+ description: "MSISDN"
+ }
+ serialNumber: {
+ type: "string"
+ description: "serialNumber"
+ }
+ }
+ }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment