Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
TDC 2016 Floripa - Criando APIs REST em minutos...
Search
Stefan Teixeira
May 14, 2016
Programming
0
59
TDC 2016 Floripa - Criando APIs REST em minutos com Spark + Java 8
Palestra apresentada na trilha Java do TDC 2016 Florianópolis, no dia 14 de Maio.
Stefan Teixeira
May 14, 2016
Tweet
Share
More Decks by Stefan Teixeira
See All by Stefan Teixeira
Scrum Gathering Portugal 2016 - Containerizing Tests with Docker
stefanteixeira
0
79
Agile Brazil 2016 - 5 fundamentos essenciais de padrões xUnit
stefanteixeira
0
110
Latinoware 2016 - Continuous Delivery com ferramentas open source
stefanteixeira
0
63
Ágiles 2016 - Using open source tools to support Continuous Delivery
stefanteixeira
0
48
6º Encontro do Grupo de Testes Carioca - Testes em um contexto de Continuous Delivery
stefanteixeira
0
42
TDC 2016 SP - Desmistificando cobertura de código como métrica de qualidade
stefanteixeira
0
120
TDC 2016 SP - Continuous Delivery para aplicações Java com ferramentas open-source
stefanteixeira
0
80
TDC 2016 SP - Cobertura de código de procedures T-SQL com SQLCC
stefanteixeira
0
68
TDC 2016 SP - 5 libs de teste JavaScript que você deveria conhecer
stefanteixeira
0
59
Other Decks in Programming
See All in Programming
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
230
Compose UIテストを使った統合テスト
hiroaki404
0
120
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
9
2.3k
今年のアップデートで振り返るCDKセキュリティのシフトレフト/2024-cdk-security-shift-left
tomoki10
0
330
PSR-15 はあなたのための ものではない? - phpcon2024
myamagishi
0
360
週次リリースを実現するための グローバルアプリ開発
tera_ny
1
760
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
200
Scalaから始めるOpenFeature入門 / Scalaわいわい勉強会 #4
arthur1
1
380
menu基盤チームによるGoogle Cloudの活用事例~Application Integration, Cloud Tasks編~
yoshifumi_ishikura
0
130
ドメインイベント増えすぎ問題
h0r15h0
2
540
Итераторы в Go 1.23: зачем они нужны, как использовать, и насколько они быстрые?
lamodatech
0
1.3k
AppRouterを用いた大規模サービス開発におけるディレクトリ構成の変遷と問題点
eiganken
1
410
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.7k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
550
Become a Pro
speakerdeck
PRO
26
5.1k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Why Our Code Smells
bkeepers
PRO
335
57k
Into the Great Unknown - MozCon
thekraken
34
1.6k
Documentation Writing (for coders)
carmenintech
67
4.5k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Code Review Best Practice
trishagee
65
17k
Being A Developer After 40
akosma
89
590k
The Cost Of JavaScript in 2023
addyosmani
46
7.2k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
6
490
Transcript
Globalcode – Open4education Criando APIs REST em minutos com Spark
+ Java 8 Stefan Teixeira
[email protected]
/ @stefan_teixeira
• QA Automation Engineer • Entusiasta de Automação de Testes,
Agile Testing e DevOps • Blogs técnicos: stefanteixeira.com.br (pt-br) / stefanteixeira.com (en) Contatos: • E-mail:
[email protected]
• Twitter: twitter.com/stefan_teixeira • LinkedIn: linkedin.com/in/stefanteixeira • GitHub: github.com/stefanteixeira • SlideShare: slideshare.net/stefanteixeira Sobre
None
Não confundir com Apache Spark (Big Data)
Spark • Inspirado no Sinatra
Spark • Inspirado no Sinatra • Java 8 ❤
Spark • Inspirado no Sinatra • Java 8 • Ótimo
para APIs REST
Spark • Inspirado no Sinatra • Java 8 • Ótimo
para APIs REST (mas também é usado para web)
APIs REST
Exemplos
None
Alguns dos (vários) outros recursos • Cookies • Sessões •
Filtros (before, after…) • Redirects • Exception Mapping • Arquivos estáticos
Documentação http://sparkjava.com/documentation.html
Tutoriais https://sparktutorials.github.io
Survey (Abril 2015) http://sparkjava.com/news.html#sparksurvey
Usando Spark em Testes de Integração
Simuladores / mock services
None
Spark + Docker https://sparktutorials.github.io/2015/04/14/getting-started-with-spark-and-docker.html
Projeto de exemplo https://github.com/stefanteixeira/demo-spark
Mais links • https://blog.openshift.com/developing-single-page-web- applications-using-java-8-spark-mongodb-and-angularjs/ • http://www.mastertheboss.com/cool-stuff/create-a-rest-services- layer-with-spark • https://github.com/mscharhag/blog-examples/tree/master/
sparkdemo • Outros links estão na parte de baixo dos slides :)
Globalcode – Open4education Stefan Teixeira @stefan_teixeira
[email protected]
stefanteixeira.com.br stefanteixeira.com Obrigado!