Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Devsumi2016 OuchHackLT RESTful Toilet

Keiichiro
February 20, 2016

Devsumi2016 OuchHackLT RESTful Toilet

トイレにRESTfulなAPIを実装してみた
Developers Summit 2016 19-E-7 おうちハックLT大会で発表したスライドです。

Keiichiro

February 20, 2016
Tweet

More Decks by Keiichiro

Other Decks in Technology

Transcript

  1. ϦϞίϯ͔ΒίʔυΛऔಘ τΠϨͷϦϞίϯ͕ ૹ৴͍ͯ͠Δ৴߸Λ(&5 ྲྀ͢ খ ྲྀ͢ େ ఀࢭ ఀࢭ ΍ΘΒ͔

    ΍ΘΒ͔ ૹ৴։࢝Ϧʔμ෦ ໿NT NT  σʔλ෦ NT NT͕ଓ͘ ྲྀ͢Ҏ֎ͷίϚϯυ͸ ճʹ෼͚ͯૹ৴͞Ε͍ͯΔ
  2. ϓϩάϥϜΛॻ͘ॻ͖ࠐΉ  ແઢ-"/઀ଓ͢Δ  αʔόىಈ  ϦΫΤετΛड͚Δ  ੺֎ઢૹ৴ &41DPSFGPS"SEVJOP

    IUUQTHJUIVCDPNFTQ"SEVJOP  &418300.Λ୯ମͰ "SEVJOPͷΑ͏ʹ࢖͑Δ  *3SFNPUF&41 IUUQTHJUIVCDPNNBSLT[BCP*3SFNPUF&41  L)[Ͱมௐͯ͠੺֎ઢ-&%Λ ఺໓ͤ͞ΔϥΠϒϥϦ τʔλϧ ߦ͘Β͍
  3. UPJMFUMPDBMXBTIMFU ͓͠ΓΛચড়͍ͨ͠ͱ͖ curl -X POST -d 'c=rear' http://toilet.local/washlet ચড়ΛࢭΊ͍ͨͱ͖ curl

    -X POST -d 'c=stop' http://toilet.local/washlet
 exam ple ® ΢ΥγϡϨοτ, Washlet͸TOTOͷొ࿥঎ඪͰ͢