Skip to content

Authenticated endpoint for removing a word : /remove #21

@subins2000

Description

@subins2000

There's a varnam_remove_word function, but is not available to use in both CLI and Go handlers. It'll be great if there is this endpoint.

But, this would be problematic for a public instance of varnamd. Which brings me to the authenticated endpoints feature mentioned in #17 : #17 (comment)

A simple "Authentication" header with a token would be fine. The password can be optionally passed to varnamd as a flag (hashed, plaintext would be a disaster of course).

By adding an auth, the endpoints that would probably require it would be :

  • /train
  • /remove

OR simply avoid the auth, and implement it under enableInternalApis.

Usecase :
In the offline desktop, I'm adding an option to remove the word, but there's no endpoint to send to.
image

@athul @joicemjoseph interested to implement this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions