$30 off During Our Annual Pro Sale. View Details »

Mulesoft Anypoint Platform ハンズオン

Mulesoft Anypoint Platform ハンズオン

Mitsuhiro Okamoto

December 06, 2018
Tweet

More Decks by Mitsuhiro Okamoto

Other Decks in Technology

Transcript

  1. Mitsuhiro Okamoto Developer Evangelist at Salesforce @mitsuhiro Anypoint Platform 

  2. "MMDPOUFOUTh.VMF4PGU*OD .VMF4PGU劤㹺ך2VJDL4UBSU׾،ٖٝآ • #$Anypoint Studio (Eclipse!&IDE)(0 4  • Web

    "  +2  '6*- • 5)%,4/3 3 1. https://developer.mulesoft.com/guides/quick-start/designing-your-first-api
  3. "MMDPOUFOUTh.VMF4PGU*OD  ㉀ㅷ%#׾"1*⻉ׅ׷  زٓؿ؍حؙ׾盖椚ׅ׷  Web$! Database &JSON "%

    #%& Proxy& 劤傈ךعٝؤؔٝ
  4. כׄ׭ח  "OZQPJOU1MBUGPSNزٓ؎،ٕפך؟؎ٝ،حف

  5. "MMDPOUFOUTh.VMF4PGU*OD "OZQPJOU1MBUGPSNכ铩ד׮搀俱؟؎ٝ،حف〳腉 https://anypoint.mulesoft.com/login/#/signup

  6. 4UFQ "1*㹀纏ך⡲䧭

  7. "MMDPOUFOUTh.VMF4PGU*OD "1*㹀纏׾⡲䧭 1.   Design Center  2. +

    Create  API Specification  3. QuickStore-SpecCreate 
  8. "MMDPOUFOUTh.VMF4PGU*OD "1*鏣㹀 1. RAML"  &   http://bit.ly/jp_mulehandson_1 1.

     Mocking service:   On 2. API SummaryGet !# 3. Publish to Exchange API $
  9. 4UFQ .VMF"QQMJDBUJPO "1*㹋鄲 ך⡲䧭

  10. "MMDPOUFOUTh.VMF4PGU*OD .VMF"QQMJDBUJPOך⡲䧭 1.  Design Center ! 2. + Create

    Mule Application ! 3. QuickStore-ImplCreate  4.   Go Straight to Canvas 
  11. "MMDPOUFOUTh.VMF4PGU*OD )551-JTUFOFS׾㹀纏 1. TriggerHTTP Listener 2. Path : /api/products/{productId} 

    
  12. "MMDPOUFOUTh.VMF4PGU*OD %BUBCBTF$POOFDUPS׾㹀纏 1. HTTP Listener +    2.

    Database Connector 3. OperationSelect
  13. "MMDPOUFOUTh.VMF4PGU*OD %BUBCBTF$POOFDUPS 4FUVQ 1. Set up  2. Database Configuration

     Test  Save /BNF 1SPEVDUT@$POGJH $POOFDUJPO .Z42-$POOFDUJPO )PT U DPOHPEFWSFMNVMFTPGUDPN 1PSU  6TFS NVMFTPGU 1BTTXPSE NVMFTPGU %BUBCBTF QSPEVDUT VTF44-GBMTFBVUP3FDPOOFDUUSVF
  14. "MMDPOUFOUTh.VMF4PGU*OD %BUBCBTF$POOFDUPSˊ 2VFSZך㹀纏 1. SQL Query Text http://bit.ly/jp_mulehandson_2 2. Input

    Parameters - Key : id - Value : attributes.uriParams.productId SELECT product.*, CONCAT('["', (GROUP_CONCAT(variant.picture SEPARATOR '", "')),'"]') AS pictures, CONCAT('[', GROUP_CONCAT('{"',variant.identifierType, '":"', variant.identifier, '"}'),']') AS identifiers FROM product INNER JOIN variant ON product.uuid = variant.productUUID WHERE product.uuid = :id;
  15. "MMDPOUFOUTh.VMF4PGU*OD 5SBOTGPSN׾㹀纏 1. Database Connector +  2. Transform 3.

    Script  
  16. "MMDPOUFOUTh.VMF4PGU*OD %BUB8FBWF׾鏣㹀 1. Script DataWeave   http://bit.ly/jp_mulehandson_3 (Sample Data

     OK)
  17. "MMDPOUFOUTh.VMF4PGU*OD ،فٔ؛٦ءّٝך䮙⹛׾然钠 1. Run  " 2. !  Copy

    link  + “/api/products/1295527d-d3c7-11e7-9c84-06bf056d193e”   3. Sandbox  : http://quickstore-impl-srfy.jp-e1.cloudhub.io/api/products/1295527d-d3c7-11e7-9c84-06bf056d193e
  18. 4UFQ 3VOUJNF،فٔ؛٦ءّٝך然钠

  19. "MMDPOUFOUTh.VMF4PGU*OD 3VOUJNF،فٔ؛٦ءّٝך然钠 1.  Runtime Manager # 2.  

    !"  URL  !"  : http://quickstore-impl-srfy.jp-e1.cloudhub.io/api/products/1295527d-d3c7-11e7-9c84- 06bf056d193e
  20. 4UFQ "1*.BOBHFSח״׷1SPYZך鏣㹀

  21. "MMDPOUFOUTh.VMF4PGU*OD "1*1SPYZך⡲䧭 1.  API Manager 2. Manage API from

    Exchange
  22. "MMDPOUFOUTh.VMF4PGU*OD "1*1SPYZך䞔㜠Ⰵ⸂ 1.  "1*/BNF 2VJDL4UPSF4QFD "TTFU5ZQF 3".-0"4 "1*7FSTJPO W

    "TTFUWFSTJPO  .BOBHJOH5ZQF &OEQPJOUXJUI1SPYZ *NQMFNFOUBUJPO63* IUUQ<ZPVSBQQ>DMPVEIVCJPBQJ 1SPYZEFQMPZNFOUUBSHFU $MPVE)VC 1BUI BQJ $IFDLUIJTCPYJGZPVSBSFNBOBHJOH UIJT"1*JO.VMFPS BCPWF ثؑحؙ
  23. "MMDPOUFOUTh.VMF4PGU*OD "1*1SPYZךرفٗ؎  1SPYZך63-׾寸㹀׃גرفٗ؎  %FQMPZָ遤׻׸׷ךדծ1SPYZ穗歋דך ،ؙإأ׮然钠ׅ׷ : http://quickstore-xxx.jp-e1.cloudhub.io/api/products/1295527d-d3c7-11e7-9c84-06bf056d193e

  24. 4UFQ "1*1SPYZח״׷鸐⥋ךⵖ䖴

  25. "MMDPOUFOUTh.VMF4PGU*OD "1*هٔء٦׾鏣㹀 1. API ManagerAPI Policies  2. Apply New

    Policy Rate limiting -> 1.2.1    # of Req : 1 Time Period : 1 Time Unit : Minute
  26. "MMDPOUFOUTh.VMF4PGU*OD "1*هٔء٦ךⵖ䖴׾然钠ׅ׷ 1. ! ,*%  ( %.Shift + F5

    or ⌘R )&) 2. Quota!"   +- 3. 1$( #'  +-  : http://quickstore-xxx.jp-e1.cloudhub.io/api/products/1295527d-d3c7-11e7-9c84-06bf056d193e
  27. /FYU4UFQ

  28. "MMDPOUFOUTh.VMF4PGU*OD 8IBUˏTOFYU • Tutorials & How Tos •  

     How to(!") • RAML$ 1 (RAML 100) – • https://qiita.com/mokamoto/items/9f5e6d0347564639fcc7 • Mule standalone #AnyPoint Runtime Manager   • https://qiita.com/mokamoto/items/6fc8f0c9c65efdb36dde https://developer.mulesoft.com/tutorials-and-how-tos
  29. Thank You