<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kosukerino</author_name>
  <author_url>https://blog.hatena.ne.jp/kosukerino/</author_url>
  <blog_title>higmonta blog</blog_title>
  <blog_url>https://higmonta.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>apiのrspecを記載する時のjsonの記載方法を備忘録としてまとめます。 rspecでapiをリクエストする際に以下の記載にするとidの数値が文字列になってしまう。 spec/requests/〇〇_spec.rb let(:headers){ { 'Authorization' =&gt; &quot;Token token=\&quot;#{admin.authentication_token}\&quot;&quot;, 'Accept' =&gt; 'application/json' } } let(:api_url){ &quot;/api/v2/admin/test.json&quot; } context '時間を更新する場合' do let(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhigmonta.hatenablog.com%2Fentry%2F2025%2F04%2F10%2F033155&quot; title=&quot;apiのrspecを記載する時のjsonの記載方法 - higmonta 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-04-10 03:31:55</published>
  <title>apiのrspecを記載する時のjsonの記載方法</title>
  <type>rich</type>
  <url>https://higmonta.hatenablog.com/entry/2025/04/10/033155</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
