<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>taichiw</author_name>
  <author_url>https://blog.hatena.ne.jp/taichiw/</author_url>
  <blog_title>エンジニア的なネタを毎週書くブログ</blog_title>
  <blog_url>https://taichiw.hatenablog.com/</blog_url>
  <categories>
    <anon>API</anon>
    <anon>設計</anon>
  </categories>
  <description>勉強不足なのは承知のうえで、実務上困ってることとか考えていることを今日は書いてみたいと思います。 例えば以下の様なデータを取り扱うREST APIをつくろうとしたとします。 あるECサイトにおいて、商品の料金を取り扱うAPI 商品は既にDBに登録されていて、料金のみこのAPIで扱う 1商品あたり、料金は2種類ある。通常料金と、お得意様用料金。 2種類の料金は、以下の組み合わせが許容される 初期投入の時は、こういうデータをPOSTすると思います。(Item IDはURIに入れるほうが正しいかも） { &quot;itemID&quot;: 123, &quot;rate&quot;:[ {&quot;rateType&quot;:&quot;通常料金&quot;, &quot;val…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaichiw.hatenablog.com%2Fentry%2F2014%2F07%2F05%2F133720&quot; title=&quot;更新系のAPIって難しい１　部分更新のはなし - エンジニア的なネタを毎週書くブログ&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>http://cdn-ak.f.st-hatena.com/images/fotolife/t/taichiw/20140705/20140705125422.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-07-05 13:37:20</published>
  <title>更新系のAPIって難しい１　部分更新のはなし</title>
  <type>rich</type>
  <url>https://taichiw.hatenablog.com/entry/2014/07/05/133720</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
