Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 2 days ago
JSON representation

This is the backend of the smart naka app.

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\"}"
}
```