Permalink
Browse files

Installed new theme

  • Loading branch information...
1 parent e35b6ba commit 005804e2e828690dd1765542fd048967c4d02e8f @jaytaph jaytaph committed Jan 16, 2016
Showing with 26,803 additions and 1,497 deletions.
  1. +1 −1 README.md
  2. +4 −0 _config.yml
  3. +10 −0 _includes/disqus_count.html
  4. +11 −0 _includes/disqus_load.html
  5. +9 −0 _includes/footer.html
  6. +0 −31 _includes/head.html
  7. +37 −0 _includes/head_base.html
  8. 0 _includes/head_recipe.html
  9. +9 −0 _includes/header.html
  10. +0 −6 _includes/navigation.html
  11. +3 −0 _includes/needs_answer.html
  12. +0 −7 _includes/sidebar.html
  13. +26 −0 _layouts/base.html
  14. +0 −59 _layouts/default.html
  15. +36 −27 _layouts/recipe.html
  16. +1 −1 _posts/2012-12-12-400-vs-500.html
  17. +2 −2 _posts/2012-12-12-acceptlanguage.html
  18. +1 −1 _posts/2012-12-12-idempotency.html
  19. +1 −1 _posts/2012-12-12-patch.html
  20. +1 −1 _posts/2012-12-12-put-vs-post.html
  21. +1 −1 _posts/2012-12-12-rest-presentations.html
  22. +1 −1 _posts/2012-12-13-asynchroneous-operations.html
  23. +1 −1 _posts/2012-12-13-link-types.html
  24. +1 −1 _posts/2012-12-13-pagination.html
  25. +1 −1 _posts/2012-12-13-using-custom-content-types.html
  26. +1 −1 _posts/2012-12-14-rest-and-http.html
  27. +1 −2 _posts/2012-12-14-richardsonmaturitymodel.html
  28. +2 −2 _posts/2012-12-17-codeondemand.html
  29. +1 −1 _posts/2012-12-17-hateoas.html
  30. +1 −1 _posts/2012-12-17-json.html
  31. +2 −3 _posts/2012-12-17-versioning.html
  32. +1 −1 _posts/2012-12-18-caching.html
  33. +1 −1 _posts/2013-04-20-loggingin.html
  34. +1 −1 _posts/2013-04-20-options.html
  35. +10 −0 _theme/404.html
  36. +9 −0 _theme/Gemfile
  37. +21 −0 _theme/LICENCE
  38. +15 −0 _theme/README.md
  39. +60 −0 _theme/_config.yml
  40. +10 −0 _theme/_includes/disqus_count.html
  41. +11 −0 _theme/_includes/disqus_load.html
  42. +44 −0 _theme/_includes/footer.html
  43. +18 −0 _theme/_includes/head_base.html
  44. +3 −0 _theme/_includes/head_post.html
  45. +42 −0 _theme/_includes/header.html
  46. +44 −0 _theme/_includes/post_list.html
  47. +23 −0 _theme/_includes/post_list_item.html
  48. +20 −0 _theme/_layouts/base.html
  49. +38 −0 _theme/_layouts/markdownreader_bare.html
  50. +43 −0 _theme/_layouts/post.html
  51. 0 _theme/_layouts/tagOrCat.html
  52. +467 −0 _theme/_posts/2015-09-26-Http_headers_and_PHP_header()_function.md
  53. +193 −0 _theme/_posts/2015-09-28-Understanding_the_diff_command_in_unix.md
  54. +1,669 −0 _theme/_posts/2015-11-19-learning-note-YII(1.1).md
  55. +181 −0 _theme/_posts/Understanding_the_diff_command_in_unix.md
  56. +96 −0 _theme/_qqGroupGuide/javascript.md
  57. +15 −0 _theme/_sass/base.scss
  58. +18 −0 _theme/_sass/base/_base.scss
  59. +5 −0 _theme/_sass/base/_ie8.scss
  60. +424 −0 _theme/_sass/base/_normalize.scss
  61. +841 −0 _theme/_sass/bootstrap/_grid.scss
  62. +2,020 −0 _theme/_sass/font/font-awesome.css
  63. +7 −0 _theme/_sass/font/font-awesome.css.map
  64. +748 −60 assets/resources/font-awesome/css/font-awesome.css → _theme/_sass/font/font-awesome.scss
  65. +44 −0 _theme/_sass/layout/_footer.scss
  66. +195 −0 _theme/_sass/layout/_header.scss
  67. +298 −0 _theme/_sass/layout/_main.scss
  68. +15 −0 _theme/_sass/theme/_theme.scss
  69. +115 −0 _theme/_sass/theme/post.html
  70. +21 −0 _theme/_sass/utility/_setting.scss
  71. +33 −0 _theme/_sass/utility/_utility.scss
  72. +59 −0 _theme/about/index.html
  73. +7 −0 _theme/building/index.html
  74. +27 −0 _theme/category/index.html
  75. +26 −0 _theme/config.rb
  76. BIN _theme/favicon.ico
  77. +30 −0 _theme/feed.xml
  78. BIN _theme/fonts/FontAwesome.otf
  79. BIN _theme/fonts/fontawesome-webfont.eot
  80. +264 −38 {assets/resources/font-awesome → _theme}/fonts/fontawesome-webfont.svg
  81. BIN _theme/fonts/fontawesome-webfont.ttf
  82. BIN _theme/fonts/fontawesome-webfont.woff
  83. BIN _theme/fonts/fontawesome-webfont.woff2
  84. BIN _theme/images/bkg.png
  85. BIN _theme/images/blacktocat.png
  86. BIN _theme/images/body-bg.png
  87. BIN _theme/images/highlight-bg.jpg
  88. BIN _theme/images/hr.png
  89. BIN _theme/images/mdreader_backTop.gif
  90. BIN _theme/images/me.png
  91. BIN _theme/images/monokaibg.jpg
  92. BIN _theme/images/octocat-icon.png
  93. BIN _theme/images/tar-gz-icon.png
  94. BIN _theme/images/zebra.jpg
  95. BIN _theme/images/zip-icon.png
  96. +5 −0 _theme/index.html
  97. +7 −0 _theme/javascripts/baidu_statistics.js
  98. +7 −0 _theme/javascripts/base.js
  99. +8 −0 _theme/javascripts/html5shiv.js
  100. +5 −0 _theme/javascripts/jquery.js
  101. +38 −0 _theme/javascripts/listAndPagi.js
  102. +55 −0 _theme/javascripts/markdownreader.js
  103. +55 −0 _theme/javascripts/markdownreader_bare.js
  104. +11 −0 _theme/javascripts/pagination.js
  105. +345 −0 _theme/javascripts/simplePagination.js
  106. +1 −0 _theme/params.json
  107. +79 −0 _theme/resume/index.md
  108. +7 −0 _theme/sitemap.txt
  109. +24 −0 _theme/sitemap.xml
  110. +4,648 −0 _theme/stylesheets/base.css
  111. +26 −0 _theme/stylesheets/code_block.css
  112. +2,643 −0 _theme/stylesheets/font/font-awesome.css
  113. +116 −0 _theme/stylesheets/github-dark.css
  114. +116 −0 _theme/stylesheets/github-light.css
  115. 0 _theme/stylesheets/index.md
  116. +138 −0 _theme/stylesheets/markdownreader.css
  117. +102 −0 _theme/stylesheets/markdownreader_bare.css
  118. +424 −0 _theme/stylesheets/normalize.css
  119. +71 −0 _theme/stylesheets/pygments.css
  120. +63 −0 _theme/stylesheets/pygments_monokai.css
  121. +187 −0 _theme/stylesheets/simplePagination.css
  122. +373 −0 _theme/stylesheets/stylesheet.css
  123. +28 −0 _theme/tag/index.html
  124. BIN android-icon-144x144.png
  125. BIN android-icon-192x192.png
  126. BIN android-icon-36x36.png
  127. BIN android-icon-48x48.png
  128. BIN android-icon-72x72.png
  129. BIN android-icon-96x96.png
  130. BIN apple-icon-114x114.png
  131. BIN apple-icon-120x120.png
  132. BIN apple-icon-144x144.png
  133. BIN apple-icon-152x152.png
  134. BIN apple-icon-180x180.png
  135. BIN apple-icon-57x57.png
  136. BIN apple-icon-60x60.png
  137. BIN apple-icon-72x72.png
  138. BIN apple-icon-76x76.png
  139. BIN apple-icon-precomposed.png
  140. BIN apple-icon.png
  141. +0 −185 assets/css/style.css
  142. BIN assets/ico/apple-touch-icon-114-precomposed.png
  143. BIN assets/ico/apple-touch-icon-144-precomposed.png
  144. BIN assets/ico/apple-touch-icon-57-precomposed.png
  145. BIN assets/ico/apple-touch-icon-72-precomposed.png
  146. BIN assets/ico/favicon.png
  147. +0 −16 assets/js/app.js
  148. BIN assets/media/dbyll-ss.png
  149. +0 −9 assets/resources/bootstrap/css/bootstrap.min.css
  150. +0 −6 assets/resources/bootstrap/js/bootstrap.min.js
  151. +0 −4 assets/resources/font-awesome/css/font-awesome.min.css
  152. BIN assets/resources/font-awesome/fonts/FontAwesome.otf
  153. BIN assets/resources/font-awesome/fonts/fontawesome-webfont.eot
  154. BIN assets/resources/font-awesome/fonts/fontawesome-webfont.ttf
  155. BIN assets/resources/font-awesome/fonts/fontawesome-webfont.woff
  156. +0 −1 assets/resources/jquery/jquery-1.10.2.min.map
  157. +0 −6 assets/resources/jquery/jquery.min.js
  158. +0 −65 assets/resources/syntax/syntax.css
  159. +2 −0 browserconfig.xml
  160. +4,612 −0 css/base.css
  161. +0 −30 css/blueprint/print.css
  162. +0 −259 css/blueprint/screen.css
  163. +0 −9 css/bootstrap.min.css
  164. +2,643 −0 css/font/font-awesome.css
  165. +0 −180 css/hc.css
  166. +0 −320 css/main.css
  167. +424 −0 css/normalize.css
  168. +18 −92 css/restcookbook.css
  169. +373 −0 css/stylesheet.css
  170. +0 −60 css/syntax.css
  171. BIN favicon-16x16.png
  172. BIN favicon-32x32.png
  173. BIN favicon-96x96.png
  174. BIN favicon.ico
  175. +30 −0 feed.xml
  176. BIN fonts/FontAwesome.otf
  177. BIN fonts/fontawesome-webfont.eot
  178. +640 −0 fonts/fontawesome-webfont.svg
  179. BIN fonts/fontawesome-webfont.ttf
  180. BIN fonts/fontawesome-webfont.woff
  181. BIN fonts/fontawesome-webfont.woff2
  182. BIN img/bkg.png
  183. BIN img/blacktocat.png
  184. BIN img/body-bg.png
  185. BIN img/highlight-bg.jpg
  186. BIN img/hr.png
  187. BIN img/mdreader_backTop.gif
  188. BIN img/me.png
  189. BIN img/monokaibg.jpg
  190. BIN img/octocat-icon.png
  191. BIN img/tar-gz-icon.png
  192. BIN img/zebra.jpg
  193. BIN img/zip-icon.png
  194. +2 −2 index.html
  195. +8 −0 js/html5shiv.js
  196. +41 −0 manifest.json
  197. BIN ms-icon-144x144.png
  198. BIN ms-icon-150x150.png
  199. BIN ms-icon-310x310.png
  200. BIN ms-icon-70x70.png
  201. +7 −0 sitemap.txt
  202. +24 −0 sitemap.xml
