Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

すぐ使える!入門API設計ワークショップ

2,653 views

Published on

すぐ使える!入門API設計ワークショップ
https://supporterzcolab.com/event/145/

Published in: Technology
  • Be the first to comment

すぐ使える!入門API設計ワークショップ

  1. 1. 
 API 9 28 @
  2. 2. ” ” HAL WEB 4 pei0804 pei0804
  3. 3. 2018
  4. 4.
  5. 5. 19:10
  6. 6. API
  7. 7. API
  8. 8. API
  9. 9. API Application Programming Interface 
 
 
 
 Wikipedia
  10. 10.
  11. 11. 2 
 

  12. 12. 1 
 
 http://www.timer-tab.com/
  13. 13. • • ( )
  14. 14. API 
 :3 
 
http://www.timer-tab.com/
  15. 15. API
  16. 16. API
  17. 17. API =API
  18. 18. A A 
 A 
 
 
 API
  19. 19. WebAPI Connpass API 
 
 /events GET 
 
 
 
 API
  20. 20. 
 ↓
 API
  21. 21.
  22. 22. API 19:20
  23. 23. 
 
 
 
 
 

  24. 24. • • ( )
  25. 25. 
 
 :3 
 
http://www.timer-tab.com/
  26. 26.
  27. 27. • • • •
  28. 28. 19:25
  29. 29. URL
  30. 30. URL Uniform Resource Locator 
 
 
 Web
  31. 31. URL URI • /users 
 • /users/1
 ID 1
  32. 32. • • ( )
  33. 33. URL 
 
 :2 
 
http://www.timer-tab.com/
  34. 34. • /users/ • /users/1 ID 1 • ??????? • ??????? ID 1 • ??????? ID 1
  35. 35.
  36. 36. • /users/ • /users/1 ID 1 • /users • /users/1 ID 1 • /users/1 ID 1
  37. 37. • /users/ • /users/1 ID 1 • /users • /users/1 ID 1 • /users/1 ID 1
  38. 38. • /users/ • /users/1 ID 1 • /users • /users/1 ID 1 • /users/1 ID 1
  39. 39. HTTP 
 19:35
  40. 40. HTTP GET POST PUT DELETE
  41. 41. Twitter
  42. 42. GET /timeline
  43. 43. POST /timeline
  44. 44. • • • 

  45. 45. HTTP 
 :2 
 
http://www.timer-tab.com/
  46. 46. GET/POST/PUT/DELETE ???? /users ???? /users/1 ID ???? /users ???? /users/1 ID 1 ???? /users/1 ID 1
  47. 47. GET /users GET /users/1 ID POST /users PUT /users/1 ID 1 DELETE /users/1 ID 1
  48. 48. GET /users/1 ID POST /users PUT /users/1 ID 1 DELETE /users/1 ID 1 GET /users
  49. 49. • URL • KISS • URL • /self /me • URL /v1 
 •
  50. 50. HTTP 
 19:40
  51. 51. 
 

  52. 52. HTTP • 200 • 300 • 400 
 • 500 
 

  53. 53. 
 
 :2 
 
http://www.timer-tab.com/
  54. 54. • • ( )
  55. 55. 
 :4 
 
http://www.timer-tab.com/
  56. 56. GET /users (????) GET /users/1 ID (????) POST /users (????) PUT /users/1 ID 1 (????) DELETE /users/1 ID 1 (????)
  57. 57. GET /users (200) GET /users/1 ID (200) POST /users (201) PUT /users/1 ID 1 (200 OR 204) DELETE /users/1 ID 1 (204)
  58. 58. • 
 GitHub 
 401 
 • 200 OK • 400 500
  59. 59. JSON
 
 19:50
  60. 60. GET /users [ { "id" : 1 "name": "TOM" "email": "hogehoge@gmail.com" }, { "id" : 2 "name": "BOB" "email": "foooooo@gmail.com" },{…} ]
  61. 61. GET /users/1 { "id" : 1 "name": "TOM" "email": "hogehoge@gmail.com" }
  62. 62. API 
 :10 
 
http://www.timer-tab.com/
  63. 63. API • 
 • • • 

  64. 64. 
 
 REST Full
  65. 65. • 
 • 
 status:200 
 Header Header • data 
 Link RFC5988
  66. 66. • REST Full • API Swagger • GithubAPI • • CORS •

×