Skip to content
Snippets Groups Projects
Commit 13b4d9bc authored by Tamás Szabó's avatar Tamás Szabó
Browse files

add yaml to generate

parent a6b8bf6c
No related branches found
No related tags found
2 merge requests!9labor5,!6implement retrofit
swagger: "2.0"
info:
description: "Android viewer for xkcd comics"
version: "1.0.0"
title: "XKCD Browser"
license:
name: "Creative Common"
url: "https://creativecommons.org"
host: "xkcd.com"
basePath: "/"
tags:
- name: "comic"
description: "A comic strip"
externalDocs:
description: "Find out more"
url: "https://xkcd.com/json.html"
schemes:
- "https"
paths:
/{id}/info.0.json:
get:
tags:
- "comic"
summary: "Get a comic"
description: ""
operationId: "getComic"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- in: "path"
name: "id"
description: "Number of the comic"
required: true
type: "integer"
format: "int64"
responses:
200:
description: "successful operation"
schema:
$ref: "#/definitions/Comic"
definitions:
Comic:
type: "object"
properties:
month:
type: "string"
num:
type: "integer"
format: "int32"
link:
type: "string"
year:
type: "string"
news:
type: "string"
safe_title:
type: "string"
transcript:
type: "string"
alt:
type: "string"
img:
type: "string"
title:
type: "string"
day:
type: "string"
externalDocs:
description: "Find out more about Swagger"
url: "http://swagger.io"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment