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