Next: , Previous: , Up: API  


1.7 (ggg server)

1.7.1 Procedures

Procedure: badge-glyph params KEY: #:id

The glyph that the (name . value) PARAMS describe: an optional label section, then one section per ’text’ parameter. The Nth bg/fg pair belongs to the Nth text section, and a logo belongs to the first section, as it does in a glyph file.

Procedure: badge-handler request body KEY: #:resources

Answer REQUEST with a badge, a logo or the builder page, or explain why it has none. BODY goes unread: a badge is an enquiry, not an upload.

Procedure: query-params query

The (name . value) pairs of a URL query string, percent-decoded.

Procedure: serve KEY: #:resources #:host #:port

Serve badges and the builder at http://HOST:PORT until interrupted.

The address defaults to the loopback interface, so the server answers only the machine it runs on; pass 0.0.0.0 as HOST to answer other machines.