similar to: REST API Documentation

Displaying 20 results from an estimated 200000 matches similar to: "REST API Documentation"

2007 Nov 05
3
Private API in REST
In a app RESTful, all api''s are public. How to leave a private API? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe
2007 Aug 23
6
Calling a method on class creation
I have a model User that has property called status. Status is just a string that can only be evaluated and not persisted. I.e. it doesn''t have a field in the user table. Anyways, I would like a method get_status to be called anytime I create a new instance of User. For example: user=User.new Since I created a new instance of User, I should now have access to the status property, e.g.:
2007 Dec 06
2
Implementation of rest in ROR
Hi all, I am new to ROR world. I know the REST conceptually but find the difficulties in implementation can anybody guide me that which is the best book which i have to read. also some good links of implementation of rest in ROR. If anybody made a small application to restful in rails please forward me that application. i found some demo but i didn''t understand for what purpose they
2007 Mar 17
3
How is this done with REST (blinksale account)?
In Blinksale, the settings link in the top right takes you to the / account url. From there, the side nav takes you to /account;templates / account;reminders , etc. >From what I''ve read, ;templates and ;reminders are custom rest actions for a given resource. But the controller (account) does not appear to be of rest nature. Also, when creating a new account, the url is / firms/new .
2007 May 25
1
Totally naive - what is meant by REST?
I see this acronym a lot - what does REST stand for? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to
2006 Nov 22
1
Peepcode REST podcast. ..didn't anybody get it ?
And if so, I''m going a bit bonkers here and need to watch it again, but if I remember correctly, scaffold_resource generator was used, but for nested resources the show and index were removed from the controller ? Is this correct as far as what happened in the demonstration and if so is it correct as far as rest goes ? TIA Stuart -- http://en.wikipedia.org/wiki/Dark_ambient
2008 Dec 14
2
custom REST action - template question
Hallo phorum, i have custom rest action. routes.rb: map.resources :schools, :collection => { :graduations => :get } SchoolsController: def graduations @schools = School.graduation(true) end link somewhere in navigation: <%= link_to ''Schools with graduation'', graduations_schools_path %> All works OK for me, but Rails needs (of course) a template for controller
2006 Nov 27
3
Consistency in REST-routes naming
Hello everyone! In working with the Rails-REST-features I have always wondered about the URL for the new-action /objects/new In REST the URL should represent a Resource. As the semicolon is for adding non-standard actions (verbs) to a resource, IMHO it should be: /objects;new and not /objects/new In fact, this is just like an additional action, which I would specify with the
2006 Sep 14
4
AWDWR 2nd edition and REST
Question, and I''ll preface it by asking if this is the right list to be posting questions regarding anything past Rails 1.1.6 , (i.e. edgerails) ? In the latest revision of AWDWR there is a sample REST based app. During the creation of the controller and actions, there is a foot note that says: "7. By the time you''re reading this, there may well be support build into Rails
2006 Oct 25
7
rest nested resources - Help please
I can''t believe I''m back again with another rest question. I did go through the peepcode podcast. I thought though you can have multiple nested resources, is that not true ? I have this set up map.resources :candidates do |candidate| candidate.resources :canbackgrounds candidate.resources :canpositions end I just coded up teh canpositions and now all
2008 Feb 18
0
REST wsdl & Wavemaker
I''m currently investigating creating a Rails application that will offer a set of services for consumption by Wavemaker (used to be ActiveGrid) which is a front-end builder. Wavemaker is supposed to be able to consume SOAP and REST services, but the service import dialoge insists on a wsdl file in either case. I''ve just moved to Rails 2.0.2 to learn about REST and I see that
2007 Nov 28
3
overriding rest show route but not delete
hi, lets say routes.rb has map.resources :foo and I want the show action to have a diffent url, so I add (after the above line) map.foo ''/bar/:id'', :controller => ''foo'', :action => ''show'' this works fine, including foo_path( :id => "1") => /bar/1 and <%= link_to ''Show'', foo %>
2007 Dec 18
2
Active Resource and non default model names
I have a model (accessed restfully) named TranscoderQueue, it''s name is overridden to ''TransocderQueue'' so it is accessed as ''/ transocder_queue'' as opposed to ''/transocder_qeueus''. class TranscoderQueue < ActiveRecord::Base belongs_to :campaign, :class_name => "Campaign", :foreign_key => "campaign_id"
2007 Dec 19
0
AWS vs REST and XML-RPC
Ok so DHH in the release post for Rails 2 talked about how there was clearly a side taken in the SOAP vs REST debate, and REST had one. So what does that mean if one is wanting to create a small blogging engine with Rails 2, and want''s to use an external blogging application to connect with it? Before it looked as if the Blogger API and MetaWeblog API were two ways of going
2006 Dec 22
3
Lumping vs. Splitting (REST)
Hi Everyone, Working on a REST-based web application, and I need some ammo in dealing with my supervisors and contractors. Is it better to: Method 1: Take in one large XML-based POST request, which contains 1st, 2nd and 3rd level elements, and build the associated child and grandchild objects in the parent controller, Method 2: Instead use a number of smaller XML-based POST requests
2007 Oct 18
0
REST help
Hi all, I am trying to build a RESTful shopping cart and I have hit a small wall, but before I get to that let me explain what I have done thus far. I have two RESTful controllers, CartController and CartItemsController with a nested routes setup like so map.resources :carts do |carts| carts.resources :cart_items, :collection => {:empty => :delete} end (I added a custom route to
2007 Nov 08
0
Models for external REST services
Hello, I''m new to rails so as an exercise I''m porting (php to rails) a very simple landing page that talks with a third party REST service where I just need to do a couple of calls to register a user and show the status of the whole process. I felt this would be dead simple to do in Rails (I''m still learning) but I''m having a hard time getting it working. My
2007 Jun 22
1
nested rest URL => passing param from select
Hi, I''m trying to create a select box with an onchange event. When onchange is fired, I want to redirect to a nested rest url. The problem is that I don''t know how to pass the selected value to the url: <select id="category" onchange=" <%= remote_function(:url => category_articles_path(selected value?) ) %> "> Any suggestions? -- Posted
2007 Aug 16
1
Nested REST resource routes without controller name
I am curious if the following URL pattern is appropriate to use with REST and map.resources: Let''s say I want to build a website with information about cars. I decide that there will be a page to view/manage cars by model. The route for this is easily created: map.resources :cars The URLs look great. But now I want to introduce the ability to specify cars by year. I can do this by
2007 Aug 29
0
Re: what REST architecture
A place to start. http://blogs.msdn.com/alexbarn/archive/2006/07/21/674395.aspx /Frank Vilhelmsen 2007/8/29, Vijayendra Achar <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>: > > Hi Friends > > > i want to know more about REST architecture . can anybody tell me > where i can get information about it .please help me > -- > Posted via