SlideShare a Scribd company logo
1 of 46
Download to read offline
Malaysia Open Source
                                     Conference 2011




                                    REST in pieces (with Frapi)
                                    Errazudin Ishak




www.mimos.my   © 2009 MIMOS Berhad. All Rights Reserved.
http://goo.gl/EH9v7




        This talk is not
www.mimos.my   © 2011 MIMOS Berhad. All Rights Reserved.
popmatters.com




        This talk is not
www.mimos.my   © 2011 MIMOS Berhad. All Rights Reserved.
obscurehorror.com




        This talk is not
www.mimos.my   © 2011 MIMOS Berhad. All Rights Reserved.
iloveyourtshirt.com




        This talk is not
www.mimos.my   © 2011 MIMOS Berhad. All Rights Reserved.
Agenda

        • You
        • Me
        • Webservices
        • REST
        • Frapi
        • Resources
        • Takeaway

www.mimos.my      © 2011 MIMOS Berhad. All Rights Reserved.
..in 30mins?

www.mimos.my   © 2011 MIMOS Berhad. All Rights Reserved.
http://goo.gl/tOJGn



        About You

        • _________




www.mimos.my        © 2011 MIMOS Berhad. All Rights Reserved.
About Me
        • Errazudin Ishak
        • @errazudin
        • Senior engineer @ Mimos Bhd Malaysia
        • Focuses on web application development,
          deployment, performance and stability.
        • 2009 : foss.my , MyGOSSCON
        • 2010 : Entp. PHP Techtalk, BarcampKL, PHP
                 Meetup, MOSC2010, PHP Northwest UK,
                 MyGOSSCON
        • 2011 : INTAN Tech Update, Wordpress Conf. Asia,
                 Joomla! Day
www.mimos.my          © 2011 MIMOS Berhad. All Rights Reserved.
www.mimos.my   © 2011 MIMOS Berhad. All Rights Reserved.
http://goo.gl/yE2Tx



        Webservices




www.mimos.my          © 2011 MIMOS Berhad. All Rights Reserved.
http://goo.gl/yE2Tx



        Webservices




                                             SOA
               RPC                                                REST




www.mimos.my          © 2011 MIMOS Berhad. All Rights Reserved.
http://goo.gl/Ovswf



        REST




www.mimos.my
                    Hype?
               © 2011 MIMOS Berhad. All Rights Reserved.
REST

               Protocol Usage by APIs



                                                                        REST
                                                                        SOAP
                                                                        JavaScript
                                                                        XML-RPC
                                                                        Atom


                                                      http://www.programmableweb.com/apis
                                                                             04-07-2011




www.mimos.my     © 2011 MIMOS Berhad. All Rights Reserved.
REST

                XML-RPC                          Protocol Usage by APIs
               JavaScript             Atom


               SOAP



                                                                    REST




                                                            http://www.programmableweb.com/apis
                                                                                   04-07-2011




www.mimos.my           © 2011 MIMOS Berhad. All Rights Reserved.
REST
     Top APIs for Mashups (last 14 days)

                                                                           GoogleMaps
                                                                           YouTube
                                                                           Twitter
                                                                           Spotify
                                                                           Wikimedia
                                                                           WareNetCheckWare
                                                                           Facebook
                                                                           AmazonMarketPlace
                                                                           GAE
                                                                           FanFeedrSportsNews


                                                               http://www.programmableweb.com/apis
                                                                                     04-07-2011



www.mimos.my              © 2011 MIMOS Berhad. All Rights Reserved.
REST
                             FanFeedrSports                                 Top APIs for Mashups
                                 News
                                  8%
                          GAE
                          8%

                                                          GoogleMaps
           AmazonMarket
                                                             20%
              Place
               8%
                                                                           YouTube
               Facebook                                                      12%
                  8%

                                                                  Twitter
               WareNetCheck                                        12%
                   Ware
                    8% Wikimedia                                      Spotify
                           8%                                           8%
                                                                    http://www.programmableweb.com/apis
                                                                                          04-07-2011



www.mimos.my                   © 2011 MIMOS Berhad. All Rights Reserved.
RESTful


                   Base URI


          Media type (JSON, XML etc)


                  Operations

www.mimos.my      © 2011 MIMOS Berhad. All Rights Reserved.
http://goo.gl/WO1TK



        RESTful




               POST, GET, PUT, DELETE


        CREATE, READ, UPDT, DELETE
