Yes, it's for a project in my university. I know that the we need to 
specify the format in the header and the server can handle json and xml 
format.

Here is the documentation :

Read only resources: 
    
- SportsResource / - Get list of all sports [GET, public] 
    
- UsersResource /users/ - Get list of all users [GET, public] 
    
- PartnershipsResource /partnerships/ - Get list of all partnerships [GET, 
public] 
    
- SportResource /sports/{sportname} - Get sport entity and its list of 
subscriptions [GET, public] 
     
"Public" write resources: 
    
- UserResource /users/{username} - Get user entity [GET, public*] - Create 
new user [PUT, public] 

- Update user profile [PUT, private] - Delete user [DELETE, private] 
     
Private write resources: 
    
- PartnershipResource /partnerships/{username1};{username2}/ - Get 
partnership entity [GET, public*]
- Propose (or confirm** proposed) partnership [PUT, private] 

- Delete (or decline** proposed) partnership [DELETE, private] 
    
- SubscriptionResource /users/{username}/{sportname} - Get subscription 
entity [GET, public*] /partnerships/{username1};{username2}/{sportname}/ - 
Subscribe (as user or partnership) to a sport [PUT, private] 

- Update subscription [PUT, private]
- Submit new entry [POST, private]
- Delete subscription [DELETE, private] 
    
- EntryResource /[uri of subscription]/{entityid} - Get entry entity [GET, 
public*] - Update entry data [PUT, private] 

- Delete entry [DELETE, private] 
    
* = Read accessability depends on the privacy settings for the respective 
entities ** = A partnership is created/deleted in the following way: 

   - 
   
   PUT by user1 proposes a new partnership. PUT by user2 confirmes the 
   proposal and the partnership becomes "operational" 
    - 
   
   DELETE on an operational partnership results in a proposed partnership. 
   DELETE on a proposed partnership deletes it.
   
   
   

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/Im1iaQuuEIIJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to