Skip to content

Commit

Permalink
docs: minor API doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Jul 3, 2024
1 parent 5a9da7d commit e4633fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/server/routes/syms/syms.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func AddRoutes(rg *gin.RouterGroup, db db.Database) {
//
// Symbol
//
// Get symbols for a given uuid.
// Get symbol for a given uuid and address.
//
// Produces:
// - application/json
Expand Down
2 changes: 1 addition & 1 deletion api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@
},
"/syms/{uuid}/{addr}": {
"get": {
"description": "Get symbols for a given uuid.",
"description": "Get symbol for a given uuid and address.",
"produces": [
"application/json"
],
Expand Down
6 changes: 4 additions & 2 deletions internal/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ type Database interface {
// It returns ErrNotFound if the key does not exist.
Get(key string) (*model.Ipsw, error)

// Get returns the value for the given key.
// It returns ErrNotFound if the key does not exist.
// GetByName returns the value for the given name.
// It returns ErrNotFound if the name does not exist.
GetByName(name string) (*model.Ipsw, error)

// GetSymbol returns the symbol for the given UUID and address.
GetSymbol(uuid string, addr uint64) (*model.Symbol, error)

// GetSymbols returns all symbols for the given UUID.
GetSymbols(uuid string) ([]*model.Symbol, error)

// Save updates the IPSW.
Expand Down
2 changes: 1 addition & 1 deletion www/static/api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@
},
"/syms/{uuid}/{addr}": {
"get": {
"description": "Get symbols for a given uuid.",
"description": "Get symbol for a given uuid and address.",
"produces": [
"application/json"
],
Expand Down

0 comments on commit e4633fb

Please sign in to comment.