Create REST APIs in FreePascal & Lazarus

preview_player
Показать описание


Object Pascal is a wonderful language to create RESTful APIs, and in this video I show you how to create a simple REST API with a default 404 handler and an endpoint returning JSON data.

In this video you'll learn how to create a simple REST API using FreePascal and Lazarus.

When you're done you'll have these two endpoints
localhost:9090/catchall
localhost:9090/json

/catchall is the default, meaning it gets run when no other route matches, which is why it's a great 404 handler.

/json is going to return a happy little JSON map for us, and in the next video we'll expand on this and generate JSON data dynamically.
Рекомендации по теме
Комментарии
Автор

Hi Marcus, recently I have re-discovered Pascal (freepascal these days) and am very pleased with how it works. Any chance you will be making some new content? Like how to do authentication in a REST API?

danieljongepier
Автор

Thank for sharing this video and article on medium
Plz next video zoom the font
Thank again

moggar
Автор

Nice Video! How to authenticate with ssl and oAuth?

andersonpavani
Автор

Hi Marcus, please an example of a crud api and database

eduardoantonio
Автор

looks like a great tool but, can't see a thing on the video

werqweadcwer
visit shbcf.ru