168 lines
3.6 KiB
HTML
168 lines
3.6 KiB
HTML
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
/* Dark Theme */
|
|
body {
|
|
background-color: #222;
|
|
color: #fff;
|
|
}
|
|
|
|
/* Style the header */
|
|
html {
|
|
font-family: sans-serif;
|
|
font-size: 14.5pt;
|
|
width: 768px;
|
|
padding: 1px;
|
|
margin-top: 15px;
|
|
color: #fff; /* Text color */
|
|
}
|
|
|
|
a {
|
|
color: #007bff; /* Link color */
|
|
}
|
|
|
|
.header {
|
|
font-family: sans-serif;
|
|
padding: 10px 16px;
|
|
background: #333; /* Dark background */
|
|
color: #fff; /* Text color */
|
|
position: fixed;
|
|
top: 5px;
|
|
width: 768px;
|
|
}
|
|
|
|
input[type=text] {
|
|
width: 75%;
|
|
padding: 12px 20px;
|
|
margin: 8px 0;
|
|
box-sizing: border-box;
|
|
text-align: left;
|
|
font-size: 14.5pt;
|
|
background-color: #333; /* Dark background */
|
|
color: #fff; /* Text color */
|
|
border: 1px solid #555; /* Border color */
|
|
}
|
|
|
|
input[type=button], input[type=submit], input[type=reset] {
|
|
font-family: sans-serif;
|
|
background-color: #555; /* Dark button background */
|
|
border: none;
|
|
color: #fff; /* Button text color */
|
|
padding: 16px 32px;
|
|
text-decoration: none;
|
|
margin: 4px 2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
code {
|
|
background-color: #222;
|
|
color: #fff;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.definition {
|
|
padding: 8px;
|
|
font-family: sans-serif;
|
|
font-size: 14.5pt;
|
|
width: 768px;
|
|
padding: 1px;
|
|
color: #fff; /* Text color */
|
|
background-color: #222; /* Dark background */
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<h1>KJV API (Legacy edition)</h1>
|
|
|
|
<form action="/find">
|
|
<label for='kw'>Keyword Search</label><br>
|
|
<input type="text" name="kw"><br><br>
|
|
<input type="hidden" name="view" value="rich"">
|
|
<input type="submit">
|
|
<form>
|
|
|
|
|
|
<pre>
|
|
<code>
|
|
API ENDPOINT SPECIFICATION v 0.3
|
|
================================
|
|
|
|
<a href="/find">
|
|
/find</a> - Tries to show a verse, if it's not a verse
|
|
it will try to search your query. If it's a
|
|
single query it will try to find a definition
|
|
for the word as well. Only avaliable in "Rich"
|
|
and meant for interactive use/browsing
|
|
<a href="/random">/random</a> - outputs a random verse
|
|
<a href="/votd">/votd</a> - returns verse of the day
|
|
<a href="/search">/search</a> - returns a keyword search result set
|
|
<a href="/show">/show</a> - returns a verse or set of verses by name/location
|
|
<a href="/define">/define</a> - 1828 Noah Webster dictionary search
|
|
<a href="/seq">/seq</a> - Incremental sequence of Bible verses (per request)
|
|
|
|
URL PARAMETERS
|
|
==============
|
|
view=
|
|
- json - json-encoded response
|
|
- plain - plaintext response
|
|
- rich - pretty response with css
|
|
default: json
|
|
|
|
kw=
|
|
- Used with /search /show/ /define /find
|
|
- The keyword(s) of your query, separated by commas
|
|
-- ex ?kw=1cor5:1-5,2Peter2:5
|
|
|
|
getuid=
|
|
- Used only with /seq
|
|
- Set this to "true" to recieve a new UID for use with /seq?uid=
|
|
|
|
start=
|
|
- Used only with /seq
|
|
- You can use a ref like "1Cor5:1" to start there
|
|
instead of Genesis 1:1 as is the default
|
|
- Only used when creating a new UID
|
|
- If you want to "start in a new place" - just create a new UID
|
|
|
|
uid=
|
|
- Used only with /seq
|
|
- Required parameter for normal use of /seq
|
|
|
|
num=
|
|
- Used only with /seq
|
|
- You can get the "next # verses" in your sequence
|
|
|
|
FEATURES
|
|
========
|
|
- King James Only. (No heretical commentaries or false Bibles)
|
|
- High quality source documents
|
|
- Free
|
|
- Developer hates the sodomites
|
|
|
|
INTERACTIVE ENDPOINTS
|
|
=====================
|
|
The following endpoints will present you with a query box and
|
|
radio selector for choosing your output format.
|
|
- / (same function as /find)
|
|
- /search
|
|
- /define
|
|
- /show
|
|
|
|
|
|
EXAMPLES
|
|
========
|
|
api.tld/random
|
|
api.tld/votd?view=rich
|
|
api.tld/show?kw=john3:16,1john5:7&view=plain
|
|
|
|
BUGS
|
|
====
|
|
Suggestions, bug reports or improvements can be reported to <a href="https://1611.social/@tyler">@tyler@1611.social</a>
|
|
</code>
|
|
</pre>
|
|
</html>
|