<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuw27b</author_name>
  <author_url>https://blog.hatena.ne.jp/yuw27b/</author_url>
  <blog_title>yuw27b’s blog</blog_title>
  <blog_url>https://yuw27b.hatenablog.com/</blog_url>
  <categories>
    <anon>REST</anon>
  </categories>
  <description>Webアプリケーション用のRESTfulっぽいAPI*1を作っていて、複雑な検索クエリを受け取る必要が出てきたときのメモです。 悩み RESTfulの原則に従うと、検索クエリを投げて結果の一覧を取得する、というリクエストは、 「リソースの取得」なので、GETを使うべきです。 /api/entries/?q=xxx とか /api/entries/?created=20161129&amp;status=active みたいなURIになりますよね。こんな感じで検索キーワードが1つ2つなら良かったのですが、 今回作っていたのが限定されたユーザー向けのアプリで、多少検索に時間がかかってもいいから複雑なクエリ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuw27b.hatenablog.com%2Fentry%2F2016%2F12%2F02%2F234101&quot; title=&quot;RESTful APIで長い検索クエリを扱う - yuw27b’s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yuw27b/20161202/20161202233544.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-12-02 23:41:01</published>
  <title>RESTful APIで長い検索クエリを扱う</title>
  <type>rich</type>
  <url>https://yuw27b.hatenablog.com/entry/2016/12/02/234101</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