View
@@ -6,7 +6,7 @@ Contributing to our site is simple:
* Fork the website to your own github account.
* Clone your repository onto your computer. Make sure you create a new branch, and not use the master branch.
* Create a new page inside the /_posts/* directory. This HAS GOT TO BE IN THE FORMAT OF YEAR-MONTH-DAY-FILENAME.html!!!
- * Add & commit your changes, and push it to your repository.
+ * Add and commit your changes, and push it to your repository.
* Create a pull request and we will try and merge your recipe.
Creating a new page
View
4 _config.yml 100755 → 100644
@@ -1,3 +1,7 @@
permalink: /:categories/:title/
exclude:
- README.md
+
+url: http://www.restcookbook.com
+name: restcookbook.com
+disqus_shortname: restcookbook
@@ -0,0 +1,10 @@
+<script type="text/javascript">
+ var disqus_shortname = "{{ site.disqus_shortname }}";
+
+ (function () {
+ var s = document.createElement('script'); s.async = true;
+ s.type = 'text/javascript';
+ s.src = '//' + disqus_shortname + '.disqus.com/count.js';
+ (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
+ }());
+</script>
@@ -0,0 +1,11 @@
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+ var disqus_shortname = "{{ site.disqus_shortname }}";
+
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+</script>
+<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
@@ -0,0 +1,9 @@
+{% assign my = site.my %}
+<footer id="l-footer">
+ <div class="container">
+
+ <p id="legal">
+ Maintained by Joshua Thijssen | Powered by <a href="http://jekyllrb.com">Jekyll</a> &amp; <a href="http://github.com/restcookbook">GitHub</a> | Design adapted on jekyll theme by <a href="http://unifreak.github.io">UniFreak</a>
+ </p>
+ </div>
+</footer>
View
@@ -1,31 +0,0 @@
-<!-- meta information -->
-<meta charset="utf-8">
-<meta name="description" {% if page.title == "Home" %}
- content="{{ site.data.brume.description }}" {% else %}
- content="{{ page.content | strip_html | strip_newlines | truncate: 120 }}" {% endif %}>
-<meta name="author" content="{{ site.data.brume.author }}">
-
-<!-- Enable responsiveness on mobile devices-->
-<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
-
-<!-- title -->
-<title>{% if page.title %} {{ page.title }} | {% endif %} - The RESTful cookbook</title>
-
-<!-- icons -->
-<link rel="shortcut icon" href="{{site.baseurl}}/public/images/favicon.ico" />
-
-<!-- stylesheets -->
-<link href="{{ site.BASE_PATH }}/assets/resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
-<link href="{{ site.BASE_PATH }}/assets/resources/font-awesome/css/font-awesome.min.css" rel="stylesheet">
-<link href="{{ site.BASE_PATH }}/assets/resources/syntax/syntax.css" rel="stylesheet">
-<link href="{{ site.BASE_PATH }}/assets/css/style.css" rel="stylesheet">
-
-<link href="{{ site.BASE_PATH }}/css/restcookbook.css" rel="stylesheet">
-
-<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
-<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
-<![endif] d-->
-
-<!-- Google fonts -->
-<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic&subset=latin-ext">
@@ -0,0 +1,37 @@
+<meta charset="utf-8">
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
+
+<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %} - The RESTful cookbook</title>
+
+<!-- favicon -->
+<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
+<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
+<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
+<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
+<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
+<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
+<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
+<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
+<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
+<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
+<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
+<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
+<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
+<link rel="manifest" href="/manifest.json">
+<meta name="msapplication-TileColor" content="#ffffff">
+<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
+<meta name="theme-color" content="#ffffff">
+
+<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
+<link rel="stylesheet" type="text/css" href="/css/base.css">
+<link rel="stylesheet" type="text/css" href="/css/restcookbook.css">
+
+<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
+<!--[if lt IE 9]>
+ <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
+<![endif] d-->
+
+<!-- Google fonts -->
+<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,400italic&subset=latin-ext">
No changes.
@@ -0,0 +1,9 @@
+<header id="l-header">
+ <div class="container">
+ <div class="row logo">
+ <h1><a href="/">{{ site.name }}</a></h1>
+ <p>How to do stuff RESTful</p>
+ </div>
+
+ </div>
+</header>
@@ -1,6 +0,0 @@
-<nav class="col span_10 top-navbar">
- {% for link in site.data.links %}
- <a href="{{ link.url }}" title="{{ link.title }}"
- {% if page.title == link.title %}class="current-page"{% endif %}>{{ link.title }}</a>
- {% endfor %}
-</nav>
@@ -0,0 +1,3 @@
+<div class="alert alert-warning" role="alert">
+ This question still needs answering. If you like to help, make a pull request for this question.
+</div>
View
7 _includes/sidebar.html 100755 → 100644
@@ -1,10 +1,3 @@
-<!-- sidebar.html -->
-<header class="sidebar-header" role="banner">
- <h3 class="title">
- <a href="{{ site.BASE_PATH }}/">{{ site.title }}</a>
- </h3>
-</header>
-
<h2>Topics</h2>
<ul class="topics">
View
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ {% include head_base.html %}
+
+</head>
+
+<body>
+ {% include header.html %}
+
+ <section id="l-main">
+ <div class="container">
+ <div class="row">
+ <div id="content" class="col-xs-12 col-sm-9 col-sm-push-3">
+ {{ content }}
+ </div>
+ <div class="col-xs-12 col-sm-3 col-sm-pull-9 sidebar">
+ {% include sidebar.html %}
+ </div>
+ </div>
+ </div>
+ </section>
+
+ {% include footer.html %}
+</body>
+</html>
View
@@ -1,59 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html>
- <head>
- {% include head.html %}
-
- <!--<link href='/css/restcookbook.css' type='text/css' rel='stylesheet' media='screen, projection'>-->
-
- <script type="text/javascript">var switchTo5x=true;</script>
- <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
- <script type="text/javascript">stLight.options({publisher: "ur-d42e1020-2570-67a2-4a62-8793edf858c5"});</script>
- </head>
-
- <body>
-
- <div><a href="https://github.com/restcookbook/restcookbook"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a></div>
-
-
- <div class="col-sm-3 sidebar">
- {% include sidebar.html %}
- </div>
-
- <div class="col-sm-9">
- <header>
- <h1 align="right"><a href='/'>The RESTful CookBook</a></h1>
- <h4 align="right"><em>How to do stuff RESTful</em></h4>
- <hr>
- <br>
- <br>
- </header>
-
- {{ content }}
-
- <footer>
- <hr/>
- <p>
- This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/deed.en_US">Creative Commons Attribution-NonCommercial 4.0 International License</a>.
- <br>
- Like to contribute? Add your recipe to our <a href="http://github.com/restcookbook/restcookbook">github repository</a>.
- <br>
- Looking for Puppet recipies? Try the <a href="http://www.puppetcookbook.com">Puppet CookBook</a>.
- </p>
-
- </footer>
- </div>
-
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-53222355-1', 'auto');
- ga('send', 'pageview');
-
- </script>
-
- </body>
-</html>
-
View
@@ -1,27 +1,36 @@
----
-layout: default
----
-
-{{ content }}
-
-<div style='margin: 3em'>
- <span class='st_facebook_hcount' title='Facebook'></span>
- <span class='st_twitter_hcount' title='Tweet'></span>
- <span class='st_linkedin_hcount' title='LinkedIn'></span>
- <span class='st_googleplus_hcount' title='Google +'></span>
- <span class='st_email_hcount' title='Email'></span>
- <br>
- <br>
- <hr>
- <div style='float:right'>
- <address>This recipe has been written by
- {% if page.author_email %}
- <a href="mailto://{{ page.author_email }}">{{ page.author }}</a>.
- {% else %}
- {{ page.author }}.
- {% endif %}
- </address>
- </div>
- <br>
-</div>
-
+<!DOCTYPE html>
+<html>
+<head>
+ {% include head_base.html %}
+ {% include head_recipe.html %}
+</head>
+
+<body>
+ {% include header.html %}
+
+ <div class="container">
+ <div class="row">
+
+ <div id="content" class="col-xs-12 col-sm-9 col-sm-push-3">
+
+ {% if page.needs_anwser %}
+ {% include needs_answer.html %}
+ {% endif %}
+
+ {{ content }}
+
+ <hr>
+
+ {% include disqus_load.html %}
+ </div>
+ <div class="col-xs-12 col-sm-3 col-sm-pull-9 sidebar">
+ {% include sidebar.html %}
+ </div>
+ </div>
+
+ </div>
+
+ {% include footer.html %}
+
+</body>
+</html>
@@ -6,7 +6,7 @@
author_email: jthijssen@noxlogic.nl
---
-<p class="question">When should we return 4xx or 5xx status codes to the client?</p>
+<h2 class="question">When should we return 4xx or 5xx status codes to the client?</h2>
<p>4xx codes are used to tell the client that a fault has taken place on THEIR side. They should not retransmit the same
request again, but fix the error first.</p>
@@ -6,8 +6,8 @@
author_email: jthijssen@noxlogic.nl
---
-<p class="question">If an HTTP Accept header can't be satisfied, return a [406]. If an Accept-Language header can't be
- satisfied, what's the proper response code?</p>
+<h2 class="question">If an HTTP Accept header can't be satisfied, return a [406]. If an Accept-Language header can't be
+ satisfied, what's the proper response code?</h2>
<h3>Answer</h3>
<p>You should return a [406]. RFC 2616 10.4.7 says "accept headers" plural. This suggests every Accept-* header that
@@ -6,7 +6,7 @@
author_email: jthijssen@noxlogic.nl
---
-<p class="question">What are idempotent and/or safe methods?</p>
+<h2 class="question">What are idempotent and/or safe methods?</h2>
<p>Safe methods are HTTP methods that do not modify resources. For instance, using [GET] or [HEAD] on a resource URL, should
NEVER change the resource. However, this is not completely true. It means: it won't change the resource representation.
@@ -6,7 +6,7 @@
author_email: jthijssen@noxlogic.nl
---
-<p class="question">When should we use the PATCH HTTP method?</p>
+<h2 class="question">When should we use the PATCH HTTP method?</h2>
<p>The HTTP methods [PATCH] can be used to update partial resources. For instance, when you only need to update one
field of the resource, [PUT]ting a complete resource representation might be cumbersome and utilizes more bandwidth</p>
@@ -6,7 +6,7 @@
author_email: jthijssen@noxlogic.nl
---
-<p class="question">When should we use PUT and when should we use POST?</p>
+<h2 class="question">When should we use PUT and when should we use POST?</h2>
<p>The HTTP methods [POST] and [PUT] aren't the HTTP equivalent of the CRUD's create and update. They both serve a
different purpose. It's quite possible, valid and even preferred in some occasions, to use [POST] to create resources,
@@ -6,7 +6,7 @@
author_email: jthijssen@noxlogic.nl
---
-<p class="question">Where can we find REST presentations?</p>
+<h2 class="question">Where can we find REST presentations?</h2>
<p>There are many (good) presentations about REST and HTTP out there. Most of these can be found on local meetups or
development conferences all over the world. See below for some of the slides of these presentations.</p>
@@ -6,7 +6,7 @@
author_email: jthijssen@noxlogic.nl
---
-<p class="question">How can I let users create resources that might take a considerable amount of time. I cannot have my users wait on the API to finish.</p>
+<h2 class="question">How can I let users create resources that might take a considerable amount of time. I cannot have my users wait on the API to finish.</h2>
<p>Instead of creating the actual resources, create a temporary one. Instead of returning a [201] (Created) HTTP response, you can then issue at
[202] (Accepted) response code. This informs the client that the request has been accepted and understood by the server, but the resource is not (yet) created.
@@ -6,7 +6,7 @@
author_email: jthijssen@noxlogic.nl
---
-<p class="question">How does a client know what to do when encountering a link-type inside a rel-tag?</p>
+<h2 class="question">How does a client know what to do when encountering a link-type inside a rel-tag?</h2>
<p>Using links is the most important part of HATEOAS. With links, clients can discover the possibilities and actions that
can take place in your API. However, clients should know what a specific link does. This can be found through the
@@ -6,7 +6,7 @@
author_email: jthijssen@noxlogic.nl
---
-<p class="question">If I have a (large) collection of resources, how can I supply a client with a paginated list?</p>
+<h2 class="question">If I have a (large) collection of resources, how can I supply a client with a paginated list?</h2>
<p>Don't use custom pagination systems like adding a page number to the URL or query string. Instead, use link relations.</p>
@@ -6,7 +6,7 @@
author_email: jthijssen@noxlogic.nl
---
-<p class="question">How can I create my own custom content-types that are representations of users, categories, articles etc?</p>
+<h2 class="question">How can I create my own custom content-types that are representations of users, categories, articles etc?</h2>
<p>Do not use a standard text/xml content-type. A client is not capable of handling this kind of information. Instead, use a custom format in the following form:</p>
Oops, something went wrong.

0 comments on commit 005804e

Please sign in to comment.