minify/docs/swagger.yaml

155 lines
3.2 KiB
YAML
Raw Permalink Normal View History

2022-04-28 00:48:21 +00:00
basePath: /api
host: minify.ccatss.dev
info:
contact:
email: admin@meow.tf
name: ccatss
url: https://ccatss.dev
description: An API Implementation of tdewolfe's minify package
license:
name: ISC License
url: /LICENSE.txt
termsOfService: http://swagger.io/terms/
title: Minifier API
version: "1.0"
paths:
/:
post:
consumes:
- text/html
- text/css
- image/svg+xml
- application/javascript
- application/json
- text/xml
description: Minify content based on input type
parameters:
- description: Input text
in: body
name: input
schema:
type: string
produces:
- text/plain
responses:
"200":
description: Minified content
schema:
type: string
summary: Minify content
/css:
post:
consumes:
- text/css
description: Minify CSS Input
parameters:
- description: Input CSS
in: body
name: input
schema:
type: string
produces:
- text/css
responses:
"200":
description: Minified CSS
schema:
type: string
summary: Minify CSS
/html:
post:
consumes:
- text/html
description: Minify HTML Input
parameters:
- description: Input HTML
in: body
name: input
schema:
type: string
produces:
- text/html
responses:
"200":
description: Minified HTML
schema:
type: string
summary: Minify HTML
/js:
post:
consumes:
- application/javascript
description: Minify JavaScript Input
parameters:
- description: Input JavaScript
in: body
name: input
schema:
type: string
produces:
- application/javascript
responses:
"200":
description: Minified JavaScript
schema:
type: string
summary: Minify JavaScript
/json:
post:
consumes:
- application/json
description: Minify JSON Input
parameters:
- description: Input JSON
in: body
name: input
schema:
type: string
produces:
- application/json
responses:
"200":
description: Minified JSON
schema:
type: string
summary: Minify JSON
/svg:
post:
consumes:
- image/svg+xml
description: Minify SVG Input
parameters:
- description: Input SVG
in: body
name: input
schema:
type: string
produces:
- image/svg+xml
responses:
"200":
description: Minified SVG
schema:
type: string
summary: Minify SVG
/xml:
post:
consumes:
- text/xml
description: Minify XML Input
parameters:
- description: Input XML
in: body
name: input
schema:
type: string
produces:
- text/xml
responses:
"200":
description: Minified XML
schema:
type: string
summary: Minify XML
swagger: "2.0"