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
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Safe Software
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
AndikSusilo4
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
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Safe Software
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
AndikSusilo4
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Malak Abu Hammad
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Safe Software
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Katpro Technologies
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
OnBoard
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pooja Nehwal
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
soniya singh
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
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
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Padma Pradeep
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Recently uploaded
(20)
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Slack Application Development 101 Slides
Slack Application Development 101 Slides
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
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 ...
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
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