1
0
Fork
You've already forked PascalRESTLearn
0
Learning to build a REST server using Pascal
  • Pascal 96.6%
  • Makefile 3.4%
2026年04月26日 22:32:23 +07:00
.gitignore feat: Dict REST server 2026年04月26日 22:19:08 +07:00
dict_rest_server.pas refactor: Capitalize rest handler 2026年04月26日 22:32:23 +07:00
hello_world_rest_server.pas refactor: Capitalize argument names 2026年04月26日 22:26:02 +07:00
LICENSE docs: license 2026年04月25日 23:10:48 +07:00
Makefile feat: Dict REST server 2026年04月26日 22:19:08 +07:00
README.org docs(README): promote dict section 2026年04月26日 22:27:03 +07:00

PascalRESTLearn

PascalRESTLearn curates Pascal code examples for building REST servers, designed to support learning.

Status

Work in progress

Prerequisites

  • make (tested with GNU Make)
  • fpc (Free Pascal Compiler)

Build

make

Run

./hello_world_rest_server

Usage

With a running server:

curl http://localhost:8080/api/message

Dict REST Server

Run

./dict_rest_server

Usage

Add item

 curl -H 'Content-Type: application/json' \
 -d '{"headword":"cat", "part_of_speech":"noun"}' \
 localhost:8080/api/dict
 curl -H 'Content-Type: application/json' \
 -d '{"headword":"go", "part_of_speech":"verb"}' \
 localhost:8080/api/dict

Get items

 curl localhost:8080/api/dict