https://github.com/sahilpabale/grc_email_collect_api
Groceri Email Collection API
https://github.com/sahilpabale/grc_email_collect_api
Last synced: 6 months ago
JSON representation
Groceri Email Collection API
- Host: GitHub
- URL: https://github.com/sahilpabale/grc_email_collect_api
- Owner: sahilpabale
- Created: 2021-04-16T03:32:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-13T11:28:14.000Z (almost 3 years ago)
- Last Synced: 2025-02-16T08:15:42.750Z (8 months ago)
- Language: JavaScript
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Grocery Email Collection API
## Documentation:
### Every Response have a special `code` attribute in it to define the actual message
### **[POST]** `/signup`
### Request Body will contain
```json
{
"email_id": "abc@email.com",
"ip_address": "101.101.101.101",
"city": "NY",
"state": "NY"
}
```### `email_id` field is mandatory to pass
### Code - 100
#### Response failed because of no email_id in request body
### Code - 200
#### Response failed because of email_id already exists in database
### Code - 300
#### Response succeded and email id signed-up