From dce6100348f92663f855b3c791031fd5a991844a Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Mon, 26 Oct 2015 19:51:54 +0100 Subject: Remove old Appengine application. --- extras/appengine/sqlformat/templates/api.html | 66 --------------------------- 1 file changed, 66 deletions(-) delete mode 100644 extras/appengine/sqlformat/templates/api.html (limited to 'extras/appengine/sqlformat/templates/api.html') diff --git a/extras/appengine/sqlformat/templates/api.html b/extras/appengine/sqlformat/templates/api.html deleted file mode 100644 index 2b32cbb..0000000 --- a/extras/appengine/sqlformat/templates/api.html +++ /dev/null @@ -1,66 +0,0 @@ -{% extends "master.html" %} - -{% block title %}API{% endblock %} - -{% block main %} -

API Documentation

- -

- Using the API for this application is pretty simple. Just send a - request to -

-

- http://sqlformat.appspot.com/format/ -

- -

Options

-

- The server accepts various options to control formatting. Only - the data option is required. All others are optional.
- Either use GET and pack the options in the query string - or POST and submit your parameters as form data.
- When using POST make sure your request includes a - Content-Type: application/x-www-form-urlencoded header. -

- -
-
data
-
The SQL statement to format.
-
remove_comments
-
Set to 1 to remove comments.
-
keyword_case
-
How to convert keywords. Allowed values are 'lower', 'upper', - 'capitalize'.
-
identifier_case
-
How to convert identifiers. Allowed values are 'lower', 'upper', - 'capitalize'.
-
n_indents
-
An integer indicating the indendation depth.
-
right_margin
-
An integer indicating the maximum line length.
-
output_format
-
Transfer the statement into another programming language. - Allowed values are 'python', 'php'
-
- -

Example

-

- Here's a example in Python: -

-{% include "python-client-example.html" %} -

- Download sqlformat_example_client.py -

- -

- And another example using curl and a GET request: -

-
-$ curl "http://sqlformat.appspot.com/format?keyword_case=upper&reindent=true&data=select%20*%20from%20foo;"
-SELECT *
-FROM foo;
-$
-
- - -{% endblock %} -- cgit v1.2.1