From e48d7b10711b9fb2f167e09a5e3241acb1bc2c68 Mon Sep 17 00:00:00 2001 From: Andriy Oblivantsev Date: Tue, 7 Feb 2023 05:13:11 +0000 Subject: [PATCH] Fix documented API annotation --- api/router.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/router.go b/api/router.go index ebd0cbd..c530c65 100644 --- a/api/router.go +++ b/api/router.go @@ -78,15 +78,15 @@ func (r *Router) GetHandler() http.Handler { // // - Retrieve all superheroes with encrypted identities: // -// GET /superheroes?encode=deesee +// GET /superheroes?encrypted=true // // - Retrieve superheroes that match given superpower(s) // -// GET /superheroes?powers=flight,super-strength +// GET /superheroes?superpowers=flight,super-strength // // - Retrieve superheroes that match given superpower(s) with encrypted identities // -// GET /superheroes?powers=flight,super-strength&encode=deesee +// GET /superheroes?superpowers=flight,super-strength&encrypted=true func (r *Router) GetSuperHeroes(w http.ResponseWriter, req *http.Request) { var ( // Resulting