https://github.com/jkitajima/responder
Helper module to encode HTTP API responses
https://github.com/jkitajima/responder
api-design decoding encoding go json
Last synced: 2 months ago
JSON representation
Helper module to encode HTTP API responses
- Host: GitHub
- URL: https://github.com/jkitajima/responder
- Owner: jkitajima
- License: lgpl-2.1
- Created: 2025-01-05T17:46:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-06T08:30:06.000Z (over 1 year ago)
- Last Synced: 2025-08-04T16:10:05.886Z (11 months ago)
- Topics: api-design, decoding, encoding, go, json
- Language: Go
- Homepage:
- Size: 556 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Responder
Helper module to encode HTTP API responses
---
## Introduction
This module contains helper functions and structs to respond API calls in accordance to this [HTTP API Design](https://github.com/jkitajima/http_api_design).
## General Structure
There are three files:
- `decoder.go`: responsible for decoding incoming JSON API requests
- `response.go`: contains the structs explained by the API Design document
- `responder.go`: contains the functions that send the response to the client
## License
Distributed under the `GNU Lesser General Public License, version 2.1`. See LICENSE file for more information.