You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A utility code that can be used to request Data from services... <br/>
2
+
A utility code that can be used to request Data from services...
3
3
4
-
This library is based on my exprience and need of working in the past company, taking many services in. I could handle any request so far using it, and every time I felt it doesn't support my need, i tried to expand it.
4
+
This library is based on my experience and need of working in the past company, taking many services in. I could handle any request so far using it, and every time I felt it doesn't support my need, i tried to expand it.
in the above code, in the `AdvancedRestHandler` constructor: <br/>
27
-
-`baseUrl` is a fixed part of url in a service, which can also be null <br/>
28
-
-`fixEndOfUrl` is to automatically attach path as resource in a way that base url of "https://test.test" and calling a operation service of "the-service" had a result of "https://test.testthe-service" or in the other hand, base url of "https://test.test/" and a service url of "/the-service" would result in "https://test.test//the-service", but with this option which is true by default, it will result in "https://test.test/the-service". but due to some services, which they think of '/' as part of the path, and it's existance mean different route, I kept the flag, so it can be turned off. <br/>
26
+
in the above code, in the `AdvancedRestHandler` constructor:
27
+
28
+
-`baseUrl` is a fixed part of url in a service, which can also be null
29
+
-`fixEndOfUrl` is to automatically attach path as resource in a way that base url of "https://test.test" and calling a operation service of "the-service" had a result of "https://test.testthe-service" or in the other hand, base url of "https://test.test/" and a service url of "/the-service" would result in "https://test.test//the-service", but with this option which is true by default, it will result in "https://test.test/the-service". but due to some services, which they think of '/' as part of the path, and it's existance mean different route, I kept the flag, so it can be turned off.
29
30
30
-
in the `GetData`: <br/>
31
-
-`TResponse` is the type of data you are receiving and the incoming json or (i'm not sure if i pars XML, but if supported XML) should be deserialized to <br/>
32
-
-`url` depending on the existance of baseUrl can be either the full url to a service, or the versitile part of the path in the service url <br/>
33
-
-`options` are modifier that can affect the behaviour of the service <br/>
31
+
in the `GetData`:
32
+
33
+
-`TResponse` is the type of data you are receiving and the incoming json or (i'm not sure if i pars XML, but if supported XML) should be deserialized to
34
+
-`url` depending on the existance of baseUrl can be either the full url to a service, or the versitile part of the path in the service url
35
+
-`options` are modifier that can affect the behaviour of the service
0 commit comments