www.mimos.my         © 2011 MIMOS Berhad. All Rights Reserved.
http://goo.gl/Kj11q




               Frapi ≠ Frappucino



www.mimos.my         © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : The famous 5 mins video




www.mimos.my        © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : The famous 5 mins video




               http://goo.gl/2K9ev




www.mimos.my        © 2011 MIMOS Berhad. All Rights Reserved.
http://goo.gl/PBLIO



        Frapi




               Business logic, not UI
www.mimos.my          © 2011 MIMOS Berhad. All Rights Reserved.
Frapi



      echolibre                                                 community




          clients


www.mimos.my        © 2011 MIMOS Berhad. All Rights Reserved.
Frapi




  ..high-level API framework that puts the
           “rest” back into RESTful.

                                                            http://getfrapi.com




www.mimos.my    © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : “rest”

           Focus on the core of your product


               handling multiple media types


       returning the correct response codes


               generating API documentation
www.mimos.my             © 2011 MIMOS Berhad. All Rights Reserved.
Frapi powers..


                       web apps


                  mobile services


                   legacy systems


www.mimos.my        © 2011 MIMOS Berhad. All Rights Reserved.
Frapi solves..


                 Laziness (Humans?)


                 Performance issues


                                     TTM


www.mimos.my             © 2011 MIMOS Berhad. All Rights Reserved.
http://instagr.am/p/GzRH_/




                                   ..coffee?
www.mimos.my   © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : Get, Set, Go..!!


         Req & Dep                                                Getfrapi




        Webserver                                             Dir &
         Config                                            Permissions

www.mimos.my          © 2011 MIMOS Berhad. All Rights Reserved.
Frapi




               Admin                                                      Public
      http://admin.frapi                                               http://api.frapi




www.mimos.my               © 2011 MIMOS Berhad. All Rights Reserved.
Frapi



      Admin Interface
- ZF as underlying framework
- Create resources, actions, URIs, etc
- Developers is to write their business logic and datasource
connectors and plug them in the generated FRAPI REST
handlers - executeGet(), executePost(), executePut(),
executeDelete(), executeHead()


 www.mimos.my           © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : admin.frapi




www.mimos.my         © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : admin.frapi




www.mimos.my         © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : admin.frapi




www.mimos.my         © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : admin.frapi




www.mimos.my         © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : admin.frapi




www.mimos.my         © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : admin.frapi




www.mimos.my         © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : admin.frapi




www.mimos.my         © 2011 MIMOS Berhad. All Rights Reserved.
Frapi



                 Public API
- No ZF
- Heavily relies on opcode caches

 www.mimos.my      © 2011 MIMOS Berhad. All Rights Reserved.
Frapi : api.frapi




www.mimos.my          © 2011 MIMOS Berhad. All Rights Reserved.
Resources
• Getfrapi > getfrapi.com
• Dev Handbook > http://frapi.github.com/
• Group > http://groups.google.com/group/frapi-
  general
• http://webchat.freenode.net/?channels=frapi
• “RESTful APIs and FRAPI, a matter of minutes”
  http://goo.gl/Fbm82




 www.mimos.my        © 2011 MIMOS Berhad. All Rights Reserved.
Takeaway
• Recess! Framework
  http://www.recessframework.org/




 www.mimos.my       © 2011 MIMOS Berhad. All Rights Reserved.
Takeaway
• Tonic http://peej.github.com/tonic/




 www.mimos.my       © 2011 MIMOS Berhad. All Rights Reserved.
Takeaway
• Chinchilla http://restfulchinchilla.com/example.html




 www.mimos.my       © 2011 MIMOS Berhad. All Rights Reserved.
THANK YOU

                                                                                                            @errazudin
                                                                                                errazudin.ishak@mimos.my
                                                                                                errazudin.ishak@gmail.com

* All images, logos and data are the copyright of
their respective owners
     www.mimos.my                                   © 2011 MIMOS Berhad. All Rights Reserved.

More Related Content

Similar to Errazudin - REST in pieces (with frapi) - Malaysia Open Source Conference 2011

Rise of the Planet of the Anonymous
Rise of the Planet of the AnonymousRise of the Planet of the Anonymous
Rise of the Planet of the Anonymousphptechtalk
 
