Endpoint: /api/extract_diktum

Method: POST

Request:

  • Multipart form-data with PDF file under key pdf

Response:

  • JSON array of extracted sections with path and text

Endpoint: /api/extract_peraturan

Method: POST

Request:

  • Multipart form-data with PDF file under key pdf

Response:

  • JSON array of extracted sections with path and text