@@ -31,13 +31,13 @@ def parse_serviceuserpost(data, **kwargs):
31
31
32
32
try :
33
33
temp_7262 = str (headers ["Location" ])
34
-
34
+
35
35
except Exception as error :
36
36
# This is not an error, since some properties are not always returned
37
37
pass
38
38
39
39
pass
40
-
40
+
41
41
# If no dynamic objects were extracted, throw.
42
42
if not (temp_7262 ):
43
43
raise ResponseParsingException ("Error: all of the expected dynamic objects were not present in the response." )
@@ -50,8 +50,7 @@ def parse_serviceuserpost(data, **kwargs):
50
50
# Endpoint: /service/user, method: Post
51
51
request = requests .Request ([
52
52
primitives .restler_static_string ("POST " ),
53
- primitives .restler_static_string ("/" ),
54
- primitives .restler_static_string ("api" ),
53
+ primitives .restler_basepath ("/api" ),
55
54
primitives .restler_static_string ("/" ),
56
55
primitives .restler_static_string ("service" ),
57
56
primitives .restler_static_string ("/" ),
@@ -61,7 +60,7 @@ def parse_serviceuserpost(data, **kwargs):
61
60
primitives .restler_static_string ("Host: localhost:8888\r \n " ),
62
61
primitives .restler_refreshable_authentication_token ("authentication_token_tag" ),
63
62
primitives .restler_static_string ("\r \n " ),
64
-
63
+
65
64
{
66
65
'post_send' :
67
66
{
@@ -81,8 +80,7 @@ def parse_serviceuserpost(data, **kwargs):
81
80
# Endpoint: /service/user/{userId}, method: Get
82
81
request = requests .Request ([
83
82
primitives .restler_static_string ("GET " ),
84
- primitives .restler_static_string ("/" ),
85
- primitives .restler_static_string ("api" ),
83
+ primitives .restler_basepath ("/api" ),
86
84
primitives .restler_static_string ("/" ),
87
85
primitives .restler_static_string ("service" ),
88
86
primitives .restler_static_string ("/" ),
@@ -103,8 +101,7 @@ def parse_serviceuserpost(data, **kwargs):
103
101
# Endpoint: /service/user/{userId}, method: Put
104
102
request = requests .Request ([
105
103
primitives .restler_static_string ("PUT " ),
106
- primitives .restler_static_string ("/" ),
107
- primitives .restler_static_string ("api" ),
104
+ primitives .restler_basepath ("/api" ),
108
105
primitives .restler_static_string ("/" ),
109
106
primitives .restler_static_string ("service" ),
110
107
primitives .restler_static_string ("/" ),
@@ -125,8 +122,7 @@ def parse_serviceuserpost(data, **kwargs):
125
122
# Endpoint: /service/user/{userId}, method: Delete
126
123
request = requests .Request ([
127
124
primitives .restler_static_string ("DELETE " ),
128
- primitives .restler_static_string ("/" ),
129
- primitives .restler_static_string ("api" ),
125
+ primitives .restler_basepath ("/api" ),
130
126
primitives .restler_static_string ("/" ),
131
127
primitives .restler_static_string ("service" ),
132
128
primitives .restler_static_string ("/" ),
0 commit comments