Changeset 2323


Ignore:
Timestamp:
Sep 24, 2017, 12:09:32 AM (4 weeks ago)
Author:
bruno
Message:

Move to a YAML API description file

  • Use it in ProjectBuilder?.pm
  • Still does not validate fully
  • very preliminary content
Location:
devel/pb-server
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-server/lib/ProjectBuilder.pm

    r2287 r2323  
    2525  #   +/confs/(:id)  DELETE  "remove"
    2626  #   +/confs/(:id)  GET     "show"
    27   $self->plugin(swagger2 => {url => $self->home->rel_file('api.json')});
     27  $self->plugin(swagger2 => {url => $self->home->rel_file('api.yml')});
    2828
    2929  # Regular web pages
     
    4747
    4848  require Swagger2::Editor;
    49   my $editor = Swagger2::Editor->new(specification_file => $self->home->rel_file('api.json'));
     49  my $editor = Swagger2::Editor->new(specification_file => $self->home->rel_file('api.yml'));
    5050  $r->route('/editor')->detour(app => $editor);
    5151}
Note: See TracChangeset for help on using the changeset viewer.