Guest User

Untitled

a guest
Sep 16th, 2017
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "swagger" : "2.0",
  3.     "info" : {
  4.         "version" : "1.0",
  5.         "title" : "1.0",
  6.         "description" : "External interface API.",
  7.         "termsOfService" : "",
  8.         "contact" : {
  9.             "name" : "",
  10.             "email" : ""
  11.         }
  12.     },
  13.     "basePath" : "/",
  14.     "paths" : {
  15.         "/api/v1/entityB/{id}" : {
  16.             "get" : {
  17.                 "tags" : ["entityB"],
  18.                 "summary" : "Gets an entityB.",
  19.                 "operationId" : "ApiV1entityBByidGet",
  20.                 "consumes" : [],
  21.                 "produces" : ["text/plain", "application/json", "text/json"],
  22.                 "parameters" : [{
  23.                         "name" : "id",
  24.                         "in" : "path",
  25.                         "required" : true,
  26.                         "type" : "number",
  27.                         "format" : "double"
  28.                     }, {
  29.                         "name" : "argF",
  30.                         "in" : "query",
  31.                         "required" : false,
  32.                         "type" : "string"
  33.                     }
  34.                 ],
  35.                 "responses" : {
  36.                     "200" : {
  37.                         "description" : "The operation was successful",
  38.                         "schema" : {
  39.                             "$ref" : "#/definitions/GetentityBResponse"
  40.                         }
  41.                     }
  42.                 }
  43.             }
  44.         },
  45.         "/api/v1/entityB" : {
  46.             "post" : {
  47.                 "tags" : ["entityB"],
  48.                 "summary" : "Creates a new entityB.",
  49.                 "operationId" : "ApiV1entityBPost",
  50.                 "consumes" : ["application/json", "text/json", "application/json-patch+json"],
  51.                 "produces" : ["text/plain", "application/json", "text/json"],
  52.                 "parameters" : [{
  53.                         "name" : "request",
  54.                         "in" : "body",
  55.                         "required" : false,
  56.                         "schema" : {
  57.                             "$ref" : "#/definitions/BRequest"
  58.                         }
  59.                     }
  60.                 ],
  61.                 "responses" : {
  62.                     "200" : {
  63.                         "description" : "The operation was successful",
  64.                         "schema" : {
  65.                             "$ref" : "#/definitions/BResponse"
  66.                         }
  67.                     }
  68.                 }
  69.             },
  70.             "delete" : {
  71.                 "tags" : ["entityB"],
  72.                 "summary" : "Deletes an entityB.",
  73.                 "operationId" : "ApiV1entityBDelete",
  74.                 "consumes" : ["application/json", "text/json", "application/json-patch+json"],
  75.                 "produces" : [],
  76.                 "parameters" : [{
  77.                         "name" : "request",
  78.                         "in" : "body",
  79.                         "required" : false,
  80.                         "schema" : {
  81.                             "$ref" : "#/definitions/CRequest"
  82.                         }
  83.                     }
  84.                 ],
  85.                 "responses" : {
  86.                     "200" : {
  87.                         "description" : "The operation was successful"
  88.                     }
  89.                 }
  90.             }
  91.         },
  92.         "/api/v1/entityA/office/{id}/{argE}/{argA}/{argB}/{dupEnum}/{argC}/{argD}" : {
  93.             "get" : {
  94.                 "tags" : ["entityA"],
  95.                 "summary" : "Get entityA for an entity for a given time frame.",
  96.                 "operationId" : "XYZ",
  97.                 "consumes" : [],
  98.                 "produces" : ["text/plain", "application/json", "text/json"],
  99.                 "parameters" : [{
  100.                         "name" : "id",
  101.                         "in" : "path",
  102.                         "required" : true,
  103.                         "type" : "number",
  104.                         "format" : "double"
  105.                     }, {
  106.                         "name" : "argA",
  107.                         "in" : "path",
  108.                         "required" : true,
  109.                         "type" : "string",
  110.                         "format" : "date-time"
  111.                     }, {
  112.                         "name" : "argB",
  113.                         "in" : "path",
  114.                         "required" : true,
  115.                         "type" : "string",
  116.                         "format" : "date-time"
  117.                     }, {
  118.                         "name" : "dupEnum",
  119.                         "in" : "path",
  120.                         "required" : true,
  121.                         "type" : "string",
  122.                         "enum" : ["Chocolate", "Vanilla", "Mystery", "Mint", "RockyRoad", "CookiesNCream", "Neopolitan", "Bubblegum", "Coconut", "Strawberry", "Random"]
  123.                     }, {
  124.                         "name" : "argC",
  125.                         "in" : "path",
  126.                         "required" : true,
  127.                         "type" : "string",
  128.                         "enum" : ["Sprite"]
  129.                     }, {
  130.                         "name" : "argD",
  131.                         "in" : "path",
  132.                         "required" : true,
  133.                         "type" : "string",
  134.                         "enum" : ["Typical", "Coconut30", "Coconut45", "Coconut60"]
  135.                     }, {
  136.                         "name" : "argE",
  137.                         "in" : "path",
  138.                         "required" : true,
  139.                         "type" : "string"
  140.                     }
  141.                 ],
  142.                 "responses" : {
  143.                     "200" : {
  144.                         "description" : "The operation was successful",
  145.                         "schema" : {
  146.                             "$ref" : "#/definitions/entityAResponse"
  147.                         }
  148.                     }
  149.                 }
  150.             }
  151.         },
  152.         "/api/v1/entityA/appraiser/{id}/{argE}/{argA}/{argB}/{dupEnum}/{argC}/{argD}" : {
  153.             "get" : {
  154.                 "tags" : ["entityA"],
  155.                 "summary" : "Get entityA for an entity for a given time frame.",
  156.                 "operationId" : "XYZ2",
  157.                 "consumes" : [],
  158.                 "produces" : ["text/plain", "application/json", "text/json"],
  159.                 "parameters" : [{
  160.                         "name" : "id",
  161.                         "in" : "path",
  162.                         "required" : true,
  163.                         "type" : "number",
  164.                         "format" : "double"
  165.                     }, {
  166.                         "name" : "argE",
  167.                         "in" : "path",
  168.                         "required" : true,
  169.                         "type" : "string"
  170.                     }, {
  171.                         "name" : "argA",
  172.                         "in" : "path",
  173.                         "required" : true,
  174.                         "type" : "string",
  175.                         "format" : "date-time"
  176.                     }, {
  177.                         "name" : "argB",
  178.                         "in" : "path",
  179.                         "required" : true,
  180.                         "type" : "string",
  181.                         "format" : "date-time"
  182.                     }, {
  183.                         "name" : "dupEnum",
  184.                         "in" : "path",
  185.                         "required" : true,
  186.                         "type" : "string",
  187.                         "enum" : ["Chocolate", "Vanilla", "Mystery", "Mint", "RockyRoad", "CookiesNCream", "Neopolitan", "Bubblegum", "Coconut", "Strawberry", "Random"]
  188.                     }, {
  189.                         "name" : "argC",
  190.                         "in" : "path",
  191.                         "required" : true,
  192.                         "type" : "string",
  193.                         "enum" : ["Sprite"]
  194.                     }, {
  195.                         "name" : "argD",
  196.                         "in" : "path",
  197.                         "required" : true,
  198.                         "type" : "string",
  199.                         "enum" : ["Typical", "Coconut30", "Coconut45", "Coconut60"]
  200.                     }
  201.                 ],
  202.                 "responses" : {
  203.                     "200" : {
  204.                         "description" : "The operation was successful",
  205.                         "schema" : {
  206.                             "$ref" : "#/definitions/entityAResponse"
  207.                         }
  208.                     }
  209.                 }
  210.             }
  211.         },
  212.         "/api/v1/entityA/entityC/{id}/{argA}/{argB}" : {
  213.             "get" : {
  214.                 "tags" : ["entityA"],
  215.                 "summary" : "Get entityA for an entity for a given time frame.",
  216.                 "operationId" : "ApiV1entityAentityCByIdByStartdateByEnddateGet",
  217.                 "consumes" : [],
  218.                 "produces" : ["text/plain", "application/json", "text/json"],
  219.                 "parameters" : [{
  220.                         "name" : "id",
  221.                         "in" : "path",
  222.                         "required" : true,
  223.                         "type" : "number",
  224.                         "format" : "double"
  225.                     }, {
  226.                         "name" : "argA",
  227.                         "in" : "path",
  228.                         "required" : true,
  229.                         "type" : "string",
  230.                         "format" : "date-time"
  231.                     }, {
  232.                         "name" : "argB",
  233.                         "in" : "path",
  234.                         "required" : true,
  235.                         "type" : "string",
  236.                         "format" : "date-time"
  237.                     }, {
  238.                         "name" : "argE",
  239.                         "in" : "query",
  240.                         "required" : false,
  241.                         "type" : "string"
  242.                     }, {
  243.                         "name" : "dupEnum",
  244.                         "in" : "query",
  245.                         "required" : false,
  246.                         "type" : "string",
  247.                         "enum" : ["Chocolate", "Vanilla", "Mystery", "Mint", "RockyRoad", "CookiesNCream", "Neopolitan", "Bubblegum", "Coconut", "Strawberry", "Random"]
  248.                     }, {
  249.                         "name" : "argD",
  250.                         "in" : "query",
  251.                         "required" : false,
  252.                         "type" : "string",
  253.                         "enum" : ["Typical", "Coconut30", "Coconut45", "Coconut60"]
  254.                     }
  255.                 ],
  256.                 "responses" : {
  257.                     "200" : {
  258.                         "description" : "The operation was successful",
  259.                         "schema" : {
  260.                             "$ref" : "#/definitions/AResponse"
  261.                         }
  262.                     }
  263.                 }
  264.             }
  265.         }
  266.     },
  267.     "definitions" : {
  268.         "GetentityBResponse" : {
  269.             "type" : "object",
  270.             "properties" : {
  271.                 "entityBId" : {
  272.                     "format" : "int32",
  273.                     "type" : "integer"
  274.                 },
  275.                 "status" : {
  276.                     "type" : "string"
  277.                 },
  278.                 "argJ" : {
  279.                     "format" : "date-time",
  280.                     "type" : "string"
  281.                 }
  282.             }
  283.         },
  284.         "BRequest" : {
  285.             "type" : "object",
  286.             "properties" : {
  287.                 "claim" : {
  288.                     "$ref" : "#/definitions/TypeB"
  289.                 },
  290.                 "entityB" : {
  291.                     "$ref" : "#/definitions/entityBInfo"
  292.                 },
  293.                 "TypeA" : {
  294.                     "$ref" : "#/definitions/TypeAInfo"
  295.                 },
  296.                 "owner" : {
  297.                     "$ref" : "#/definitions/TypeC"
  298.                 },
  299.                 "resourceAddressPreference" : {
  300.                     "$ref" : "#/definitions/TypeD"
  301.                 },
  302.                 "argL" : {
  303.                     "type" : "string"
  304.                 }
  305.             }
  306.         },
  307.         "TypeB" : {
  308.             "type" : "object",
  309.             "properties" : {
  310.                 "id" : {
  311.                     "format" : "double",
  312.                     "type" : "number"
  313.                 },
  314.                 "argM" : {
  315.                     "format" : "double",
  316.                     "type" : "number"
  317.                 },
  318.                 "argN" : {
  319.                     "type" : "string"
  320.                 },
  321.                 "argO" : {
  322.                     "format" : "date-time",
  323.                     "type" : "string"
  324.                 },
  325.                 "argP" : {
  326.                     "format" : "int32",
  327.                     "type" : "integer"
  328.                 },
  329.                 "argR" : {
  330.                     "format" : "int32",
  331.                     "type" : "integer"
  332.                 },
  333.                 "dupEnum" : {
  334.                     "enum" : ["Chocolate", "Vanilla", "Mystery", "Mint", "RockyRoad", "CookiesNCream", "Neopolitan", "Bubblegum", "Coconut", "Strawberry", "Random"],
  335.                     "type" : "string"
  336.                 },
  337.                 "argS" : {
  338.                     "type" : "string"
  339.                 },
  340.                 "argT" : {
  341.                     "type" : "boolean"
  342.                 }
  343.             }
  344.         },
  345.         "entityBInfo" : {
  346.             "type" : "object",
  347.             "properties" : {
  348.                 "arg1" : {
  349.                     "format" : "int32",
  350.                     "type" : "integer"
  351.                 },
  352.                 "arg2" : {
  353.                     "format" : "date-time",
  354.                     "type" : "string"
  355.                 },
  356.                 "arg3" : {
  357.                     "type" : "string"
  358.                 },
  359.                 "entityBDate" : {
  360.                     "format" : "date-time",
  361.                     "type" : "string"
  362.                 },
  363.                 "arg4" : {
  364.                     "format" : "date-time",
  365.                     "type" : "string"
  366.                 },
  367.                 "argJ" : {
  368.                     "format" : "date-time",
  369.                     "type" : "string"
  370.                 },
  371.                 "entityBWindowType" : {
  372.                     "enum" : ["Apple", "Banana", "Cherry"],
  373.                     "type" : "string"
  374.                 },
  375.                 "arg5" : {
  376.                     "format" : "double",
  377.                     "type" : "number"
  378.                 },
  379.                 "arg6" : {
  380.                     "type" : "boolean"
  381.                 },
  382.                 "arg7" : {
  383.                     "enum" : ["ClaimsManager"],
  384.                     "type" : "string"
  385.                 },
  386.                 "arg8" : {
  387.                     "type" : "string"
  388.                 },
  389.                 "arg9" : {
  390.                     "type" : "string"
  391.                 }
  392.             }
  393.         },
  394.         "TypeAInfo" : {
  395.             "type" : "object",
  396.             "properties" : {
  397.                 "arg31" : {
  398.                     "type" : "string"
  399.                 },
  400.                 "TypeADescription" : {
  401.                     "type" : "string"
  402.                 },
  403.                 "TypeALocationDescription" : {
  404.                     "type" : "string"
  405.                 },
  406.                 "TypeALocationAddressLine1" : {
  407.                     "type" : "string"
  408.                 },
  409.                 "TypeALocationCity" : {
  410.                     "type" : "string"
  411.                 },
  412.                 "state" : {
  413.                     "type" : "string"
  414.                 },
  415.                 "postalCode" : {
  416.                     "type" : "string"
  417.                 },
  418.                 "longitude" : {
  419.                     "type" : "string"
  420.                 },
  421.                 "TypeALocationLatitude" : {
  422.                     "type" : "string"
  423.                 }
  424.             }
  425.         },
  426.         "TypeC" : {
  427.             "type" : "object",
  428.             "properties" : {
  429.                 "lastName" : {
  430.                     "type" : "string"
  431.                 },
  432.                 "firstName" : {
  433.                     "type" : "string"
  434.                 },
  435.                 "phone" : {
  436.                     "type" : "string"
  437.                 },
  438.                 "email" : {
  439.                     "type" : "string"
  440.                 }
  441.             }
  442.         },
  443.         "TypeD" : {
  444.             "type" : "object",
  445.             "properties" : {
  446.                 "required" : {
  447.                     "type" : "array",
  448.                     "items" : {
  449.                         "format" : "int64",
  450.                         "type" : "integer"
  451.                     }
  452.                 },
  453.                 "preferred" : {
  454.                     "type" : "array",
  455.                     "items" : {
  456.                         "format" : "int64",
  457.                         "type" : "integer"
  458.                     }
  459.                 },
  460.                 "blacklisted" : {
  461.                     "type" : "array",
  462.                     "items" : {
  463.                         "format" : "int64",
  464.                         "type" : "integer"
  465.                     }
  466.                 }
  467.             }
  468.         },
  469.         "BResponse" : {
  470.             "type" : "object",
  471.             "properties" : {
  472.                 "entityBId" : {
  473.                     "format" : "int32",
  474.                     "type" : "integer"
  475.                 },
  476.                 "arg1" : {
  477.                     "format" : "int32",
  478.                     "type" : "integer"
  479.                 }
  480.             }
  481.         },
  482.         "CRequest" : {
  483.             "type" : "object",
  484.             "properties" : {
  485.                 "id" : {
  486.                     "format" : "double",
  487.                     "type" : "number"
  488.                 },
  489.                 "entityBtatus" : {
  490.                     "$ref" : "#/definitions/entityBtatus"
  491.                 },
  492.                 "argL" : {
  493.                     "type" : "string"
  494.                 }
  495.             }
  496.         },
  497.         "entityBtatus" : {
  498.             "type" : "object",
  499.             "properties" : {
  500.                 "entityBId" : {
  501.                     "format" : "int32",
  502.                     "type" : "integer"
  503.                 },
  504.                 "status" : {
  505.                     "type" : "string"
  506.                 },
  507.                 "argJ" : {
  508.                     "format" : "date-time",
  509.                     "type" : "string"
  510.                 }
  511.             }
  512.         },
  513.         "entityAResponse" : {
  514.             "type" : "object",
  515.             "properties" : {
  516.                 "activityarg1" : {
  517.                     "format" : "int32",
  518.                     "type" : "integer"
  519.                 },
  520.                 "entityA" : {
  521.                     "type" : "array",
  522.                     "items" : {
  523.                         "$ref" : "#/definitions/entityA"
  524.                     }
  525.                 }
  526.             }
  527.         },
  528.         "entityA" : {
  529.             "type" : "object",
  530.             "properties" : {
  531.                 "date" : {
  532.                     "format" : "date-time",
  533.                     "type" : "string"
  534.                 },
  535.                 "arg21" : {
  536.                     "type" : "string"
  537.                 },
  538.                 "arg22" : {
  539.                     "type" : "string"
  540.                 },
  541.                 "arg23" : {
  542.                     "format" : "int32",
  543.                     "type" : "integer"
  544.                 },
  545.                 "arg24" : {
  546.                     "format" : "int32",
  547.                     "type" : "integer"
  548.                 }
  549.             }
  550.         },
  551.         "AResponse" : {
  552.             "type" : "object",
  553.             "properties" : {
  554.                 "arg11" : {
  555.                     "type" : "string"
  556.                 },
  557.                 "arg12" : {
  558.                     "type" : "string"
  559.                 },
  560.                 "date" : {
  561.                     "format" : "date-time",
  562.                     "type" : "string"
  563.                 },
  564.                 "arg13" : {
  565.                     "type" : "string"
  566.                 }
  567.             }
  568.         }
  569.     },
  570.     "securityDefinitions" : {}
  571. }
Add Comment
Please, Sign In to add comment