[racktables-users] Re: writing a restful API in php for Racktables

  • From: Ian Bettinger <ibettinger@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Fri, 13 Jul 2012 11:39:40 -0700

I am, and there is already a method, "add_object," in the api.php
file. However there was a bug in that method in the earlier version.
I've attached a new version with the add_object method fixed.

If you submit something like:
    
http://racktables.foo.com/apiv0.php?method=add_object&object_type_id=4&object_name=mynewserver

The API should add the object and redirect you to the new object's
"get_object" API page.

Cheers,
Ian


ps: Speaking of bugs, is there a test framework attached to the project at all?




On Fri, Jul 13, 2012 at 11:24 AM, Les Mikesell <lesmikesell@xxxxxxxxx> wrote:
> On Fri, Jul 13, 2012 at 1:15 PM, Ian Bettinger <ibettinger@xxxxxxxxx> wrote:
>>
>> Again, this is super-preliminary code because I want to make sure it
>> fits in with how the Racktables contributors like to lay things out.
>> So don't expect too much from it just yet.
>
> Are you planning insert/update support?
>
> --
>   Les Mikesell
>    lesmikesell@xxxxxxxxx
>

Other related posts: