swagger.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. {
  2. "x-generator": "NSwag v13.15.5.0 (NJsonSchema v10.6.6.0 (Newtonsoft.Json v12.0.0.0))",
  3. "swagger": "2.0",
  4. "info": {
  5. "title": "My Title",
  6. "version": "1.0.0"
  7. },
  8. "host": "localhost:7001",
  9. "schemes": [
  10. "http"
  11. ],
  12. "consumes": [
  13. "application/json-patch+json",
  14. "application/json",
  15. "text/json",
  16. "application/*+json"
  17. ],
  18. "produces": [
  19. "text/plain",
  20. "application/json",
  21. "text/json"
  22. ],
  23. "paths": {
  24. "/api/_17TrackingWebhook": {
  25. "post": {
  26. "tags": [
  27. "_17TrackingWebhook"
  28. ],
  29. "operationId": "_17TrackingWebhook_Post",
  30. "parameters": [
  31. {
  32. "name": "hook",
  33. "in": "body",
  34. "required": true,
  35. "schema": {
  36. "$ref": "#/definitions/_17TrackingWebhook"
  37. },
  38. "x-nullable": false
  39. }
  40. ],
  41. "responses": {
  42. "200": {
  43. "x-nullable": false,
  44. "description": "",
  45. "schema": {
  46. "$ref": "#/definitions/ApiJsonModel"
  47. }
  48. }
  49. }
  50. }
  51. },
  52. "/api/_17TrackingConvert": {
  53. "post": {
  54. "tags": [
  55. "_17TrackingConvert"
  56. ],
  57. "operationId": "_17TrackingConvert_Post",
  58. "parameters": [
  59. {
  60. "name": "hook",
  61. "in": "body",
  62. "required": true,
  63. "schema": {
  64. "$ref": "#/definitions/_17TrackingMQData"
  65. },
  66. "x-nullable": false
  67. }
  68. ],
  69. "responses": {
  70. "200": {
  71. "x-nullable": false,
  72. "description": "",
  73. "schema": {
  74. "$ref": "#/definitions/ApiJsonModelOfPostTrackingRequest"
  75. }
  76. }
  77. }
  78. }
  79. },
  80. "/api/Tracking": {
  81. "post": {
  82. "tags": [
  83. "Tracking"
  84. ],
  85. "operationId": "Tracking_Post",
  86. "parameters": [
  87. {
  88. "name": "postTrackingRequest",
  89. "in": "body",
  90. "required": true,
  91. "schema": {
  92. "type": "array",
  93. "items": {
  94. "$ref": "#/definitions/PostTrackingRequest"
  95. }
  96. },
  97. "x-nullable": false
  98. }
  99. ],
  100. "responses": {
  101. "200": {
  102. "x-nullable": false,
  103. "description": "",
  104. "schema": {
  105. "$ref": "#/definitions/ApiJsonModel"
  106. }
  107. }
  108. }
  109. }
  110. },
  111. "/api/TrackingSetNode": {
  112. "post": {
  113. "tags": [
  114. "TrackingSetNode"
  115. ],
  116. "operationId": "TrackingSetNode_Post",
  117. "parameters": [
  118. {
  119. "name": "postTrackingRequest",
  120. "in": "body",
  121. "required": true,
  122. "schema": {
  123. "$ref": "#/definitions/PostTrackingRequest"
  124. },
  125. "x-nullable": false
  126. }
  127. ],
  128. "responses": {
  129. "200": {
  130. "x-nullable": false,
  131. "description": "",
  132. "schema": {
  133. "$ref": "#/definitions/ApiJsonModelOfPostTrackingRequest"
  134. }
  135. }
  136. }
  137. }
  138. }
  139. },
  140. "definitions": {
  141. "ApiJsonModel": {
  142. "allOf": [
  143. {
  144. "$ref": "#/definitions/ApiJsonModelOfObject"
  145. },
  146. {
  147. "type": "object",
  148. "required": [
  149. "code",
  150. "success"
  151. ],
  152. "properties": {
  153. "code": {
  154. "$ref": "#/definitions/HttpStatusCode"
  155. },
  156. "success": {
  157. "type": "boolean"
  158. },
  159. "error": {
  160. "type": "string"
  161. },
  162. "message": {
  163. "type": "string"
  164. },
  165. "data": {}
  166. }
  167. }
  168. ]
  169. },
  170. "HttpStatusCode": {
  171. "type": "integer",
  172. "description": "Contains the values of status codes defined for HTTP.",
  173. "x-enumNames": [
  174. "Continue",
  175. "SwitchingProtocols",
  176. "Processing",
  177. "EarlyHints",
  178. "OK",
  179. "Created",
  180. "Accepted",
  181. "NonAuthoritativeInformation",
  182. "NoContent",
  183. "ResetContent",
  184. "PartialContent",
  185. "MultiStatus",
  186. "AlreadyReported",
  187. "IMUsed",
  188. "MultipleChoices",
  189. "Ambiguous",
  190. "MovedPermanently",
  191. "Moved",
  192. "Found",
  193. "Redirect",
  194. "SeeOther",
  195. "RedirectMethod",
  196. "NotModified",
  197. "UseProxy",
  198. "Unused",
  199. "TemporaryRedirect",
  200. "RedirectKeepVerb",
  201. "PermanentRedirect",
  202. "BadRequest",
  203. "Unauthorized",
  204. "PaymentRequired",
  205. "Forbidden",
  206. "NotFound",
  207. "MethodNotAllowed",
  208. "NotAcceptable",
  209. "ProxyAuthenticationRequired",
  210. "RequestTimeout",
  211. "Conflict",
  212. "Gone",
  213. "LengthRequired",
  214. "PreconditionFailed",
  215. "RequestEntityTooLarge",
  216. "RequestUriTooLong",
  217. "UnsupportedMediaType",
  218. "RequestedRangeNotSatisfiable",
  219. "ExpectationFailed",
  220. "MisdirectedRequest",
  221. "UnprocessableEntity",
  222. "Locked",
  223. "FailedDependency",
  224. "UpgradeRequired",
  225. "PreconditionRequired",
  226. "TooManyRequests",
  227. "RequestHeaderFieldsTooLarge",
  228. "UnavailableForLegalReasons",
  229. "InternalServerError",
  230. "NotImplemented",
  231. "BadGateway",
  232. "ServiceUnavailable",
  233. "GatewayTimeout",
  234. "HttpVersionNotSupported",
  235. "VariantAlsoNegotiates",
  236. "InsufficientStorage",
  237. "LoopDetected",
  238. "NotExtended",
  239. "NetworkAuthenticationRequired"
  240. ],
  241. "enum": [
  242. 100,
  243. 101,
  244. 102,
  245. 103,
  246. 200,
  247. 201,
  248. 202,
  249. 203,
  250. 204,
  251. 205,
  252. 206,
  253. 207,
  254. 208,
  255. 226,
  256. 300,
  257. 300,
  258. 301,
  259. 301,
  260. 302,
  261. 302,
  262. 303,
  263. 303,
  264. 304,
  265. 305,
  266. 306,
  267. 307,
  268. 307,
  269. 308,
  270. 400,
  271. 401,
  272. 402,
  273. 403,
  274. 404,
  275. 405,
  276. 406,
  277. 407,
  278. 408,
  279. 409,
  280. 410,
  281. 411,
  282. 412,
  283. 413,
  284. 414,
  285. 415,
  286. 416,
  287. 417,
  288. 421,
  289. 422,
  290. 423,
  291. 424,
  292. 426,
  293. 428,
  294. 429,
  295. 431,
  296. 451,
  297. 500,
  298. 501,
  299. 502,
  300. 503,
  301. 504,
  302. 505,
  303. 506,
  304. 507,
  305. 508,
  306. 510,
  307. 511
  308. ]
  309. },
  310. "ApiJsonModelOfObject": {
  311. "type": "object",
  312. "required": [
  313. "code",
  314. "success"
  315. ],
  316. "properties": {
  317. "code": {
  318. "$ref": "#/definitions/HttpStatusCode"
  319. },
  320. "success": {
  321. "type": "boolean"
  322. },
  323. "error": {
  324. "type": "string"
  325. },
  326. "message": {
  327. "type": "string"
  328. },
  329. "data": {}
  330. }
  331. },
  332. "_17TrackingWebhook": {
  333. "type": "object",
  334. "properties": {
  335. "sign": {
  336. "type": "string"
  337. },
  338. "event": {
  339. "type": "string"
  340. },
  341. "data": {}
  342. }
  343. },
  344. "ApiJsonModelOfPostTrackingRequest": {
  345. "type": "object",
  346. "required": [
  347. "code",
  348. "success"
  349. ],
  350. "properties": {
  351. "code": {
  352. "$ref": "#/definitions/HttpStatusCode"
  353. },
  354. "success": {
  355. "type": "boolean"
  356. },
  357. "error": {
  358. "type": "string"
  359. },
  360. "message": {
  361. "type": "string"
  362. },
  363. "data": {
  364. "$ref": "#/definitions/PostTrackingRequest"
  365. }
  366. }
  367. },
  368. "PostTrackingRequest": {
  369. "type": "object",
  370. "required": [
  371. "LastAlterTime",
  372. "PreInternetAccessDay",
  373. "SendFialEmail"
  374. ],
  375. "properties": {
  376. "TrackingNumber": {
  377. "type": "string"
  378. },
  379. "List": {
  380. "type": "array",
  381. "items": {
  382. "$ref": "#/definitions/PostTrackingRequestItem"
  383. }
  384. },
  385. "Status": {
  386. "type": "string"
  387. },
  388. "LastAlterTime": {
  389. "type": "string",
  390. "format": "date-time"
  391. },
  392. "FailCNMessage": {
  393. "type": "string"
  394. },
  395. "FailMessage": {
  396. "type": "string"
  397. },
  398. "FailTime": {
  399. "type": "string",
  400. "format": "date-time"
  401. },
  402. "LastGetTime": {
  403. "type": "string",
  404. "format": "date-time"
  405. },
  406. "LastMessage": {
  407. "type": "string"
  408. },
  409. "OnlineDay": {
  410. "type": "integer",
  411. "format": "int32"
  412. },
  413. "OnlineTime": {
  414. "type": "string",
  415. "format": "date-time"
  416. },
  417. "PreInternetAccessDay": {
  418. "type": "integer",
  419. "format": "int32"
  420. },
  421. "PreInternetAccessTime": {
  422. "type": "string",
  423. "format": "date-time"
  424. },
  425. "SendFialEmail": {
  426. "type": "integer",
  427. "format": "int32"
  428. },
  429. "SignDay": {
  430. "type": "integer",
  431. "format": "int32"
  432. },
  433. "SignTime": {
  434. "type": "string",
  435. "format": "date-time"
  436. },
  437. "StrStatus": {
  438. "type": "string"
  439. },
  440. "TargetTime": {
  441. "type": "string",
  442. "format": "date-time"
  443. },
  444. "DeliveryTime": {
  445. "type": "string",
  446. "format": "date-time"
  447. },
  448. "Delivered": {
  449. "type": "string",
  450. "format": "date-time"
  451. },
  452. "Node": {
  453. "type": "string"
  454. }
  455. }
  456. },
  457. "PostTrackingRequestItem": {
  458. "type": "object",
  459. "required": [
  460. "TragetTime"
  461. ],
  462. "properties": {
  463. "TragetTime": {
  464. "type": "string",
  465. "format": "date-time"
  466. },
  467. "Location": {
  468. "type": "string"
  469. },
  470. "Event": {
  471. "type": "string"
  472. }
  473. }
  474. },
  475. "_17TrackingMQData": {
  476. "allOf": [
  477. {
  478. "$ref": "#/definitions/_17TrackingWebhook"
  479. },
  480. {
  481. "type": "object"
  482. }
  483. ]
  484. }
  485. }
  486. }