Determine the URL associated with a request without resorting to request headers.
What should I do for the URL of a request without resorting to what the caller to set the request headers X-APEX-PATH and X-APEX-BASE?
Is a variable binding available? I tried: url and: uri without success.
I would like this information in order to implement HATEOAS features; to return the "parent" of the current URL or other URL are not children of the URL of the request, but it can be derived related. For example, the URL of the https://server:port / xxx/account/abc123/recipes/zxy987 I wish I could return a URL reference for all bills paid (see example below). If there is another, or better, medium provided by ADR interested.
Thank you.
{
"items":]
"uri": {}
"$ref": " Https://Server:port / ADR/account/abc123/ERC/RXYZ987 "
},
"receipt_number": "RXYZ987",
"receipt_date": "2015-01 - 02 T 08: 00:00Z"
'amount': ' $249,00 ",
"bills":]
{
"invoice_number": "INV123",
'total': ' $149,00 ",
"uri": {}
"$ref": " Https://Server:port / ADR/account/abc123/invs/INV123 "
}
},
{
"invoice_number": "INV130",
"total": "$100.00". "
"uri": {}
"$ref": " Https://Server:port / ADR/account/abc123/invs/INV130 "
}
}
]
]
}
Hi Ryan,
Well, getting back to your original question, there is a WAY BETTER way to build these hyperlink references.
In the documentation of the ADR ( http://docs.oracle.com/cd/E56351_01/doc.30/e56293/develop.htm#AELIG90013 ), we find the following paragraph:
Based on what I've created an example based on the EMP table:
set sqlblanklines on declare l_moduleid number; l_templateid number; l_handlerid number; begin -- delete module if exists ords_services.delete_module('URL-Sample'); -- REST Modul anlegen l_moduleid := ords_services.create_module( p_name => 'URL-Sample' ,p_uri_prefix => 'URL-Sample/' ,p_status => 'PUBLISHED' ); -- 1. URL-Template l_templateid := ords_services.add_template( p_module_id => l_moduleid ,p_uri_template => 'employees/' ); -------------------------------------- -- GET Handler to retrieve a full list of all employees -- GET URL-Sample/employees/ -------------------------------------- l_handlerid := ords_services.add_handler( p_template_id => l_templateid ,p_source_type => ords.source_type_collection_feed ,p_source => q'[ select empno "$self", emp.* from emp ]' ,p_method => 'GET' ,p_items_per_page => 100 ); -- 2. URL-Template l_templateid := ords_services.add_template( p_module_id => l_moduleid ,p_uri_template => 'employees/{empno}' ); -------------------------------------- -- GET Handler to retrieve a single employee -- GET URL-Sample/employees/{empno} -------------------------------------- l_handlerid := ords_services.add_handler( p_template_id => l_templateid ,p_source_type => ords.source_type_query ,p_source => q'[ select empno "$uri", '../employees/' "$collection", '../../metadata-catalog/handler-test/feed/' "$describedby", emp.* from emp where empno=:empno ]' ,p_method => 'GET' ); end; / commit / /*======================================================================= now we can test the service using : *) GET a list of contacts: curl -i http://localhost:8080/ords/ordstest/URL-Sample/employees/ *) GET a single contact: curl -i http://localhost:8080/ords/ordstest/URL-Sample/employees/7782 =======================================================================*/
When you run this you get the following results:
Especially note here that you are working with absolute and relative paths here (using a relative path syntax in a directory tree:... /..).
The feature is really cool... If it was established only the most obviously.
It's a shame.
I used in this example ords.source_type_query as a return type for a single employee. If I use ords.source_type_collection_item as return type, ADR will be actually build the reference to the parent that feed by itself:
It works for you?
~ Dietmar.
Tags: Database
Similar Questions
-
The pop-up window appears in the bottom left of the browser Firefox. Yet once, it displays the URL by clicking on the image for each image on the Web page.
The easiest way is to use the add-on of status-4-Evar. With it, you can choose to not display the messages State or hover URL preview, or rather display them in the bar modules or the address bar.
-
I lost the icons associated with my favorites. I tried to restart my Mac, Safari, resettlement and Add-ons suggested in other forums without success. Is there a way to fix this?
Hi rmmilleriii,
You should take a look at this article which discusses some of the problems with the latest version of Firefox.
There is some information here that should help you solve your problem. Fortunately, this is a very easy solution.
Hope this helps!
-
I forgot my password. I can't create a new account because I get an error message saying that my e-mail address is already associated with an account. So, I use the link 'forgot password?'. The link request my email address I provided. Then I get an error message asking me to enter the email associated with the account. I'm stuck. What should I do?
I'm sorry that you have this problem.
If you have a snapfish account, use your snapfish e-mail address and the password to connect to ePrintCenter.com with. If you do not have an account, snapfish, go to snapfish.com and create an account and then use the information that you create on snapfish to connect to ePrintCenter.com
-
Hello, I bought Creative Suite Master in October 2014 and my computer was stolen from my car to that effect the license associated with this machine, therefore, is more accessible to me. You have a function to disable this computer with my purchase, so I can reinstall it on my newly purchased machine?
Contact adobe during the time pst support by clicking here and, when available, click on "still need help", https://helpx.adobe.com/contact.html , and request activation reset account.
-
I need to make a purchase, and I can't do it because I need to change the country associated with my account. What is the best way to do it without re-creating a new account?
That's the best you can do (with the help of Adobe):
-
What are the costs associated with the synchronization
What are the costs associated with the synchronization
Simple answer is: No. Cost zero.
-
the program associated with the creation of a virtual instrument of Lab View. Please help me
I have a question with the program associated with the creation of a virtual instrument of Lab View. 1. creation of virtual instrument based on the NI 9401 module mounted on the chassis NI DAQ of Compaq (nor-cDAQ-9172). Creating a virtual tool should apply the following counting pulses in series of the pulse, visualization of data by means of a digital indicator, by comparing the number of impusite with a predetermined value, this value can be assigned by the user. Indicator light when you get to reach the number of pulses, the ability to reset the counter of a button on the front panel. Digital output switch when reaching the number. I hope someone can help me.
What is your question? You have described what the program is supposed to do, but it is unclear what you're asking about. Do you need help to get started? If so, what you have gone through the tutorials of LabVIEW? You and look at the material in tutorials the NI Developer Zone Learning Center , which provides links to other materials and other. You can also take a course online for free. Have you looked through numerous examples provided with LabVIEW for data acquisition?
-
original title: SQL Server 2008
We have SQL Server 2005 cluster (3 node cluster) and if we improve this nodes to 2008 R2, can the databases associated with the named instance remain to the version of SQL Server 2005, I seem to disagree with this notion, but still need to validation of the pro.
One way I can think of to achieve this scenario changes the compatibility level to SQL Server 2005 when the node has been upgraded to SQL Server 2008, so we can upgrade databases to SQL 2008 as and when the vendors provide support for this version.
Hello
Here is the Vista forums
Try the links below:
SQL Server forums
http://social.technet.Microsoft.com/forums/en-us/category/SQLServer/
SQL Server TechCenter
http://TechNet.Microsoft.com/en-us/SQLServer/bb265254.aspx
Blogs and Forums SQL server 2008
http://www.Microsoft.com/sqlserver/2008/en/us/forums-blogs.aspx
-
Change the icons associated with files - it is still possible; It was child's play.
How can I change the icon associated with a file? For example, if I change the default program for an .ini file, the default icon of a page with a gear in the corner becomes a simple page and I'd rather the icon does not change... just the program I use to open the file. In the previous veersions of Windows, if you want to change the icon associated with a file, you could simply enter properties and continue. Please advise on how to adopt this change of WinVista Home Premium.
It is not easy and involves editing the registry (this is far from as easy it was XP, that's why you're having trouble). Here is the procedure: http://www.webtlk.com/2009/03/20/how-to-change-the-icon-assiciated-with-a-file-in-windows-vista-and-windows-7/. I recommend before starting that you back up your registry database just to be safe. Here's how: http://www.adamsdvds.co.uk/tutorials/vista/regedit/backup.php.
I hope this helps.
Good luck! Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
cannot update, uninstall or new installation of itunes and the programs associated with lack of msi files
Hi kenau78,
a. this problem during installation?
b. you install an iTunes 32-bit version or 64-bit?
c. What is the CPU architecture, 32-bit or 64-bit?
I suggest you to contact the Apple support also, because the problem is with iTunes, from the link given below.
You can also ask your question in the discussion forums Apple from the link below.
Concerning
Arona - Microsoft technical support engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
Original title: Weird problem.
My computer says it is connected to the network and the network is connected to the internet, but I can't access what whether the internet associated with such sites as Web and other programs which require an internet connection. I have reset the router and the computer many times and the problem is still there. Any ideas on how to solve this problem?
Very strange that this issue has been raised suddenly and even system restore back the working time is not solve it. At this point, I suspect something mischievous because restoration of return must be a guaranteed fix. If it worked on Friday, it should work if restore you backup on Friday.
I ask you to check if your network card has got an update which could have features broke, but that can't be the problem because the restoration of return would be handed over the old version.
Indeed, using restore in a working time essentially says that this isn't a configuration problem, because configuration is in a known-to-be-working state (because he worked at the restored time).
I would therefore start at this stage, verification of hardware, antenna, connections, equipment devices.
-
Hello! World app of my bb9300 used to work and then I forgot the password! It's when he began to play up he said now I should "enter the username associated with this phone"-i I wiped the phone twice but its doesn't work simply do not!
Hello from straw,
Welcome to the Blackberry community
If you had wiped your device then you need to create your ID blackberry again associated with your email.
Set your username and password then try World Apps login.
Good luck
Prince
Click 'Like' If you want to thank someone.
If problem resolves mark message (s) as a 'Solution', so that others can use. -
BlackBerry smartphones enter the username associated with this smartphone
When I login with my ID blackberry an apper message telling to enter the user name associated with this smartphone
Please help me
In fact, it is not likely to help... to refer:
- KB28429 "Please enter the username associated with this smartphone" appears by connecting to BlackBerry App World with a BlackBerry ID using a smartphone BlackBerry 7
To paraphrase, what this means is that there is already a BB ID associated with this BB, and there is only one way to change the association ID BB to BB:
- KB26694 How to change the BlackBerry ID on a BlackBerry smartphone or BlackBerry PlayBook Tablet
Whereas a WIPE seems drastic, it is nevertheless the only way to change the ID of BB BB is associated.
Good luck!
-
I just got my blackberry a few days ago and it makes me nuts trying to get this set up. I'm pretty tech savy, but not when it comes to this phone.
I created an account via blackberry, but then I could not for the life of me remember the password I put on it. So, which became a nightmare and I ended up deleting this account and set up a new through the computer.
Now, every time I try and connect to this, as the app world to try to put things in place and not - I get the error message "enter the username associated with this smartphone.
So I enter the new name of user and password I put in place and it works so of course I tried to get all blackberry programs set up on my computer and connect the phone to my computer - but my house is a deadband for cells - so I can't do set up because I can not access my "data plan" in my house.
I recorded my phone, I have taken the battery all that fun stuff - but it's still not working! That makes me BONKERS - I can not set up email, bbm anything because I can't access my account - ARGH! I really hope that someone can help you.
No doubt because I posted this - my friend that I couldn't reach finally called me and told me to do a security wipe and then start again. It WORKED! So if anyone has this problem, just try to do a wipe
Maybe you are looking for
-
Sprout of HP: HP PC Hardware Diagnostics UEFI install faulty
5 times the HP Support Assistant attempted to update the "HP PC Hardware Diagnostics UEFI". Whenever he fails. After each attempt, I made a stop and then tried again.
-
I have a hp pavilion elite m9552p, Win7 desktop, which is not able to connect to my network more via the wireless running. It will connect with an ethernet cable. I just the words "an unexpected error has occurred" when I try to manually connect vi
-
What is lvanlys.dll?
I have a build that always wants to include lvanlys.dll. What he calls? How do iremove it?
-
Computer closed Hi completely without warning to reliability all said that no material event viewer problem just disruptive stop does say that no critical problems temp monitor says the f 78 78 séptimo clocked motherboard down across runs of 5 HR lon
-
Why is my tiny impression 7520
My 7520 is very small printing of web pages. How can it be solved?