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

feat: friend tech key tracking apis #1173

Merged
merged 2 commits into from
Sep 13, 2023
Merged

Conversation

baenv
Copy link
Contributor

@baenv baenv commented Sep 13, 2023

What's this PR does ?

Add apis to service track a friend tech key

  • Api track
curl -X 'POST' \
  'http://localhost:8200/api/v1/defi/tracking-keys' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "decrease_alert_at": 0,
  "increase_alert_at": 0,
  "key_address": "0xfd7232e66a69e1ae01e1e0ea8fab4776e2d325a9",
  "profile_id": "1111"
}'

image

  • Api untrack
curl -X 'DELETE' \
  'http://localhost:8200/api/v1/defi/tracking-keys/6' \
  -H 'accept: application/json'

image

  • Api update track config
curl -X 'PUT' \
  'http://localhost:8200/api/v1/defi/tracking-keys/9' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "decrease_alert_at": 100,
  "increase_alert_at": 1
}'

image

  • Api get list tracking keys by profile id
curl -X 'GET' \
  'http://localhost:8200/api/v1/defi/tracking-keys?profile_id=111' \
  -H 'accept: application/json'

image

@baenv baenv force-pushed the feat/friend-tech-key-tracking-apis branch from e954d07 to b36e353 Compare September 13, 2023 07:33
@trkhoi trkhoi merged commit efad45b into develop Sep 13, 2023
@trkhoi trkhoi deleted the feat/friend-tech-key-tracking-apis branch September 13, 2023 09:24
trkhoi added a commit that referenced this pull request Sep 13, 2023
* develop:
  feat: data hashtag and api render (#1174)
  feat: friend tech key tracking apis (#1173)
  feat: simple search for friend scan keys (#1172)
  feat: check new changelog
jphuc96 pushed a commit that referenced this pull request Sep 13, 2023
# [6.13.0](v6.12.1...v6.13.0) (2023-09-13)

### Features

* check new changelog ([298fa63](298fa63))
* data hashtag and api render ([#1174](#1174)) ([cabf66b](cabf66b))
* friend tech key tracking apis ([#1173](#1173)) ([efad45b](efad45b))
* simple search for friend scan keys ([#1172](#1172)) ([35395f1](35395f1))
@jphuc96
Copy link
Collaborator

jphuc96 commented Sep 13, 2023

🎉 This PR is included in version 6.13.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants