Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

Re: Good way to add link relations to REST responses

samples of Cas ws-security, probably either STS or custom bst
(27 lines)
Getting CXF to work properly in OSGi
(41 lines)
Feb 8, 2012
Sergey Beryozkin
Sergey Beryozkin
> 4) Knowledge of the media type being returned to the client. One
> resource can (and often does) support multiple media types, and
each
> media
> type is going to come with different link relations.
>

 Can you educate me a bit please and explain why different media types
 can affect the link relations ?

I guess it's to do with media types used as contributors to the 
versioning/etc strategies... Either way, the media type being returned 
to the client will be available at the provider level...

Cheers, Sergey


Reply
Tags: gt 4
Messages in this thread
Re: Good way to add link relations to REST responses
Good way to add link relations to REST responses
February 6, 2012 04:56:07 PM
I have a fairly rich domain model that is marshalled to XML and JSON as part of a REST API. In keeping with HATEOAS I would like to return link objects for many of these entities to provide URL/link relations for clients to use. To do this, I…
Are there any GOOD tutorials on creating REST services in CXF?
September 14, 2011 02:25:53 PM
I've wasted half a day trying to implement the article "Creating a REST service with CXF and Spring in 10 minutes" (http://www.insaneprogramming.be/?p=140) Why is this article recommended on http://cxf.apache.org/resources-and-articles.html? …
Updated: (CLK-543) Refactor AbstractLink to Link and include Simple/External Link functionality.
June 8, 2010 07:06:11 AM
[ https://issues.apache.org/jira/browse/CLK-543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian A. updated CLK-543:
Commented: (CLK-543) Refactor AbstractLink to Link and include Simple/External Link functionality.
June 8, 2010 06:51:13 AM
[ https://issues.apache.org/jira/browse/CLK-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876651#action_12876651 ] Bob Schellink commented on CLK-543:
Solving REST error with --REST already there
June 21, 2011 04:04:04 PM
Hi, I had this working at some point, but now when accessing the web interface on :28017, I get the dreaded error: "REST is not enabled. use --rest to turn on." I have --rest added to the init.d script, and it's showing up on the command line: …
Multiple relations
June 14, 2011 05:31:05 AM
Guys, I have another DB design question. I have 100 - 10000 clients connected to my server. Each client has a status. Many clients are "watching" *one* other client, which means that any change in that client's status must immediately be sent…
relations count
October 29, 2010 06:01:51 AM
Hi! I hope this is not too newbie question, but it's driving me crazy... How do you count the records in a relation? Like DUMP, but instead of list of records, I would like their count. Thanks, Anze
sorted to many relations
September 30, 2010 01:24:58 AM
Hi, with CAY-477 there was described an enhancement of the ObjRelation, so that an ordering can be configured. I hoped it would be part of Release 3.0.1, because after that I could kick my own workaround ... Are there any plans in which relaease…
Re: sorted to many relations
September 30, 2010 09:17:15 AM
Fine .. Is there already a time frame for Version 3.1? 2010/9/30 Andrus Adamchik <andr### @objectstyle.org> > All discussions of this feature have usually caused a certain amount of > disagreement on how this should behave, so I guess…
Re: sorted to many relations
September 30, 2010 10:15:44 AM
I think we are ready to do the first Alpha code-wise. Just need to update the user docs, as 3.1 is a significant redesign of the configuration and bootstrap mechanism :…
How to Map One to Many relations on HBase?
August 20, 2010 06:48:15 AM
Hi All I am new to HBase and I have one question which can be best described by the following scenario. Suppose I have three tables BaseCategory,Category and products. If i am thinking in terms of RDBMS then the relationship amoung these tables…
Storing different relations into one file
December 6, 2010 01:01:00 PM
Hi, i want to store relations A and B into one file. The output file should look like this: A1, B1 A2, B2 etc any Ideas? Is this even possible with piglatin?
Mongo, Node.js, and Relations
January 14, 2011 10:28:43 PM
Just wondering if anyone has implemented DBRef or some other form of relations support in JavaScript (specifically, Node.js-ready JavaScript) yet. If not, I'm considering it - but didn't want to duplicate anyone else's work. Nicholas
how to find Difference between Two columns in In TWO RELATIONS
September 9, 2010 11:21:26 AM
hi, I have Two files, loaded as Two relations A and B as fallows File1.txt
Weird behavior with Document Relations
January 19, 2011 05:52:08 AM
I was working with a particular plugin of mine which uses the keys for something and encountered this situation. require 'mongo_mapper' class User include MongoMapper::Document key :name, String many :results end class Result include…
Commented: (PIG-1434) Allow casting relations to scalars
July 14, 2010 04:26:50 PM
[ https://issues.apache.org/jira/browse/PIG-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888546#action_12888546 ] Dmitriy V. Ryaboy commented on PIG-1434:
Updated: (PIG-1434) Allow casting relations to scalars
August 4, 2010 05:21:01 PM
[ https://issues.apache.org/jira/browse/PIG-1434?page=com.atlassian.jira .plugin.system.issuetabpanels:all-tabpanel ] Aniket Mokashi updated PIG-1434:
Updated: (PIG-1434) Allow casting relations to scalars
August 4, 2010 05:21:04 PM
[ https://issues.apache.org/jira/browse/PIG-1434?page=com.atlassian.jira .plugin.system.issuetabpanels:all-tabpanel ] Aniket Mokashi updated PIG-1434:
Commented: (PIG-1434) Allow casting relations to scalars
July 13, 2010 05:20:50 PM
[ https://issues.apache.org/jira/browse/PIG-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888051#action_12888051 ] Alan Gates commented on PIG-1434:
Updated: (PIG-1434) Allow casting relations to scalars
August 4, 2010 05:33:41 PM
[ https://issues.apache.org/jira/browse/PIG-1434?page=com.atlassian.jira .plugin.system.issuetabpanels:all-tabpanel ] Richard Ding updated PIG-1434:
Intercepting incoming HTTP responses (responses to, i.e. a browser)
March 2, 2011
I'm trying to create a program that can add a small "bar" at the top of every webpage. The problem is, it has to work for all applications utilizing…
Intercepting incoming HTTP responses (responses to, i.e. a browser)
March 1, 2011
I'm trying to create a program that can add a small "bar" at the top of every webpage. The problem is, it has to work for all applications utilizing…
Why use rest api in what scenario is REST better? NoSQL
January 24, 2011
There are now REST apis for Mongodb and redis. I can connect to those databases with my language's driver. Or I can use the REST api. I understand…
I can't convert a flat link to a dynamic link through my .htaccess file
June 6, 2011
EDIT: This is what my .htaccess looks like as of now: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/(.+)$ $1-$2.php ORIGIN:…
Rewrite link to make more seo friendly link address
March 26, 2011
hi I want to rewrite my website links to make it more friendly. weblinks is in this form: http://www.mysite.com/index.php?content=somepage to make…
Symbolic link not allowed or link target not accessible
February 28, 2011
I can't seem to get a symlink working in my Apache VirtualHost, no matter what I try and I see the following error in the error log: Symbolic link…
Problem with relations
June 20, 2011
Hey I have a problem with the extension of the existing dependency models. Well, according to between the models are as follows: I have a User…
Mongodb relations
May 12, 2011
Hello. Please, can you say me, think i good or bad? I have two objects, Exhibition and Stand . In my logic Exhibition has_many Stands . I want to…
Why use relations in Mongodb?
April 12, 2011
I understand the difference between embedded and referenced relationships in mongodb. By why do you need them in the first place?
Two one-to-many relations with three tables
April 22, 2011
import sqlite3 # get connection and cursor objects conn = sqlite3.connect('iodatabase.sdb') c = conn.cursor() # create tables c.execute('''create…
MySQL Relations - Show name, use ID
January 4, 2011
Is there a way to create a relation between two tables so that in phpMyAdmin it will show one field from the related table, but select another? For…
DataMapper ORM for Codeigniter Relations
May 3, 2011
I have a table ... CREATE TABLE IF NOT EXISTS `messages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `to` int(11) NOT NULL, `from` int(11) NOT NULL,…
Database Foreign Relations
February 28, 2011
I am working on a project that is a customized and specific CMS. In the frontend many of the fields will have pre-populated choices. However for…
Index of a record in a sorted relations
May 23, 2011
Given I have a sorted relation (perhaps done by SELECT id FROM model WHERE type = 'a' ORDER BY name` ...), now I want to quickly get the index of a…
Copying a database record with relations
January 23, 2011
I have 2 sets of tables in the same database - A live set and a test set. Each set has two tables in it - table A and table B - with a one-to-many…
How do I create tables and relations using this diagram??
March 11, 2011
I have attached one diagram I got it from here only...my question is how do I convert that to a table form and how do I add relation ships between…
CASCADE when defining relations in InnoDB
May 31, 2011
I'm wondering what does represent CASCADE when defining relations in InnoDB? I see it's something related to actions: ON DELETE & ON UPDATE. Do…
Mysql Query Relations M-M Table
March 30, 2011
Hi guys, I'm having a small problem making a query in MySQL. I have the following tables: member; group; member_has_group (this one has the columns…
Multiple relations with mongoid wrapper
April 18, 2011
hi, i have following problem: i have 3 models orders, users and apps, with following relations: Users: has_many :apps has_many :orders Orders:…
Problem with loading relations in Doctrine ORM
April 10, 2011
I'm using Doctrine ORM for PHP and I have a question about loading relations. A model seems to load a different set of relations based on how it was…