on 10-07-2015 9:33 PM
I have a synchronous scenario (REST -> PI -> PROXY)
I am getting request from source system in a URL
https://serveraddress.com/dymax/services/restfull/reroute/field1=field2=field3
Actual data comes in field1, field 2 and field 3 in URL
Eg https://serveraddress.com/dymax/services/restfull/reroute/Marilyn=12345=Manager
How to configure this in Sender Rest Adapter ?
Thanks
Any help is highly appreciated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marilyn,
REST requires each resource to have at least one URI. A RESTful service uses a directory hierarchy like human readable URIs to address its resources. The job of a URI is to identify a resource or a collection of resources. The actual operation is determined by an HTTP verb. The URI should not say anything about the operation or action. This enables us to call the same URI with different HTTP verbs to perform different operations.
Suppose we have a database of persons and we wish to expose it to the outer world through a service. A resource person
can be addressed like this:
This URL has following format: Protocol://ServiceName/ResourceType/ResourceID
Here are some important recommendations for well-structured URIs:
_
(underscore) or –
(hyphen) instead. 300
and redirect the client to the new location.http://MyService/FetcthPerson/1
or http://MyService/DeletePerson?id=1
.The preceding URI is constructed with the help of a query parameter:
The query parameter approach works just fine and REST does not stop you from using query parameters. However, this approach has a few disadvantages.
The basic purpose of query parameters is to provide parameters to an operation that needs the data items. For example, if you want the format of the presentation to be decided by the client. You can achieve that through a parameter like this:
http://MyService/Persons/1?format=xml&encoding=UTF8
or
http://MyService/Persons/1?format=json&encoding=UTF8
Including the parameters format
and encoding
here in the main URI in a parent-child hierarchy will not be logically correct as they have no such relation:
http://MyService/Persons/1/json/UTF8
Query parameters also allow optional parameters. This is not otherwise possible in a URI. You should use query parameters only for the use they are intended for: providing parameter values to a process.
you can get details on REST below blogs -
Thanks
Sugata B
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.