View | Details | Raw Unified | Return to bug 28189
Collapse All | Expand All

(-)a/Koha/REST/V1.pm (-1 / +1 lines)
Lines 79-85 sub startup { Link Here
79
        $spec = $validator->bundle(
79
        $spec = $validator->bundle(
80
            {
80
            {
81
                replace => 1,
81
                replace => 1,
82
                schema => $self->home->rel_file("api/v1/swagger/swagger.json")
82
                schema => $self->home->rel_file("api/v1/swagger/swagger.yaml")
83
            }
83
            }
84
        );
84
        );
85
85
(-)a/api/v1/swagger/swagger.json (-28 lines)
Lines 1-28 Link Here
1
{
2
  "swagger": "2.0",
3
  "info": {
4
    "title": "Koha REST API",
5
    "version": "1",
6
    "license": {
7
      "name": "GPL v3",
8
      "url": "http://www.gnu.org/licenses/gpl.txt"
9
    },
10
    "contact": {
11
      "name": "Koha Development Team",
12
      "url": "https://koha-community.org/"
13
    }
14
  },
15
  "basePath": "/api/v1",
16
  "paths": {
17
    "$ref": "paths.json"
18
  },
19
  "definitions": {
20
    "$ref": "definitions.json"
21
  },
22
  "parameters": {
23
    "$ref": "parameters.json"
24
  },
25
  "x-primitives": {
26
    "$ref": "x-primitives.json"
27
  }
28
}
(-)a/api/v1/swagger/swagger.yaml (-1 / +32 lines)
Line 0 Link Here
0
- 
1
---
2
swagger: 2.0
3
basePath: /api/v1
4
paths:
5
  $ref: paths.json
6
definitions:
7
  $ref: definitions.json
8
parameters:
9
  $ref: parameters.json
10
x-primitives:
11
  $ref: x-primitives.json
12
info:
13
  title: Koha REST API
14
  version: 1
15
  license:
16
    name: GPL v3,
17
    url: http://www.gnu.org/licenses/gpl.txt
18
  contact:
19
    name: Koha Development Team
20
    url: https://koha-community.org/
21
  description: |
22
    ## Introduction
23
24
    This API is documented in **OpenAPI format**.
25
26
    ## Special headers
27
28
    ### x-koha-library
29
30
    This optional header should be passed to give your api request a library
31
    context; If it is not included in the request, then the request context
32
    will default to using your api comsumer's assigned home library.

Return to bug 28189