diff --git a/api/server/routes/syms/syms.go b/api/server/routes/syms/syms.go index 68c6e7e91..06b9196f8 100644 --- a/api/server/routes/syms/syms.go +++ b/api/server/routes/syms/syms.go @@ -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 diff --git a/api/swagger.json b/api/swagger.json index 834896bef..27e419251 100644 --- a/api/swagger.json +++ b/api/swagger.json @@ -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" ], diff --git a/internal/db/db.go b/internal/db/db.go index fd39d8d4b..068ccf808 100644 --- a/internal/db/db.go +++ b/internal/db/db.go @@ -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. diff --git a/www/static/api/swagger.json b/www/static/api/swagger.json index 834896bef..27e419251 100644 --- a/www/static/api/swagger.json +++ b/www/static/api/swagger.json @@ -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" ],