rest-json.json 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240
  1. [
  2. {
  3. "description": "No parameters",
  4. "metadata": {
  5. "protocol": "rest-json",
  6. "apiVersion": "2014-01-01"
  7. },
  8. "shapes": {},
  9. "cases": [
  10. {
  11. "given": {
  12. "http": {
  13. "method": "GET",
  14. "requestUri": "/2014-01-01/jobs"
  15. },
  16. "name": "OperationName"
  17. },
  18. "serialized": {
  19. "body": "",
  20. "uri": "/2014-01-01/jobs",
  21. "headers": {}
  22. }
  23. }
  24. ]
  25. },
  26. {
  27. "description": "URI parameter only with no location name",
  28. "metadata": {
  29. "protocol": "rest-json",
  30. "apiVersion": "2014-01-01"
  31. },
  32. "shapes": {
  33. "InputShape": {
  34. "type": "structure",
  35. "members": {
  36. "PipelineId": {
  37. "shape": "StringType",
  38. "location": "uri"
  39. }
  40. }
  41. },
  42. "StringType": {
  43. "type": "string"
  44. }
  45. },
  46. "cases": [
  47. {
  48. "given": {
  49. "http": {
  50. "method": "GET",
  51. "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
  52. },
  53. "input": {
  54. "shape": "InputShape"
  55. },
  56. "name": "OperationName"
  57. },
  58. "params": {
  59. "PipelineId": "foo"
  60. },
  61. "serialized": {
  62. "body": "",
  63. "uri": "/2014-01-01/jobsByPipeline/foo",
  64. "headers": {}
  65. }
  66. }
  67. ]
  68. },
  69. {
  70. "description": "URI parameter only with location name",
  71. "metadata": {
  72. "protocol": "rest-json",
  73. "apiVersion": "2014-01-01"
  74. },
  75. "shapes": {
  76. "InputShape": {
  77. "type": "structure",
  78. "members": {
  79. "Foo": {
  80. "shape": "StringType",
  81. "location": "uri",
  82. "locationName": "PipelineId"
  83. }
  84. }
  85. },
  86. "StringType": {
  87. "type": "string"
  88. }
  89. },
  90. "cases": [
  91. {
  92. "given": {
  93. "http": {
  94. "method": "GET",
  95. "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
  96. },
  97. "input": {
  98. "shape": "InputShape"
  99. },
  100. "name": "OperationName"
  101. },
  102. "params": {
  103. "Foo": "bar"
  104. },
  105. "serialized": {
  106. "body": "",
  107. "uri": "/2014-01-01/jobsByPipeline/bar",
  108. "headers": {}
  109. }
  110. }
  111. ]
  112. },
  113. {
  114. "description": "Querystring list of strings",
  115. "metadata": {
  116. "protocol": "rest-json",
  117. "apiVersion": "2014-01-01"
  118. },
  119. "shapes": {
  120. "InputShape": {
  121. "type": "structure",
  122. "members": {
  123. "Items": {
  124. "shape": "StringList",
  125. "location": "querystring",
  126. "locationName": "item"
  127. }
  128. }
  129. },
  130. "StringList": {
  131. "type": "list",
  132. "member": {
  133. "shape": "String"
  134. }
  135. },
  136. "String": {
  137. "type": "string"
  138. }
  139. },
  140. "cases": [
  141. {
  142. "given": {
  143. "http": {
  144. "method": "GET",
  145. "requestUri": "/path"
  146. },
  147. "input": {
  148. "shape": "InputShape"
  149. },
  150. "name": "OperationName"
  151. },
  152. "params": {
  153. "Items": ["value1", "value2"]
  154. },
  155. "serialized": {
  156. "body": "",
  157. "uri": "/path?item=value1&item=value2",
  158. "headers": {}
  159. }
  160. }
  161. ]
  162. },
  163. {
  164. "description": "String to string maps in querystring",
  165. "metadata": {
  166. "protocol": "rest-json",
  167. "apiVersion": "2014-01-01"
  168. },
  169. "shapes": {
  170. "InputShape": {
  171. "type": "structure",
  172. "members": {
  173. "PipelineId": {
  174. "shape": "StringType",
  175. "location": "uri"
  176. },
  177. "QueryDoc": {
  178. "shape": "MapStringStringType",
  179. "location": "querystring"
  180. }
  181. }
  182. },
  183. "MapStringStringType": {
  184. "type": "map",
  185. "key": {
  186. "shape": "StringType"
  187. },
  188. "value": {
  189. "shape": "StringType"
  190. }
  191. },
  192. "StringType": {
  193. "type": "string"
  194. }
  195. },
  196. "cases": [
  197. {
  198. "given": {
  199. "http": {
  200. "method": "GET",
  201. "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
  202. },
  203. "input": {
  204. "shape": "InputShape"
  205. },
  206. "name": "OperationName"
  207. },
  208. "params": {
  209. "PipelineId": "foo",
  210. "QueryDoc": {
  211. "bar": "baz",
  212. "fizz": "buzz"
  213. }
  214. },
  215. "serialized": {
  216. "body": "",
  217. "uri": "/2014-01-01/jobsByPipeline/foo?bar=baz&fizz=buzz",
  218. "headers": {}
  219. }
  220. }
  221. ]
  222. },
  223. {
  224. "description": "String to string list maps in querystring",
  225. "metadata": {
  226. "protocol": "rest-json",
  227. "apiVersion": "2014-01-01"
  228. },
  229. "shapes": {
  230. "InputShape": {
  231. "type": "structure",
  232. "members": {
  233. "PipelineId": {
  234. "shape": "StringType",
  235. "location": "uri"
  236. },
  237. "QueryDoc": {
  238. "shape": "MapStringStringListType",
  239. "location": "querystring"
  240. }
  241. }
  242. },
  243. "MapStringStringListType": {
  244. "type": "map",
  245. "key": {
  246. "shape": "StringType"
  247. },
  248. "value": {
  249. "shape": "StringListType"
  250. }
  251. },
  252. "StringListType": {
  253. "type": "list",
  254. "member": {
  255. "shape": "StringType"
  256. }
  257. },
  258. "StringType": {
  259. "type": "string"
  260. }
  261. },
  262. "cases": [
  263. {
  264. "given": {
  265. "http": {
  266. "method": "GET",
  267. "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
  268. },
  269. "input": {
  270. "shape": "InputShape"
  271. },
  272. "name": "OperationName"
  273. },
  274. "params": {
  275. "PipelineId": "id",
  276. "QueryDoc": {
  277. "foo": ["bar", "baz"],
  278. "fizz": ["buzz", "pop"]
  279. }
  280. },
  281. "serialized": {
  282. "body": "",
  283. "uri": "/2014-01-01/jobsByPipeline/id?foo=bar&foo=baz&fizz=buzz&fizz=pop",
  284. "headers": {}
  285. }
  286. }
  287. ]
  288. },
  289. {
  290. "description": "URI parameter and querystring params",
  291. "metadata": {
  292. "protocol": "rest-json",
  293. "apiVersion": "2014-01-01"
  294. },
  295. "shapes": {
  296. "InputShape": {
  297. "type": "structure",
  298. "members": {
  299. "PipelineId": {
  300. "shape": "StringType",
  301. "location": "uri",
  302. "locationName": "PipelineId"
  303. },
  304. "Ascending": {
  305. "shape": "StringType",
  306. "location": "querystring",
  307. "locationName": "Ascending"
  308. },
  309. "PageToken": {
  310. "shape": "StringType",
  311. "location": "querystring",
  312. "locationName": "PageToken"
  313. }
  314. }
  315. },
  316. "StringType": {
  317. "type": "string"
  318. }
  319. },
  320. "cases": [
  321. {
  322. "given": {
  323. "http": {
  324. "method": "GET",
  325. "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
  326. },
  327. "input": {
  328. "shape": "InputShape"
  329. },
  330. "name": "OperationName"
  331. },
  332. "params": {
  333. "PipelineId": "foo",
  334. "Ascending": "true",
  335. "PageToken": "bar"
  336. },
  337. "serialized": {
  338. "body": "",
  339. "uri": "/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar",
  340. "headers": {}
  341. }
  342. }
  343. ]
  344. },
  345. {
  346. "description": "URI parameter, querystring params and JSON body",
  347. "metadata": {
  348. "protocol": "rest-json",
  349. "apiVersion": "2014-01-01"
  350. },
  351. "shapes": {
  352. "InputShape": {
  353. "type": "structure",
  354. "members": {
  355. "PipelineId": {
  356. "shape": "StringType",
  357. "location": "uri",
  358. "locationName": "PipelineId"
  359. },
  360. "Ascending": {
  361. "shape": "StringType",
  362. "location": "querystring",
  363. "locationName": "Ascending"
  364. },
  365. "PageToken": {
  366. "shape": "StringType",
  367. "location": "querystring",
  368. "locationName": "PageToken"
  369. },
  370. "Config": {
  371. "shape": "StructType"
  372. }
  373. }
  374. },
  375. "StringType": {
  376. "type": "string"
  377. },
  378. "StructType": {
  379. "type": "structure",
  380. "members": {
  381. "A": {
  382. "shape": "StringType"
  383. },
  384. "B": {
  385. "shape": "StringType"
  386. }
  387. }
  388. }
  389. },
  390. "cases": [
  391. {
  392. "given": {
  393. "http": {
  394. "method": "POST",
  395. "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
  396. },
  397. "input": {
  398. "shape": "InputShape"
  399. },
  400. "name": "OperationName"
  401. },
  402. "params": {
  403. "PipelineId": "foo",
  404. "Ascending": "true",
  405. "PageToken": "bar",
  406. "Config": {
  407. "A": "one",
  408. "B": "two"
  409. }
  410. },
  411. "serialized": {
  412. "body": "{\"Config\": {\"A\": \"one\", \"B\": \"two\"}}",
  413. "uri": "/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar",
  414. "headers": {}
  415. }
  416. }
  417. ]
  418. },
  419. {
  420. "description": "URI parameter, querystring params, headers and JSON body",
  421. "metadata": {
  422. "protocol": "rest-json",
  423. "apiVersion": "2014-01-01"
  424. },
  425. "shapes": {
  426. "InputShape": {
  427. "type": "structure",
  428. "members": {
  429. "PipelineId": {
  430. "shape": "StringType",
  431. "location": "uri",
  432. "locationName": "PipelineId"
  433. },
  434. "Ascending": {
  435. "shape": "StringType",
  436. "location": "querystring",
  437. "locationName": "Ascending"
  438. },
  439. "Checksum": {
  440. "shape": "StringType",
  441. "location": "header",
  442. "locationName": "x-amz-checksum"
  443. },
  444. "PageToken": {
  445. "shape": "StringType",
  446. "location": "querystring",
  447. "locationName": "PageToken"
  448. },
  449. "Config": {
  450. "shape": "StructType"
  451. }
  452. }
  453. },
  454. "StringType": {
  455. "type": "string"
  456. },
  457. "StructType": {
  458. "type": "structure",
  459. "members": {
  460. "A": {
  461. "shape": "StringType"
  462. },
  463. "B": {
  464. "shape": "StringType"
  465. }
  466. }
  467. }
  468. },
  469. "cases": [
  470. {
  471. "given": {
  472. "http": {
  473. "method": "POST",
  474. "requestUri": "/2014-01-01/jobsByPipeline/{PipelineId}"
  475. },
  476. "input": {
  477. "shape": "InputShape"
  478. },
  479. "name": "OperationName"
  480. },
  481. "params": {
  482. "PipelineId": "foo",
  483. "Ascending": "true",
  484. "Checksum": "12345",
  485. "PageToken": "bar",
  486. "Config": {
  487. "A": "one",
  488. "B": "two"
  489. }
  490. },
  491. "serialized": {
  492. "body": "{\"Config\": {\"A\": \"one\", \"B\": \"two\"}}",
  493. "uri": "/2014-01-01/jobsByPipeline/foo?Ascending=true&PageToken=bar",
  494. "headers": {
  495. "x-amz-checksum": "12345"
  496. }
  497. }
  498. }
  499. ]
  500. },
  501. {
  502. "description": "Streaming payload",
  503. "metadata": {
  504. "protocol": "rest-json",
  505. "apiVersion": "2014-01-01"
  506. },
  507. "shapes": {
  508. "InputShape": {
  509. "type": "structure",
  510. "members": {
  511. "vaultName": {
  512. "shape": "StringType",
  513. "location": "uri",
  514. "locationName": "vaultName"
  515. },
  516. "checksum": {
  517. "shape": "StringType",
  518. "location": "header",
  519. "locationName": "x-amz-sha256-tree-hash"
  520. },
  521. "body": {
  522. "shape": "Stream"
  523. }
  524. },
  525. "required": [
  526. "vaultName"
  527. ],
  528. "payload": "body"
  529. },
  530. "StringType": {
  531. "type": "string"
  532. },
  533. "Stream": {
  534. "type": "blob",
  535. "streaming": true
  536. }
  537. },
  538. "cases": [
  539. {
  540. "given": {
  541. "http": {
  542. "method": "POST",
  543. "requestUri": "/2014-01-01/vaults/{vaultName}/archives"
  544. },
  545. "input": {
  546. "shape": "InputShape"
  547. },
  548. "name": "OperationName"
  549. },
  550. "params": {
  551. "vaultName": "name",
  552. "checksum": "foo",
  553. "body": "contents"
  554. },
  555. "serialized": {
  556. "body": "contents",
  557. "uri": "/2014-01-01/vaults/name/archives",
  558. "headers": {
  559. "x-amz-sha256-tree-hash": "foo"
  560. }
  561. }
  562. }
  563. ]
  564. },
  565. {
  566. "description": "Serialize blobs in body",
  567. "metadata": {
  568. "protocol": "rest-json",
  569. "apiVersion": "2014-01-01"
  570. },
  571. "shapes": {
  572. "InputShape": {
  573. "type": "structure",
  574. "members": {
  575. "Foo": {
  576. "shape": "StringType",
  577. "location": "uri",
  578. "locationName": "Foo"
  579. },
  580. "Bar": {"shape": "BlobType"}
  581. },
  582. "required": [
  583. "Foo"
  584. ]
  585. },
  586. "StringType": {
  587. "type": "string"
  588. },
  589. "BlobType": {
  590. "type": "blob"
  591. }
  592. },
  593. "cases": [
  594. {
  595. "given": {
  596. "http": {
  597. "method": "GET",
  598. "requestUri": "/2014-01-01/{Foo}"
  599. },
  600. "input": {
  601. "shape": "InputShape"
  602. },
  603. "name": "OperationName"
  604. },
  605. "params": {
  606. "Foo": "foo_name",
  607. "Bar": "Blob param"
  608. },
  609. "serialized": {
  610. "body": "{\"Bar\": \"QmxvYiBwYXJhbQ==\"}",
  611. "uri": "/2014-01-01/foo_name"
  612. }
  613. }
  614. ]
  615. },
  616. {
  617. "description": "Blob payload",
  618. "metadata": {
  619. "protocol": "rest-json",
  620. "apiVersion": "2014-01-01"
  621. },
  622. "shapes": {
  623. "InputShape": {
  624. "type": "structure",
  625. "members": {
  626. "foo": {
  627. "shape": "FooShape"
  628. }
  629. }
  630. },
  631. "FooShape": {
  632. "type": "blob"
  633. }
  634. },
  635. "cases": [
  636. {
  637. "given": {
  638. "http": {
  639. "method": "POST",
  640. "requestUri": "/"
  641. },
  642. "input": {
  643. "shape": "InputShape",
  644. "payload": "foo"
  645. },
  646. "name": "OperationName"
  647. },
  648. "params": {
  649. "foo": "bar"
  650. },
  651. "serialized": {
  652. "method": "POST",
  653. "body": "bar",
  654. "uri": "/"
  655. }
  656. },
  657. {
  658. "given": {
  659. "http": {
  660. "method": "POST",
  661. "requestUri": "/"
  662. },
  663. "input": {
  664. "shape": "InputShape",
  665. "payload": "foo"
  666. },
  667. "name": "OperationName"
  668. },
  669. "params": {
  670. },
  671. "serialized": {
  672. "method": "POST",
  673. "body": "",
  674. "uri": "/"
  675. }
  676. }
  677. ]
  678. },
  679. {
  680. "description": "Structure payload",
  681. "metadata": {
  682. "protocol": "rest-json",
  683. "apiVersion": "2014-01-01"
  684. },
  685. "shapes": {
  686. "InputShape": {
  687. "type": "structure",
  688. "members": {
  689. "foo": {
  690. "shape": "FooShape"
  691. }
  692. }
  693. },
  694. "FooShape": {
  695. "locationName": "foo",
  696. "type": "structure",
  697. "members": {
  698. "baz": {
  699. "shape": "BazShape"
  700. }
  701. }
  702. },
  703. "BazShape": {
  704. "type": "string"
  705. }
  706. },
  707. "cases": [
  708. {
  709. "given": {
  710. "http": {
  711. "method": "POST",
  712. "requestUri": "/"
  713. },
  714. "input": {
  715. "shape": "InputShape",
  716. "payload": "foo"
  717. },
  718. "name": "OperationName"
  719. },
  720. "params": {
  721. "foo": {
  722. "baz": "bar"
  723. }
  724. },
  725. "serialized": {
  726. "method": "POST",
  727. "body": "{\"baz\": \"bar\"}",
  728. "uri": "/"
  729. }
  730. },
  731. {
  732. "given": {
  733. "http": {
  734. "method": "POST",
  735. "requestUri": "/"
  736. },
  737. "input": {
  738. "shape": "InputShape",
  739. "payload": "foo"
  740. },
  741. "name": "OperationName"
  742. },
  743. "params": {},
  744. "serialized": {
  745. "method": "POST",
  746. "body": "",
  747. "uri": "/"
  748. }
  749. }
  750. ]
  751. },
  752. {
  753. "description": "Omits null query params, but serializes empty strings",
  754. "metadata": {
  755. "protocol": "rest-json",
  756. "apiVersion": "2014-01-01"
  757. },
  758. "shapes": {
  759. "InputShape": {
  760. "type": "structure",
  761. "members": {
  762. "foo": {
  763. "location":"querystring",
  764. "locationName":"param-name",
  765. "shape": "Foo"
  766. }
  767. }
  768. },
  769. "Foo": {
  770. "type": "string"
  771. }
  772. },
  773. "cases": [
  774. {
  775. "given": {
  776. "name": "OperationName",
  777. "http": {
  778. "method": "POST",
  779. "requestUri": "/path"
  780. },
  781. "input": { "shape": "InputShape" }
  782. },
  783. "params": { "foo": null },
  784. "serialized": {
  785. "method": "POST",
  786. "body": "",
  787. "uri": "/path"
  788. }
  789. },
  790. {
  791. "given": {
  792. "name": "OperationName",
  793. "http": {
  794. "method": "POST",
  795. "requestUri": "/path?abc=mno"
  796. },
  797. "input": { "shape": "InputShape" }
  798. },
  799. "params": { "foo": "" },
  800. "serialized": {
  801. "method": "POST",
  802. "body": "",
  803. "uri": "/path?abc=mno&param-name="
  804. }
  805. }
  806. ]
  807. },
  808. {
  809. "description": "Recursive shapes",
  810. "metadata": {
  811. "protocol": "rest-json",
  812. "apiVersion": "2014-01-01"
  813. },
  814. "shapes": {
  815. "InputShape": {
  816. "type": "structure",
  817. "members": {
  818. "RecursiveStruct": {
  819. "shape": "RecursiveStructType"
  820. }
  821. }
  822. },
  823. "RecursiveStructType": {
  824. "type": "structure",
  825. "members": {
  826. "NoRecurse": {
  827. "shape": "StringType"
  828. },
  829. "RecursiveStruct": {
  830. "shape": "RecursiveStructType"
  831. },
  832. "RecursiveList": {
  833. "shape": "RecursiveListType"
  834. },
  835. "RecursiveMap": {
  836. "shape": "RecursiveMapType"
  837. }
  838. }
  839. },
  840. "RecursiveListType": {
  841. "type": "list",
  842. "member": {
  843. "shape": "RecursiveStructType"
  844. }
  845. },
  846. "RecursiveMapType": {
  847. "type": "map",
  848. "key": {
  849. "shape": "StringType"
  850. },
  851. "value": {
  852. "shape": "RecursiveStructType"
  853. }
  854. },
  855. "StringType": {
  856. "type": "string"
  857. }
  858. },
  859. "cases": [
  860. {
  861. "given": {
  862. "input": {
  863. "shape": "InputShape"
  864. },
  865. "http": {
  866. "method": "POST",
  867. "requestUri": "/path"
  868. },
  869. "name": "OperationName"
  870. },
  871. "params": {
  872. "RecursiveStruct": {
  873. "NoRecurse": "foo"
  874. }
  875. },
  876. "serialized": {
  877. "uri": "/path" ,
  878. "headers": {},
  879. "body": "{\"RecursiveStruct\": {\"NoRecurse\": \"foo\"}}"
  880. }
  881. },
  882. {
  883. "given": {
  884. "input": {
  885. "shape": "InputShape"
  886. },
  887. "http": {
  888. "method": "POST",
  889. "requestUri": "/path"
  890. },
  891. "name": "OperationName"
  892. },
  893. "params": {
  894. "RecursiveStruct": {
  895. "RecursiveStruct": {
  896. "NoRecurse": "foo"
  897. }
  898. }
  899. },
  900. "serialized": {
  901. "uri": "/path",
  902. "headers": {},
  903. "body": "{\"RecursiveStruct\": {\"RecursiveStruct\": {\"NoRecurse\": \"foo\"}}}"
  904. }
  905. },
  906. {
  907. "given": {
  908. "input": {
  909. "shape": "InputShape"
  910. },
  911. "http": {
  912. "method": "POST",
  913. "requestUri": "/path"
  914. },
  915. "name": "OperationName"
  916. },
  917. "params": {
  918. "RecursiveStruct": {
  919. "RecursiveStruct": {
  920. "RecursiveStruct": {
  921. "RecursiveStruct": {
  922. "NoRecurse": "foo"
  923. }
  924. }
  925. }
  926. }
  927. },
  928. "serialized": {
  929. "uri": "/path",
  930. "headers": {},
  931. "body": "{\"RecursiveStruct\": {\"RecursiveStruct\": {\"RecursiveStruct\": {\"RecursiveStruct\": {\"NoRecurse\": \"foo\"}}}}}"
  932. }
  933. },
  934. {
  935. "given": {
  936. "input": {
  937. "shape": "InputShape"
  938. },
  939. "http": {
  940. "method": "POST",
  941. "requestUri": "/path"
  942. },
  943. "name": "OperationName"
  944. },
  945. "params": {
  946. "RecursiveStruct": {
  947. "RecursiveList": [
  948. {
  949. "NoRecurse": "foo"
  950. },
  951. {
  952. "NoRecurse": "bar"
  953. }
  954. ]
  955. }
  956. },
  957. "serialized": {
  958. "uri": "/path",
  959. "headers": {},
  960. "body": "{\"RecursiveStruct\": {\"RecursiveList\": [{\"NoRecurse\": \"foo\"}, {\"NoRecurse\": \"bar\"}]}}"
  961. }
  962. },
  963. {
  964. "given": {
  965. "input": {
  966. "shape": "InputShape"
  967. },
  968. "http": {
  969. "method": "POST",
  970. "requestUri": "/path"
  971. },
  972. "name": "OperationName"
  973. },
  974. "params": {
  975. "RecursiveStruct": {
  976. "RecursiveList": [
  977. {
  978. "NoRecurse": "foo"
  979. },
  980. {
  981. "RecursiveStruct": {
  982. "NoRecurse": "bar"
  983. }
  984. }
  985. ]
  986. }
  987. },
  988. "serialized": {
  989. "uri": "/path",
  990. "headers": {},
  991. "body": "{\"RecursiveStruct\": {\"RecursiveList\": [{\"NoRecurse\": \"foo\"}, {\"RecursiveStruct\": {\"NoRecurse\": \"bar\"}}]}}"
  992. }
  993. },
  994. {
  995. "given": {
  996. "input": {
  997. "shape": "InputShape"
  998. },
  999. "http": {
  1000. "method": "POST",
  1001. "requestUri": "/path"
  1002. },
  1003. "name": "OperationName"
  1004. },
  1005. "params": {
  1006. "RecursiveStruct": {
  1007. "RecursiveMap": {
  1008. "foo": {
  1009. "NoRecurse": "foo"
  1010. },
  1011. "bar": {
  1012. "NoRecurse": "bar"
  1013. }
  1014. }
  1015. }
  1016. },
  1017. "serialized": {
  1018. "uri": "/path",
  1019. "headers": {},
  1020. "body": "{\"RecursiveStruct\": {\"RecursiveMap\": {\"foo\": {\"NoRecurse\": \"foo\"}, \"bar\": {\"NoRecurse\": \"bar\"}}}}"
  1021. }
  1022. }
  1023. ]
  1024. },
  1025. {
  1026. "description": "Timestamp values",
  1027. "metadata": {
  1028. "protocol": "rest-json",
  1029. "apiVersion": "2014-01-01"
  1030. },
  1031. "shapes": {
  1032. "InputShape": {
  1033. "type": "structure",
  1034. "members": {
  1035. "TimeArg": {
  1036. "shape": "TimestampType"
  1037. },
  1038. "TimeArgInHeader": {
  1039. "shape": "TimestampType",
  1040. "location": "header",
  1041. "locationName": "x-amz-timearg"
  1042. }
  1043. }
  1044. },
  1045. "TimestampType": {
  1046. "type": "timestamp"
  1047. }
  1048. },
  1049. "cases": [
  1050. {
  1051. "given": {
  1052. "input": {
  1053. "shape": "InputShape"
  1054. },
  1055. "http": {
  1056. "method": "POST",
  1057. "requestUri": "/path"
  1058. },
  1059. "name": "OperationName"
  1060. },
  1061. "params": {
  1062. "TimeArg": 1422172800
  1063. },
  1064. "serialized": {
  1065. "uri": "/path",
  1066. "headers": {},
  1067. "body": "{\"TimeArg\": 1422172800}"
  1068. }
  1069. },
  1070. {
  1071. "given": {
  1072. "input": {
  1073. "shape": "InputShape"
  1074. },
  1075. "http": {
  1076. "method": "POST",
  1077. "requestUri": "/path"
  1078. },
  1079. "name": "OperationName"
  1080. },
  1081. "params": {
  1082. "TimeArgInHeader": 1422172800
  1083. },
  1084. "serialized": {
  1085. "uri": "/path",
  1086. "headers": {"x-amz-timearg": "Sun, 25 Jan 2015 08:00:00 GMT"},
  1087. "body": ""
  1088. }
  1089. }
  1090. ]
  1091. },
  1092. {
  1093. "description": "Named locations in JSON body",
  1094. "metadata": {
  1095. "protocol": "rest-json",
  1096. "apiVersion": "2014-01-01"
  1097. },
  1098. "shapes": {
  1099. "InputShape": {
  1100. "type": "structure",
  1101. "members": {
  1102. "TimeArg": {
  1103. "shape": "TimestampType",
  1104. "locationName": "timestamp_location"
  1105. }
  1106. }
  1107. },
  1108. "TimestampType": {
  1109. "type": "timestamp"
  1110. }
  1111. },
  1112. "cases": [
  1113. {
  1114. "given": {
  1115. "input": {
  1116. "shape": "InputShape"
  1117. },
  1118. "http": {
  1119. "method": "POST",
  1120. "requestUri": "/path"
  1121. },
  1122. "name": "OperationName"
  1123. },
  1124. "params": {
  1125. "TimeArg": 1422172800
  1126. },
  1127. "serialized": {
  1128. "uri": "/path",
  1129. "headers": {},
  1130. "body": "{\"timestamp_location\": 1422172800}"
  1131. }
  1132. }
  1133. ]
  1134. },
  1135. {
  1136. "description": "String payload",
  1137. "metadata": {
  1138. "protocol": "rest-json",
  1139. "apiVersion": "2014-01-01"
  1140. },
  1141. "shapes": {
  1142. "InputShape": {
  1143. "type": "structure",
  1144. "members": {
  1145. "foo": {
  1146. "shape": "FooShape"
  1147. }
  1148. }
  1149. },
  1150. "FooShape": {
  1151. "type": "string"
  1152. }
  1153. },
  1154. "cases": [
  1155. {
  1156. "given": {
  1157. "http": {
  1158. "method": "POST",
  1159. "requestUri": "/"
  1160. },
  1161. "input": {
  1162. "shape": "InputShape",
  1163. "payload": "foo"
  1164. },
  1165. "name": "OperationName"
  1166. },
  1167. "params": {
  1168. "foo": "bar"
  1169. },
  1170. "serialized": {
  1171. "method": "POST",
  1172. "body": "bar",
  1173. "uri": "/"
  1174. }
  1175. }
  1176. ]
  1177. },
  1178. {
  1179. "description": "Idempotency token auto fill",
  1180. "metadata": {
  1181. "protocol": "rest-json",
  1182. "apiVersion": "2014-01-01"
  1183. },
  1184. "shapes": {
  1185. "InputShape": {
  1186. "type": "structure",
  1187. "members": {
  1188. "Token": {
  1189. "shape": "StringType",
  1190. "idempotencyToken": true
  1191. }
  1192. }
  1193. },
  1194. "StringType": {
  1195. "type": "string"
  1196. }
  1197. },
  1198. "cases": [
  1199. {
  1200. "given": {
  1201. "input": {
  1202. "shape": "InputShape"
  1203. },
  1204. "http": {
  1205. "method": "POST",
  1206. "requestUri": "/path"
  1207. },
  1208. "name": "OperationName"
  1209. },
  1210. "params": {
  1211. "Token": "abc123"
  1212. },
  1213. "serialized": {
  1214. "uri": "/path",
  1215. "headers": {},
  1216. "body": "{\"Token\": \"abc123\"}"
  1217. }
  1218. },
  1219. {
  1220. "given": {
  1221. "input": {
  1222. "shape": "InputShape"
  1223. },
  1224. "http": {
  1225. "method": "POST",
  1226. "requestUri": "/path"
  1227. },
  1228. "name": "OperationName"
  1229. },
  1230. "params": {
  1231. },
  1232. "serialized": {
  1233. "uri": "/path",
  1234. "headers": {},
  1235. "body": "{\"Token\": \"00000000-0000-4000-8000-000000000000\"}"
  1236. }
  1237. }
  1238. ]
  1239. }
  1240. ]