Skip to content

Commit 52692d1

Browse files
committed
fixing typo in issue mattmakai#22 and working on API section
1 parent 16ac9ec commit 52692d1

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

application-programming-intefaces.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@
4242
<h1>Application Programming Interfaces</h1>
4343
<p>Application programming interfaces (APIs) provide machine-readable
4444
data transfer and signaling between applications.</p>
45+
<h2>Why are APIs important?</h2>
46+
<p>HTML, CSS and JavaScript create human-readable webpages. However, those
47+
webpages are not easily consumable by other machines. Numerous scraping
48+
programs and libraries exist to rip data out of HTML but it's simpler
49+
to consume data through APIs.</p>
50+
<h2>Webhook</h2>
51+
<p>A webhook is a user-defined HTTP callback.</p>
4552
<h2>API open source projects</h2>
4653
<ul>
4754
<li><a href="https://github.com/wordnik/swagger-core">Swagger</a> is an open source project

feeds/all.atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-05-25T04:04:46Z</updated></feed>
2+
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-05-26T11:50:37Z</updated></feed>

flask.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h2>Why is Flask a good web framework choice?</h2>
5858
<span class="k">return</span> <span class="err">&#39;</span><span class="n">Hello</span> <span class="n">World</span><span class="o">!</span><span class="err">&#39;</span>
5959

6060
<span class="k">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="err">&#39;</span><span class="n">__main__</span><span class="err">&#39;</span><span class="o">:</span>
61-
<span class="n">app</span><span class="p">.</span><span class="n">run</span><span class="p">()</span>
61+
<span class="n">app</span><span class="p">.</span><span class="n">run</span><span class="p">()</span>
6262
</pre></div>
6363

6464

source/content/pages/02-web-frameworks/0205-flask.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ equivalent in Django would be significantly more code):
3838
return 'Hello World!'
3939

4040
if __name__ == '__main__':
41-
app.run()
41+
app.run()
4242

4343
Flask was also written several years after Django and therefore
4444
learned from the Python community's reactions as the framework evolved.

source/content/pages/06-apis/0601-application-programming-interfaces.markdown

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ Application programming interfaces (APIs) provide machine-readable
2121
data transfer and signaling between applications.
2222

2323

24+
## Why are APIs important?
25+
HTML, CSS and JavaScript create human-readable webpages. However, those
26+
webpages are not easily consumable by other machines. Numerous scraping
27+
programs and libraries exist to rip data out of HTML but it's simpler
28+
to consume data through APIs.
29+
30+
31+
## Webhook
32+
A webhook is a user-defined HTTP callback.
33+
34+
2435
## API open source projects
2536
* [Swagger](https://github.com/wordnik/swagger-core) is an open source project
2637
written in Scala that defines a standard interface for RESTful APIs.

0 commit comments

Comments
 (0)