mirror of
https://github.com/almet/notmyidea.git
synced 2025-04-28 19:42:37 +02:00
49 lines
No EOL
2 KiB
HTML
49 lines
No EOL
2 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" media="screen" charset="utf-8">
|
|
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Alexis' log ATOM Feed" />
|
|
<title>Alexis Métaireau</title>
|
|
</head>
|
|
<body>
|
|
<div id="top">
|
|
<p class="author"><a href=".">Alexis Métaireau</a>'s thougths</p>
|
|
<ul class="links"></ul>
|
|
</div>
|
|
<div class="content clear">
|
|
<h1>Introducing cornice</h1>
|
|
<p class="date">Published on Tue 06 December 2011</p>
|
|
<p>Wow, this is my second working day at mozilla. I've been working, yesterday and
|
|
today, on a pyramid REST-ish toolkit, <a class="reference external" href="https://github.com/mozilla-services/cornice">cornice</a>.</p>
|
|
<p>Cornice allows you to take out from you all the repetitive stuff you do when
|
|
writing a web service. I'm mainly thinking about different kinds of validation.</p>
|
|
<p>To describe a web service in <em>cornice</em>, you have to write something like this</p>
|
|
<div class="system-message">
|
|
<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">./content/mozilla/introducing-cornice.rst</tt>, line 14)</p>
|
|
<p>Content block expected for the "code-block" directive; none found.</p>
|
|
<pre class="literal-block">
|
|
.. code-block:: python
|
|
|
|
|
|
</pre>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="comments">
|
|
<h2>Comments</h2>
|
|
<div id="disqus_thread"></div>
|
|
<script type="text/javascript">
|
|
var disqus_identifier = "introducing-cornice.html";
|
|
(function() {
|
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
dsq.src = 'http://blog-notmyidea.disqus.com/embed.js';
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
})();
|
|
</script>
|
|
</div>
|
|
|
|
</div>
|
|
</body>
|
|
</html> |