Lines 27-35
use Swagger2;
Link Here
|
27 |
|
27 |
|
28 |
use C4::Context; |
28 |
use C4::Context; |
29 |
|
29 |
|
30 |
my $swaggerPath = C4::Context->config('intranetdir')."/api/v1"; |
30 |
my $swaggerPath = C4::Context->config('intranetdir') . "/api/v1/swagger"; |
31 |
my $swagger = Swagger2->new($swaggerPath."/swagger.json")->expand; |
31 |
my $swagger = Swagger2->new( $swaggerPath . "/swagger.json" )->expand; |
32 |
my $api_spec = $swagger->api_spec->data; |
32 |
my $api_spec = $swagger->api_spec->data; |
33 |
|
33 |
|
34 |
# The basic idea of this test: |
34 |
# The basic idea of this test: |
35 |
# 1. Find all definitions in Swagger under api/v1/definitions |
35 |
# 1. Find all definitions in Swagger under api/v1/definitions |
36 |
- |
|
|