Browse Source

Bug 16699: Move Swagger-related files to api/v1/swagger

This patch separates Swagger-specifications and the minifySwagger.pl from other
api-files by moving specifications & minifier into api/v1/swagger.

Signed-off-by: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>

My name is Olli-Antti Kivilahti and I approve this commit.
We have been using the Swagger2.0-driven REST API on Mojolicious for 1 year now
in production and I am certain we have a pretty good idea on how to work with
the limitations of Swagger2.0
We participated in the development of the Mojolicious::Plugin::Swagger and know
it well. We have made an extension to the plugin to provide full CORS support
and have been building all our in-house features on the new REST API.

Signed-off-by: Johanna Raisa <johanna.raisa@gmail.com>

My name is Johanna Räisä and I approve this commit.
We have been using Swagger2.0-driven REST API in production successfully.

Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
16.11.x
Lari Taskula 8 years ago
committed by Kyle M Hall
parent
commit
7b8c7b038f
  1. 2
      Koha/REST/V1.pm
  2. 0
      api/v1/swagger/definitions.json
  3. 0
      api/v1/swagger/definitions/error.json
  4. 0
      api/v1/swagger/definitions/hold.json
  5. 0
      api/v1/swagger/definitions/holds.json
  6. 0
      api/v1/swagger/definitions/patron.json
  7. 0
      api/v1/swagger/parameters.json
  8. 0
      api/v1/swagger/parameters/hold.json
  9. 0
      api/v1/swagger/parameters/patron.json
  10. 0
      api/v1/swagger/paths.json
  11. 0
      api/v1/swagger/paths/holds.json
  12. 0
      api/v1/swagger/paths/patrons.json
  13. 0
      api/v1/swagger/swagger.json
  14. 0
      api/v1/swagger/x-primitives.json

2
Koha/REST/V1.pm

@ -55,7 +55,7 @@ sub startup {
$self->plugin(Swagger2 => {
route => $route,
url => $self->home->rel_file("api/v1/swagger.min.json"),
url => $self->home->rel_file("api/v1/swagger/swagger.min.json"),
});
}

0
api/v1/definitions.json → api/v1/swagger/definitions.json

0
api/v1/definitions/error.json → api/v1/swagger/definitions/error.json

0
api/v1/definitions/hold.json → api/v1/swagger/definitions/hold.json

0
api/v1/definitions/holds.json → api/v1/swagger/definitions/holds.json

0
api/v1/definitions/patron.json → api/v1/swagger/definitions/patron.json

0
api/v1/parameters.json → api/v1/swagger/parameters.json

0
api/v1/parameters/hold.json → api/v1/swagger/parameters/hold.json

0
api/v1/parameters/patron.json → api/v1/swagger/parameters/patron.json

0
api/v1/paths.json → api/v1/swagger/paths.json

0
api/v1/paths/holds.json → api/v1/swagger/paths/holds.json

0
api/v1/paths/patrons.json → api/v1/swagger/paths/patrons.json

0
api/v1/swagger.json → api/v1/swagger/swagger.json

0
api/v1/x-primitives.json → api/v1/swagger/x-primitives.json

Loading…
Cancel
Save