siak-rest

module
v0.0.0-...-8d6396e Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: GPL-3.0

README

SIAK REST

A proxy server to convert your SIAK-NG response to JSON, instead of HTML.

Docs: /swagger/index.html, Global Instance

Running

You will need golang. There is no docker compose script (yet), so you can run it by running

$ go run cmd/http-server/main.go

Idea

SIAK-NG identifies its user with two cookies: siakng_cc and Mojavi. These two cookies are unique to your session. This proxy simply forwards these cookies from the X-Siakng-Cc and X-Mojavi header and forward it as a cookie to SIAK-NG server, and once the response is gathered by the proxy, the proxy simply parses the HTML and bakes the JSON response.

Directories

Path Synopsis
cmd
Code generated by swaggo/swag.
Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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