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.

REST APIs com Django

4,369 views

Published on

Published in: Technology
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • (Unlimited)....ACCESS WEBSITE Over for All Ebooks ................ accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M }
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

REST APIs com Django

  1. 1. REST APIs com Django Mailson Lira mailson.net [email_address] XIV Encontro do PUG-PE
  2. 2. Quem sou eu <ul>Aluno do sexto período de Ciência da Computação da UFPE com interesse em desenvolvimento web. </ul>
  3. 3. Web Service
  4. 4. Web Service
  5. 5. Web Service <ul><li>Não tem problemas com firewall
  6. 6. Nível baixo de complexidade </li></ul>
  7. 7. SOAP <ul><li>Bastante usado na “Web 1.0”
  8. 8. Aproveita protocolos já existentes (HTTP, SMTP)
  9. 9. Mensagens no formato XML </li></ul>
  10. 10. SOAP
  11. 11. REST <ul><li>Para alguns, SOAP passou a ser complicado demais
  12. 12. REST não é um protocolo. Não existe um padrão definido
  13. 13. A requisição pode estar somente na URL </li></ul>
  14. 14. Pra que serve? <ul><li>Desenvolvimento de APIs
  15. 15. Distribuição de conteúdo </li></ul>
  16. 16. Quem usa? <ul><li>Twitter
  17. 17. Flickr
  18. 18. LinkedIn
  19. 19. Yahoo!
  20. 20. Amazon
  21. 21. Youtube </li></ul>
  22. 22. REST vs. SOAP <ul><li>REST não é um protocolo
  23. 23. Conjunto de princípios </li></ul>
  24. 24. REST vs. SOAP Requisitando os Trending Topics do Twitter no caso de uma API SOAP. A resposta seria obrigatoriamente outro XML.
  25. 25. REST <ul>Requisitando os Trending Topics do jeito REST </ul>http://api.twitter.com/1/trends.json
  26. 26. REST <ul><li>Facilidade de usar </li><ul><li>Praticamente não é necessário o uso de bibliotecas </li></ul><li>Aproveita os métodos do HTTP </li><ul><li>GET, POST, PUT, DELETE </li></ul></ul>
  27. 27. REST <ul><li>Exemplos com Django REST Framework </li></ul>
  28. 28. GET /rest/polls/ views.py urls.py urls.py
  29. 29. GET /rest/polls/ID urls.py views.py
  30. 30. PUT /rest/choices/ID urls.py views.py
  31. 31. POST /rest/polls/ views.py
  32. 32. DELETE /rest/polls/ID views.py
  33. 33. Veja mais <ul><li>Django REST Framework </li><ul><li>http://django-rest-framework.org/ </li></ul><li>Introdução a Django em 4 partes </li><ul><li>https://docs.djangoproject.com/en/1.3/intro/tutorial01/
  34. 34. http://docs.djangobrasil.org/intro/tutorial01.html (em português) </li></ul><li>Tutorial de REST </li><ul><li>http://rest.elkstein.org/ </li></ul><li>Entenda melhor sobre REST </li><ul><li>http://jacobian.org/writing/rest-worst-practices/
  35. 35. http://blog.steveklabnik.com/2011/07/03/nobody-understands-rest-or-http.html </li></ul></ul>

×