Skip to content

dineshkapoor27/subscriptions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building Docker Image:

docker build -t subscriptions:1.0 .

Running Docker container:

docker run -d -p 8080:8080 subscriptions:1.0

Example Subscription POST request:

curl --header "Content-Type: application/json" --request POST --data '{"first_name": "Dinesh", "gender": "Male", "dateOfBirth": "17/02/1983", "email": "[email protected]", "consent": true}' http://localhost:8080/subscription

Example Response: {subscriptionId: 8ee09371-f8b7-4925-a717-c81dce21179e, notificationId: 87c3c9c9-55ce-4c0e-9631-394df0226772}

Example Subscription GET request:

http://localhost:8080/subscription?id=5e5fcc50-c221-462c-9c67-de6df3575676

Example Subscription GET response:

{"subscriptionId":"5e5fcc50-c221-462c-9c67-de6df3575676","verificationURL":"https://www.adidas.com/5e5fcc50-c221-462c-9c67-de6df3575676","first_name":"Dinesh","gender":"Male","dateOfBirth":"17/02/1983","email":"[email protected]","consent":true}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published