Submit Search
Upload
Pharo Hands-On: 04 teapot server
•
0 likes
•
1,097 views
Pharo
Follow
Part of one day hands-on on Pharo
Read less
Read more
Technology
Report
Share
Report
Share
1 of 4
Download now
Download to read offline
Recommended
Pharo Hand-Ons: 06 finding information
Pharo Hand-Ons: 06 finding information
Pharo
Pharo VX
Pharo VX
Dmitry Matveev
PharoDAYS 2015: On Relational Databases by Guille Polito
PharoDAYS 2015: On Relational Databases by Guille Polito
Pharo
Introduction of Pharo 5.0
Introduction of Pharo 5.0
Masashi Umezawa
Embedding Languages Without Breaking Tools
Embedding Languages Without Breaking Tools
Lukas Renggli
Smalltalkだめ自慢
Smalltalkだめ自慢
Masashi Umezawa
RUNNING Smalltalk - 実践Smalltalk
RUNNING Smalltalk - 実践Smalltalk
Sho Yoshida
Yesplan: 10 Years later
Yesplan: 10 Years later
Pharo
Recommended
Pharo Hand-Ons: 06 finding information
Pharo Hand-Ons: 06 finding information
Pharo
Pharo VX
Pharo VX
Dmitry Matveev
PharoDAYS 2015: On Relational Databases by Guille Polito
PharoDAYS 2015: On Relational Databases by Guille Polito
Pharo
Introduction of Pharo 5.0
Introduction of Pharo 5.0
Masashi Umezawa
Embedding Languages Without Breaking Tools
Embedding Languages Without Breaking Tools
Lukas Renggli
Smalltalkだめ自慢
Smalltalkだめ自慢
Masashi Umezawa
RUNNING Smalltalk - 実践Smalltalk
RUNNING Smalltalk - 実践Smalltalk
Sho Yoshida
Yesplan: 10 Years later
Yesplan: 10 Years later
Pharo
Object-Centric Debugging: a preview
Object-Centric Debugging: a preview
Pharo
The future of testing in Pharo
The future of testing in Pharo
Pharo
Spec 2.0: The next step on desktop UI
Spec 2.0: The next step on desktop UI
Pharo
UI Testing with Spec
UI Testing with Spec
Pharo
Pharo 7.0 and 8.0 alpha
Pharo 7.0 and 8.0 alpha
Pharo
PHARO IoT: Installation Improvements and Continuous Integration
PHARO IoT: Installation Improvements and Continuous Integration
Pharo
Easy REST with OpenAPI
Easy REST with OpenAPI
Pharo
Comment soup with a pinch of types, served in a leaky bowl
Comment soup with a pinch of types, served in a leaky bowl
Pharo
apart Framework: Porting from VisualWorks
apart Framework: Porting from VisualWorks
Pharo
XmppTalk
XmppTalk
Pharo
A living programming environment for blockchain
A living programming environment for blockchain
Pharo
Raspberry and Pharo
Raspberry and Pharo
Pharo
Welcome: PharoDays 2017
Welcome: PharoDays 2017
Pharo
Pharo 6
Pharo 6
Pharo
Robotic Exploration and Mapping with Pharo
Robotic Exploration and Mapping with Pharo
Pharo
Pharo 64bits
Pharo 64bits
Pharo
Smack: Behind the Refactorings
Smack: Behind the Refactorings
Pharo
Pharo VM Performance
Pharo VM Performance
Pharo
Git with Style
Git with Style
Pharo
Pharo JS
Pharo JS
Pharo
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
The Digital Insurer
More Related Content
More from Pharo
Object-Centric Debugging: a preview
Object-Centric Debugging: a preview
Pharo
The future of testing in Pharo
The future of testing in Pharo
Pharo
Spec 2.0: The next step on desktop UI
Spec 2.0: The next step on desktop UI
Pharo
UI Testing with Spec
UI Testing with Spec
Pharo
Pharo 7.0 and 8.0 alpha
Pharo 7.0 and 8.0 alpha
Pharo
PHARO IoT: Installation Improvements and Continuous Integration
PHARO IoT: Installation Improvements and Continuous Integration
Pharo
Easy REST with OpenAPI
Easy REST with OpenAPI
Pharo
Comment soup with a pinch of types, served in a leaky bowl
Comment soup with a pinch of types, served in a leaky bowl
Pharo
apart Framework: Porting from VisualWorks
apart Framework: Porting from VisualWorks
Pharo
XmppTalk
XmppTalk
Pharo
A living programming environment for blockchain
A living programming environment for blockchain
Pharo
Raspberry and Pharo
Raspberry and Pharo
Pharo
Welcome: PharoDays 2017
Welcome: PharoDays 2017
Pharo
Pharo 6
Pharo 6
Pharo
Robotic Exploration and Mapping with Pharo
Robotic Exploration and Mapping with Pharo
Pharo
Pharo 64bits
Pharo 64bits
Pharo
Smack: Behind the Refactorings
Smack: Behind the Refactorings
Pharo
Pharo VM Performance
Pharo VM Performance
Pharo
Git with Style
Git with Style
Pharo
Pharo JS
Pharo JS
Pharo
More from Pharo
(20)
Object-Centric Debugging: a preview
Object-Centric Debugging: a preview
The future of testing in Pharo
The future of testing in Pharo
Spec 2.0: The next step on desktop UI
Spec 2.0: The next step on desktop UI
UI Testing with Spec
UI Testing with Spec
Pharo 7.0 and 8.0 alpha
Pharo 7.0 and 8.0 alpha
PHARO IoT: Installation Improvements and Continuous Integration
PHARO IoT: Installation Improvements and Continuous Integration
Easy REST with OpenAPI
Easy REST with OpenAPI
Comment soup with a pinch of types, served in a leaky bowl
Comment soup with a pinch of types, served in a leaky bowl
apart Framework: Porting from VisualWorks
apart Framework: Porting from VisualWorks
XmppTalk
XmppTalk
A living programming environment for blockchain
A living programming environment for blockchain
Raspberry and Pharo
Raspberry and Pharo
Welcome: PharoDays 2017
Welcome: PharoDays 2017
Pharo 6
Pharo 6
Robotic Exploration and Mapping with Pharo
Robotic Exploration and Mapping with Pharo
Pharo 64bits
Pharo 64bits
Smack: Behind the Refactorings
Smack: Behind the Refactorings
Pharo VM Performance
Pharo VM Performance
Git with Style
Git with Style
Pharo JS
Pharo JS
Recently uploaded
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
HampshireHUG
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
The Digital Insurer
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
gurkirankumar98700
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
ThousandEyes
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
OnBoard
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
shyamraj55
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Scott Keck-Warren
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pooja Nehwal
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Maria Levchenko
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
soniya singh
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
Recently uploaded
(20)
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Slack Application Development 101 Slides
Slack Application Development 101 Slides
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Pharo Hands-On: 04 teapot server
1.
Simple Rest Server S. Ducasse http://www.pharo.org
2.
| books teapot
| books := Dictionary new. teapot := Teapot configure: { #defaultOutput -> #json. #port -> 8080. #debugMode -> true }.
3.
teapot GET: '/books'
-> books; ! PUT: '/books/<id>' -> [ :request | | book | book := {'author' -> (request at: #author). 'title' -> (request at: #title)} asDictionary. books at: (request at: #id) put: book ]; ! DELETE: '/books/<id>' -> [:request | books removeKey: (request at: #id)]; ! exception: KeyNotFound -> (TeaResponse notFound body: 'No such book'); ! start.
4.
ZnClient new url: 'http://localhost:8080/books/1'; formAt:
'author' put: 'SquareBracketAssociates'; formAt: 'title' put: ‘Enterprise Pharo'; put
Download now