mirror of
https://github.com/h44z/wg-portal.git
synced 2025-04-19 08:55:12 +00:00
Public REST API implementation to handle peers, interfaces and users. It also includes some simple provisioning endpoints. The Swagger API documentation is available under /api/v1/doc.html
9 lines
274 B
Go
9 lines
274 B
Go
package models
|
|
|
|
// Error represents an error response.
|
|
type Error struct {
|
|
Code int `json:"Code"` // HTTP status code.
|
|
Message string `json:"Message"` // Error message.
|
|
Details string `json:"Details,omitempty"` // Additional error details.
|
|
}
|