Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajdip019/smart-naka-backend-aws
This is the backend of the smart naka app.
https://github.com/rajdip019/smart-naka-backend-aws
Last synced: 7 days ago
JSON representation
This is the backend of the smart naka app.
- Host: GitHub
- URL: https://github.com/rajdip019/smart-naka-backend-aws
- Owner: Rajdip019
- Created: 2023-03-20T18:29:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-20T18:34:45.000Z (almost 2 years ago)
- Last Synced: 2024-11-03T23:25:20.673Z (about 2 months ago)
- Language: JavaScript
- Size: 10.6 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smart Naka APP
# Basic
The main `URL`for the API is :
```
https://1aksik8wwi.execute-api.ap-south-1.amazonaws.com/dev
```# See all API routes and it's docs:
[OTP send and verify](https://github.com/Rajdip019/smart-naka-app-backend-aws/blob/main/OTP%20Send%20and%20Verification.md)
[Police and Police Station Data](https://github.com/Rajdip019/smart-naka-app-backend-aws/blob/main/Police%20and%20police%20station.md)
[Missing Cars Data](https://github.com/Rajdip019/smart-naka-app-backend-aws/blob/main/Missing%20Cars%20Data.md)
[Subscribe Device](https://github.com/Rajdip019/smart-naka-app-backend-aws/blob/main/Subscribe%20Device.md)
## Authentication:
In the HTTP header you need to pass this 👇
```json
{
"x-api-key" : PUT YOUR API KEY // put this in env
}
```
`For API key to test the endpoints you can reach out to me. 😉## Update Tracking Details : ( Need to be updated from the camera system )
### `/lost-cars/update-tracking-details`
Body
```json
{
"number" : "BR31L2411",
"policeStation" : "Belghoria Police Station",
"location": "Test location"
}
```Will return empty object
## Send Notification : ( Need to be updated from the camera system )
### `/send-notification`
Body
```json
{
"title": "This is a message",
"description": "This is a description of a message",
"topicName" : "Belghoria Police Station",
"carNumber" : "BR31L2411"
}
```Return :
```json
{
"statusCode": 200,
"body": "{\"success\":\"Push notification sent\"}"
}
```