web

command module
v0.0.0-...-2a6f6f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

README

WEB Module

  • This module creates services endpoints for the importer

POST requests

Create Converter job

POST http://localhost:1323/api/converter/jobs HTTP/1.1
Accept: */*
Cache-Control: no-cache
Content-Type: application/json

{ 
    "document": "1047098326_0002",   
    "context": "digizeit", 
    "product": "indexer",  
    "log": ""
}
  • Field "log" could name a logical structure element to create a PDF for this or the document ID for full PDF creation
    • Examples
      • "log": "LOG_0001"
      • "log": "1047098326_0002"

Create Indexer job

POST http://localhost:1323/api/indexer/jobs HTTP/1.1
Accept: */*
Cache-Control: no-cache
Content-Type: application/json

{ 
    "document": "1047098326_0002",   
    "context": "digizeit", 
    "product": "indexer",  
    "reindex": false
}

GET requests

  • Within the docker environment one can call the services via "web:port", from outside via "adr:port".

Get the number of Elements in converter queue

GET http://localhost:1323/api/converter/jobs HTTP/1.1

Get the number of Elements in indexer queue

GET http://localhost:1323/api/indexer/jobs HTTP/1.1

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL