https://github.com/icelain/gdsc_assignment
gdsc ASS_ignment
https://github.com/icelain/gdsc_assignment
Last synced: 4 months ago
JSON representation
gdsc ASS_ignment
- Host: GitHub
- URL: https://github.com/icelain/gdsc_assignment
- Owner: Icelain
- Created: 2024-09-14T03:42:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-14T05:26:21.000Z (over 1 year ago)
- Last Synced: 2025-07-20T19:40:48.490Z (11 months ago)
- Language: HTML
- Homepage:
- Size: 57.5 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
There are two api calls, GET get_text and POST store_text, both resting on a http server built with the golang stdlib. The text is stored and retrieved from a sqlite db.
A call to get_text returns `["response":[string]]` where the string slice is the list of responses.
A call to store_text requires the json payload `["text": "yourtextgoeshere"]` and the header `content-type:applications/json`.
They also make the necessary http errors if not used properly.
The frontend has been modified to conform to the specification above.
Since the judges might not understand the Go toolchain, with ***immense generosity*** I've provided native binaries that run on arm64/darwin and amd64/linux.
They are requested to clone the repository and execute the binary which works on their system. The webpage will be active on localhost:5050.