MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / APIResponse

Struct APIResponse

shared/contracts/http.go:4–7  ·  view source on GitHub ↗

APIResponse is the response structure for the API.

Source from the content-addressed store, hash-verified

2
3// APIResponse is the response structure for the API.
4type APIResponse struct {
5 Data any `json:"data,omitempty"`
6 Error *APIError `json:"error,omitempty"`
7}
8
9// APIError is the error structure for the API.
10type APIError struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected