Compare commits
7 Commits
dev-testin
...
master
Author | SHA1 | Date | |
---|---|---|---|
92ec26e2b8 | |||
6509049309 | |||
35bd1245c9 | |||
3b4bd7322e | |||
3b8b05c3c4 | |||
573cff2c4c | |||
d4a2e7c272 |
@ -38,7 +38,7 @@ steps:
|
||||
- name: coverage
|
||||
image: python:3.8
|
||||
environment:
|
||||
PRODUCER_REDIS: cache
|
||||
REDIS_URL: "redis://cache"
|
||||
commands:
|
||||
- pip3 install --cache-dir='./.pipcache' -r requirements.txt
|
||||
- pip3 install --cache-dir='./.pipcache' coverage pytest
|
||||
|
6
README.rst
Normal file
6
README.rst
Normal file
@ -0,0 +1,6 @@
|
||||
=================
|
||||
Producer endpoint
|
||||
=================
|
||||
Manages IP changes of consumers. If a consumer sends a message to /ip endpoint, it will write the gotten IP address into the redis DB.
|
||||
|
||||
Produced by GoldenPogácsa Inc.
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
curl --header "Content-Type: application/json" \
|
||||
--request POST \
|
||||
--data '{"uuid":"c959ad81-58f9-4445-aab4-8f3d68aee1ad", "ip":"127.1.2.3"}' \
|
||||
http://localhost:5000/ip
|
||||
--request POST \
|
||||
--data '{"uuid":"c959ad81-58f9-4445-aab4-8f3d68aee1ad", "ip":"127.1.2.3"}' \
|
||||
http://localhost:5000/ip
|
||||
|
Reference in New Issue
Block a user