Accelarating PHP Applications at INTAN Sabah Technology Updates 2011
Accelarating PHP Applications at INTAN Sabah Technology Updates 2011Accelarating PHP Applications at INTAN Sabah Technology Updates 2011
Accelarating PHP Applications at INTAN Sabah Technology Updates 2011phptechtalk
 
Adobe flex at jax london 2011
Adobe flex at  jax london 2011Adobe flex at  jax london 2011
Adobe flex at jax london 2011Michael Chaize
 
Opening Keynote at BMMP 2011 - OMA API Program
Opening Keynote at BMMP 2011 - OMA API ProgramOpening Keynote at BMMP 2011 - OMA API Program
Opening Keynote at BMMP 2011 - OMA API ProgramMusa Unmehopa
 
iSec Forum NYC - Smartphone Backdoors an Analysis of Mobile Spyware
iSec Forum NYC - Smartphone Backdoors an Analysis of Mobile SpywareiSec Forum NYC - Smartphone Backdoors an Analysis of Mobile Spyware
iSec Forum NYC - Smartphone Backdoors an Analysis of Mobile SpywareTyler Shields
 
2011 Mobile & Web technologies
2011 Mobile & Web technologies 2011 Mobile & Web technologies
2011 Mobile & Web technologies JungHyuk Kwon
 
Web Services: Dje - Sot
Web Services: Dje - Sot Web Services: Dje - Sot
Web Services: Dje - Sot Betim Drenica
 
Trends in Mobile Apps (March 2011)
Trends in Mobile Apps (March 2011)Trends in Mobile Apps (March 2011)
Trends in Mobile Apps (March 2011)Katie Lips
 
Application Architecture: The Next Wave | MuleSoft
Application Architecture: The Next Wave | MuleSoftApplication Architecture: The Next Wave | MuleSoft
Application Architecture: The Next Wave | MuleSoftMuleSoft
 
The Mobile Ecosystem - APIs & Opportunities
The Mobile Ecosystem - APIs & OpportunitiesThe Mobile Ecosystem - APIs & Opportunities
The Mobile Ecosystem - APIs & OpportunitiesJean-Luc David
 
API-Centric Rails Web Apps and Hybrid Mobile App Integration
API-Centric Rails Web Apps and Hybrid Mobile App IntegrationAPI-Centric Rails Web Apps and Hybrid Mobile App Integration
API-Centric Rails Web Apps and Hybrid Mobile App IntegrationExist
 
一秒間にソーシャルとモバイルで何が起きているか
一秒間にソーシャルとモバイルで何が起きているか一秒間にソーシャルとモバイルで何が起きているか
一秒間にソーシャルとモバイルで何が起きているかJun Kaneko
 
Opportunities in our Mobile World ~ MSC Malaysia InnoTech JB
Opportunities in our Mobile World ~ MSC Malaysia InnoTech JBOpportunities in our Mobile World ~ MSC Malaysia InnoTech JB
Opportunities in our Mobile World ~ MSC Malaysia InnoTech JBGerard K M Lim
 
Leah Culver @ FOWA 08
Leah Culver @ FOWA 08Leah Culver @ FOWA 08
Leah Culver @ FOWA 08carsonsystems
 
2011 The Year of Web apps
2011 The Year of Web apps2011 The Year of Web apps
2011 The Year of Web appsJungHyuk Kwon
 
Wireless Broadband - Building the Eco-System
Wireless Broadband - Building the Eco-SystemWireless Broadband - Building the Eco-System
Wireless Broadband - Building the Eco-SystemDr. Mazlan Abbas
 
GovCert.NL - The Monkey Steals The Berries
GovCert.NL - The Monkey Steals The BerriesGovCert.NL - The Monkey Steals The Berries
GovCert.NL - The Monkey Steals The BerriesTyler Shields
 

Similar to Errazudin - REST in pieces (with frapi) - Malaysia Open Source Conference 2011 (20)

Rise of the Planet of the Anonymous
Rise of the Planet of the AnonymousRise of the Planet of the Anonymous
Rise of the Planet of the Anonymous
 
Accelarating PHP Applications at INTAN Sabah Technology Updates 2011
Accelarating PHP Applications at INTAN Sabah Technology Updates 2011Accelarating PHP Applications at INTAN Sabah Technology Updates 2011
Accelarating PHP Applications at INTAN Sabah Technology Updates 2011
 
