This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
forked from stenskjaer/lbp-print-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added start of swagger api documentation
- Loading branch information
1 parent
41762cf
commit b0c850b
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
swagger: '2.0' | ||
info: | ||
description: SCTA PRINT API | ||
version: 1.0.0 | ||
title: SCTA PRINT API | ||
termsOfService: 'http:https://swagger.io/terms/' | ||
contact: | ||
email: [email protected] | ||
license: | ||
name: Apache 2.0 | ||
url: 'http:https://www.apache.org/licenses/LICENSE-2.0.html' | ||
host: 'print.lombardpress.org' | ||
basePath: /api/v1 | ||
schemes: | ||
- http | ||
- https | ||
paths: | ||
'/resource': | ||
get: | ||
tags: | ||
- Reviews | ||
summary: Initiate a request to process and xml text available at the supplied url | ||
description: '' | ||
produces: | ||
- application/json | ||
parameters: | ||
- in: query | ||
type: string | ||
name: url | ||
description: The URL of an available xml text | ||
required: false | ||
responses: | ||
'200': | ||
description: successful operation | ||
schema: | ||
$ref: '#/definitions/Response' | ||
'/cache/{filename}': | ||
get: | ||
summary: returns file | ||
description: '' | ||
produces: | ||
- application/pdf | ||
parameters: | ||
- in: path | ||
type: string | ||
name: filename | ||
description: provides pdf | ||
required: true | ||
responses: | ||
200: | ||
description: A PDF file. | ||
schema: | ||
type: file | ||
definitions: | ||
Response: | ||
type: object | ||
required: [Status] | ||
properties: | ||
Status: | ||
type: string | ||
description: "indicates status of the process (e.g. started, converting, finished)" | ||
url: | ||
type: string | ||
description: "a url where the processed PDF file can be found once finished" | ||
error: | ||
type: string | ||
description: "reports error in processing" | ||
externalDocs: | ||
description: Find out more about the DLL Review Registry | ||
url: dll-review-registry.herokuapp.com/about |