Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Manifest] About some operations (like LOCK, EXPIRE etc) #44

Closed
clintnetwork opened this issue Dec 31, 2019 · 1 comment
Closed

[Manifest] About some operations (like LOCK, EXPIRE etc) #44

clintnetwork opened this issue Dec 31, 2019 · 1 comment
Assignees
Milestone

Comments

@clintnetwork
Copy link
Member

@clintnetwork clintnetwork commented Dec 31, 2019

Hey,

Actually, the PATCH method is used to make special operations like this with a JSON object that define the operation and properties!

Maybe we can use some HTTP methods like LOCK / UNLOCK or an other way.

Actions Performing

This is some propositions to perform some operations.

Inline:

curl -XPATCH -d 'LOCK' 'https://localhost:7021/api/kv/hello_world'

Parameters:

curl -XPATCH -d 'operation=lock' 'https://localhost:7021/api/kv/hello_world'

Json:

curl -XPATCH -d '{"operation": "LOCK"}' 'https://localhost:7021/api/kv/hello_world'

Best regards

@clintnetwork clintnetwork added this to Issues in Lucid Development via automation Dec 31, 2019
@clintnetwork clintnetwork changed the title [Manifest] About some operations (like LOCK, INCREMENT, EXPIRE etc) [Manifest] About some operations (like LOCK, EXPIRE etc) Dec 31, 2019
@clintnetwork clintnetwork mentioned this issue Jan 1, 2020
15 of 17 tasks complete
@clintnetwork

This comment has been minimized.

Copy link
Member Author

@clintnetwork clintnetwork commented Jan 1, 2020

There are some things that could be great to have:

  • Get all keys in the node
  • Flush all keys (without shutdown of course)
  • Get all metas from an object (by example using ?meta=true or ?meta as a GET query parameter)
@clintnetwork clintnetwork added this to the alpha milestone Jan 2, 2020
@clintnetwork clintnetwork mentioned this issue Feb 1, 2020
2 of 3 tasks complete
Lucid Development automation moved this from Issues to Jobs Done Mar 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Lucid Development
  
Jobs Done
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.