Adobe flex at jax london 2011
Adobe flex at  jax london 2011Adobe flex at  jax london 2011
Adobe flex at jax london 2011
 
Opening Keynote at BMMP 2011 - OMA API Program
Opening Keynote at BMMP 2011 - OMA API ProgramOpening Keynote at BMMP 2011 - OMA API Program
Opening Keynote at BMMP 2011 - OMA API Program
 
iSec Forum NYC - Smartphone Backdoors an Analysis of Mobile Spyware
iSec Forum NYC - Smartphone Backdoors an Analysis of Mobile SpywareiSec Forum NYC - Smartphone Backdoors an Analysis of Mobile Spyware
iSec Forum NYC - Smartphone Backdoors an Analysis of Mobile Spyware
 
Hybrid Apps / iPhoneDevCon 2010
Hybrid Apps / iPhoneDevCon 2010Hybrid Apps / iPhoneDevCon 2010
Hybrid Apps / iPhoneDevCon 2010
 
2011 Mobile & Web technologies
2011 Mobile & Web technologies 2011 Mobile & Web technologies
2011 Mobile & Web technologies
 
Web Services: Dje - Sot
Web Services: Dje - Sot Web Services: Dje - Sot
Web Services: Dje - Sot
 
Trends in Mobile Apps (March 2011)
Trends in Mobile Apps (March 2011)Trends in Mobile Apps (March 2011)
Trends in Mobile Apps (March 2011)
 
Application Architecture: The Next Wave | MuleSoft
Application Architecture: The Next Wave | MuleSoftApplication Architecture: The Next Wave | MuleSoft
Application Architecture: The Next Wave | MuleSoft
 
The Mobile Ecosystem - APIs & Opportunities
The Mobile Ecosystem - APIs & OpportunitiesThe Mobile Ecosystem - APIs & Opportunities
The Mobile Ecosystem - APIs & Opportunities
 
API-Centric Rails Web Apps and Hybrid Mobile App Integration
API-Centric Rails Web Apps and Hybrid Mobile App IntegrationAPI-Centric Rails Web Apps and Hybrid Mobile App Integration
API-Centric Rails Web Apps and Hybrid Mobile App Integration
 
一秒間にソーシャルとモバイルで何が起きているか
一秒間にソーシャルとモバイルで何が起きているか一秒間にソーシャルとモバイルで何が起きているか
一秒間にソーシャルとモバイルで何が起きているか
 
Alexa - Top Sites_ Computer....pdf
Alexa - Top Sites_ Computer....pdfAlexa - Top Sites_ Computer....pdf
Alexa - Top Sites_ Computer....pdf
 
Yapc
YapcYapc
Yapc
 
Opportunities in our Mobile World ~ MSC Malaysia InnoTech JB
Opportunities in our Mobile World ~ MSC Malaysia InnoTech JBOpportunities in our Mobile World ~ MSC Malaysia InnoTech JB
Opportunities in our Mobile World ~ MSC Malaysia InnoTech JB
 
Leah Culver @ FOWA 08
Leah Culver @ FOWA 08Leah Culver @ FOWA 08
Leah Culver @ FOWA 08
 
2011 The Year of Web apps
2011 The Year of Web apps2011 The Year of Web apps
2011 The Year of Web apps
 
Wireless Broadband - Building the Eco-System
Wireless Broadband - Building the Eco-SystemWireless Broadband - Building the Eco-System
Wireless Broadband - Building the Eco-System
 
GovCert.NL - The Monkey Steals The Berries
GovCert.NL - The Monkey Steals The BerriesGovCert.NL - The Monkey Steals The Berries
GovCert.NL - The Monkey Steals The Berries
 

Recently uploaded

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 

Recently uploaded (20)

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 

Errazudin - REST in pieces (with frapi) - Malaysia Open Source Conference 2011

  • 1. Malaysia Open Source Conference 2011 REST in pieces (with Frapi) Errazudin Ishak www.mimos.my © 2009 MIMOS Berhad. All Rights Reserved.
  • 2. http://goo.gl/EH9v7 This talk is not www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 3. popmatters.com This talk is not www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 4. obscurehorror.com This talk is not www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 5. iloveyourtshirt.com This talk is not www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 6. Agenda • You • Me • Webservices • REST • Frapi • Resources • Takeaway www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 7. ..in 30mins? www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 8. http://goo.gl/tOJGn About You • _________ www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 9. About Me • Errazudin Ishak • @errazudin • Senior engineer @ Mimos Bhd Malaysia • Focuses on web application development, deployment, performance and stability. • 2009 : foss.my , MyGOSSCON • 2010 : Entp. PHP Techtalk, BarcampKL, PHP Meetup, MOSC2010, PHP Northwest UK, MyGOSSCON • 2011 : INTAN Tech Update, Wordpress Conf. Asia, Joomla! Day www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 10. www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 11. http://goo.gl/yE2Tx Webservices www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 12. http://goo.gl/yE2Tx Webservices SOA RPC REST www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 13. http://goo.gl/Ovswf REST www.mimos.my Hype? © 2011 MIMOS Berhad. All Rights Reserved.
  • 14. REST Protocol Usage by APIs REST SOAP JavaScript XML-RPC Atom http://www.programmableweb.com/apis 04-07-2011 www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 15. REST XML-RPC Protocol Usage by APIs JavaScript Atom SOAP REST http://www.programmableweb.com/apis 04-07-2011 www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 16. REST Top APIs for Mashups (last 14 days) GoogleMaps YouTube Twitter Spotify Wikimedia WareNetCheckWare Facebook AmazonMarketPlace GAE FanFeedrSportsNews http://www.programmableweb.com/apis 04-07-2011 www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 17. REST FanFeedrSports Top APIs for Mashups News 8% GAE 8% GoogleMaps AmazonMarket 20% Place 8% YouTube Facebook 12% 8% Twitter WareNetCheck 12% Ware 8% Wikimedia Spotify 8% 8% http://www.programmableweb.com/apis 04-07-2011 www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 18. RESTful Base URI Media type (JSON, XML etc) Operations www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 19. http://goo.gl/WO1TK RESTful POST, GET, PUT, DELETE CREATE, READ, UPDT, DELETE www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 20. http://goo.gl/Kj11q Frapi ≠ Frappucino www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 21. Frapi : The famous 5 mins video www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 22. Frapi : The famous 5 mins video http://goo.gl/2K9ev www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 23. http://goo.gl/PBLIO Frapi Business logic, not UI www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 24. Frapi echolibre community clients www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 25. Frapi ..high-level API framework that puts the “rest” back into RESTful. http://getfrapi.com www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 26. Frapi : “rest” Focus on the core of your product handling multiple media types returning the correct response codes generating API documentation www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 27. Frapi powers.. web apps mobile services legacy systems www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 28. Frapi solves.. Laziness (Humans?) Performance issues TTM www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 29. http://instagr.am/p/GzRH_/ ..coffee? www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 30. Frapi : Get, Set, Go..!! Req & Dep Getfrapi Webserver Dir & Config Permissions www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 31. Frapi Admin Public http://admin.frapi http://api.frapi www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 32. Frapi Admin Interface - ZF as underlying framework - Create resources, actions, URIs, etc - Developers is to write their business logic and datasource connectors and plug them in the generated FRAPI REST handlers - executeGet(), executePost(), executePut(), executeDelete(), executeHead() www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 33. Frapi : admin.frapi www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 34. Frapi : admin.frapi www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 35. Frapi : admin.frapi www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 36. Frapi : admin.frapi www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 37. Frapi : admin.frapi www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 38. Frapi : admin.frapi www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 39. Frapi : admin.frapi www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 40. Frapi Public API - No ZF - Heavily relies on opcode caches www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 41. Frapi : api.frapi www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 42. Resources • Getfrapi > getfrapi.com • Dev Handbook > http://frapi.github.com/ • Group > http://groups.google.com/group/frapi- general • http://webchat.freenode.net/?channels=frapi • “RESTful APIs and FRAPI, a matter of minutes” http://goo.gl/Fbm82 www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 43. Takeaway • Recess! Framework http://www.recessframework.org/ www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 44. Takeaway • Tonic http://peej.github.com/tonic/ www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 45. Takeaway • Chinchilla http://restfulchinchilla.com/example.html www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.
  • 46. THANK YOU @errazudin errazudin.ishak@mimos.my errazudin.ishak@gmail.com * All images, logos and data are the copyright of their respective owners www.mimos.my © 2011 MIMOS Berhad. All Rights Reserved.