examples: annotate examples
[nit.git] / lib / nitcorn / examples / sav / test_restful_annot.res
1 [Client] curl -s 'localhost:*****/rest_path/async_service?str=thread_0'
2 [Client] curl -s 'localhost:*****/rest_path/async_service?str=thread_1'
3 [Client] curl -s 'localhost:*****/rest_path/async_service?str=thread_2'
4 [Client] curl -s 'localhost:*****/rest_path/async_service?str=thread_3'
5 [Client] curl -s 'localhost:*****/rest_path/foo?s=s&i=12&b=true'
6 foo s 12 true
7 [Client] curl -s 'localhost:*****/rest_path/foo?s=s&i=-4&b=false'
8 foo s -4 false
9 [Client] curl -s 'localhost:*****/rest_path/foo' --data 's=s&i=12&b=true'
10 foo s 12 true
11 [Client] curl -s 'localhost:*****/rest_path/api_name?s=s'
12 bar s null null
13 [Client] curl -s 'localhost:*****/rest_path/alt_name?s=s'
14 bar s null null
15 [Client] curl -s 'localhost:*****/rest_path/api_name?i=4&b=false'
16 bar null 4 false
17 [Client] curl -s 'localhost:*****/rest_path/complex_args?array=["a","b"]&data={"str":"asdf"}' -g
18 complex_args [a,b] <MyData str:asdf more:null>
19 [Client] curl -s 'localhost:*****/rest_path/complex_args?array=["a","b"]&data={"__class":"MyOtherData","str":"asdf","i":1234}' -g
20 complex_args [a,b] <MyOtherData str:asdf more:null i:1234>
21 [Client] curl -s 'localhost:*****/rest_path/non_existent_service'
22 Fallback answer
23 [Client] curl -s 'localhost:*****/rest_path/foo'
24 Fallback answer
25 [Client] curl -s 'localhost:*****/rest_path/foo?b=WrongDataType'
26 Bad JSON character
27 Fallback answer
28 [Client] curl -s 'localhost:*****/rest_path/bar?s=s'
29 Fallback answer
30 [Client] curl -s 'localhost:*****/rest_path/api_name' --data s=DoesNotAcceptPOST
31 Fallback answer
32 [Client] curl -s 'localhost:*****/rest_path/complex_args?array=["a","b"]&data={"str":"as' -g
33 Malformed JSON string
34 Fallback answer
35 async_service thread_0
36 async_service thread_1
37 async_service thread_2
38 async_service thread_3