|
11 | 11 | "lang" : "en", |
12 | 12 | "geocode" : ["37.76","-122.427"], |
13 | 13 | "first_name" : "John", |
14 | | - "last.name" : "Doe", |
| 14 | + "last.name" : "Doe", |
15 | 15 | "Some%20Thing" : "foo", |
16 | 16 | "number" : 6, |
17 | 17 | "long" : 37.76, |
|
28 | 28 | "testcases":[ |
29 | 29 |
|
30 | 30 | [ "{/id*}" , "/person" ], |
31 | | - [ "{/id*}{?fields,first_name,last.name,token}" , [ |
| 31 | + [ "{/id*}{?fields,first_name,last.name,token}" , [ |
32 | 32 | "/person?fields=id,name,picture&first_name=John&last.name=Doe&token=12345", |
33 | 33 | "/person?fields=id,picture,name&first_name=John&last.name=Doe&token=12345", |
34 | 34 | "/person?fields=picture,name,id&first_name=John&last.name=Doe&token=12345", |
|
46 | 46 | ["/base{/group_id,first_name}/pages{/page,lang}{?format,q}","/base/12345/John/pages/5/en?format=json&q=URI%20Templates"], |
47 | 47 | ["/sparql{?query}", "/sparql?query=PREFIX%20dc%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%20SELECT%20%3Fbook%20%3Fwho%20WHERE%20%7B%20%3Fbook%20dc%3Acreator%20%3Fwho%20%7D"], |
48 | 48 | ["/go{?uri}", "/go?uri=http%3A%2F%2Fexample.org%2F%3Furi%3Dhttp%253A%252F%252Fexample.org%252F"], |
49 | | - ["/service{?word}", "/service?word=dr%C3%BCcken"], |
50 | | - ["/lookup{?Stra%C3%9Fe}", "/lookup?Stra%C3%9Fe=Gr%C3%BCner%20Weg"], |
51 | | - ["{random}" , "%C5%A1%C3%B6%C3%A4%C5%B8%C5%93%C3%B1%C3%AA%E2%82%AC%C2%A3%C2%A5%E2%80%A1%C3%91%C3%92%C3%93%C3%94%C3%95%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%BF"], |
52 | | - ["{?assoc_special_chars*}", "?%C5%A1%C3%B6%C3%A4%C5%B8%C5%93%C3%B1%C3%AA%E2%82%AC%C2%A3%C2%A5%E2%80%A1%C3%91%C3%92%C3%93%C3%94%C3%95=%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%BF"] |
| 49 | + ["/service{?word}", [ "/service?word=dr%C3%BCcken", "/service?word=dr%C3%83%C2%BCcken"]], |
| 50 | + ["/lookup{?Stra%C3%9Fe}", ["/lookup?Stra%C3%9Fe=Gr%C3%BCner%20Weg", "/lookup?Stra%C3%9Fe=Gr%C3%83%C2%BCner%20Weg"]], |
| 51 | + ["{random}", |
| 52 | + [ "%C5%A1%C3%B6%C3%A4%C5%B8%C5%93%C3%B1%C3%AA%E2%82%AC%C2%A3%C2%A5%E2%80%A1%C3%91%C3%92%C3%93%C3%94%C3%95%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%BF", |
| 53 | + "%C3%85%C2%A1%C3%83%C2%B6%C3%83%C2%A4%C3%85%C2%B8%C3%85%E2%80%9C%C3%83%C2%B1%C3%83%C2%AA%C3%A2%E2%80%9A%C2%AC%C3%82%C2%A3%C3%82%C2%A5%C3%A2%E2%82%AC%C2%A1%C3%83%E2%80%98%C3%83%E2%80%99%C3%83%E2%80%9C%C3%83%E2%80%9D%C3%83%E2%80%A2%C3%83%E2%80%93%C3%83%E2%80%94%C3%83%CB%9C%C3%83%E2%84%A2%C3%83%C5%A1%C3%83%C2%A0%C3%83%C2%A1%C3%83%C2%A2%C3%83%C2%A3%C3%83%C2%A4%C3%83%C2%A5%C3%83%C2%A6%C3%83%C2%A7%C3%83%C2%BF"] |
| 54 | + ], |
| 55 | + ["{?assoc_special_chars*}", |
| 56 | + [ "?%C5%A1%C3%B6%C3%A4%C5%B8%C5%93%C3%B1%C3%AA%E2%82%AC%C2%A3%C2%A5%E2%80%A1%C3%91%C3%92%C3%93%C3%94%C3%95=%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%BF", |
| 57 | + "?%C3%85%C2%A1%C3%83%C2%B6%C3%83%C2%A4%C3%85%C2%B8%C3%85%E2%80%9C%C3%83%C2%B1%C3%83%C2%AA%C3%A2%E2%80%9A%C2%AC%C3%82%C2%A3%C3%82%C2%A5%C3%A2%E2%82%AC%C2%A1%C3%83%E2%80%98%C3%83%E2%80%99%C3%83%E2%80%9C%C3%83%E2%80%9D%C3%83%E2%80%A2=%C3%83%E2%80%93%C3%83%E2%80%94%C3%83%CB%9C%C3%83%E2%84%A2%C3%83%C5%A1%C3%83%C2%A0%C3%83%C2%A1%C3%83%C2%A2%C3%83%C2%A3%C3%83%C2%A4%C3%83%C2%A5%C3%83%C2%A6%C3%83%C2%A7%C3%83%C2%BF"] |
| 58 | + ] |
53 | 59 | ] |
54 | 60 | }, |
55 | 61 | "Additional Examples 2":{ |
|
68 | 74 | "testcases":[ |
69 | 75 |
|
70 | 76 | [ "{/id*}" , ["/person/albums","/albums/person"] ], |
71 | | - [ "{/id*}{?fields,token}" , [ |
| 77 | + [ "{/id*}{?fields,token}" , [ |
72 | 78 | "/person/albums?fields=id,name,picture&token=12345", |
73 | 79 | "/person/albums?fields=id,picture,name&token=12345", |
74 | 80 | "/person/albums?fields=picture,name,id&token=12345", |
|
112 | 118 | [ "{?42}", "?42=The%20Answer%20to%20the%20Ultimate%20Question%20of%20Life%2C%20the%20Universe%2C%20and%20Everything"], |
113 | 119 | [ "{1337}", "leet,as,it,can,be"], |
114 | 120 | [ "{?1337*}", "?1337=leet&1337=as&1337=it&1337=can&1337=be"], |
115 | | - [ "{?german*}", [ "?11=elf&12=zw%C3%B6lf", "?12=zw%C3%B6lf&11=elf"] ] |
| 121 | + [ "{?german*}", [ "?11=elf&12=zw%C3%B6lf", "?12=zw%C3%B6lf&11=elf", "?11=elf&12=zw%C3%83%C2%B6lf"] ] |
116 | 122 | ] |
117 | 123 | } |
118 | 124 | } |
0 commit comments