Skip to content

Rajdip019/smart-naka-backend-aws

Repository files navigation

Smart Naka APP

Basic

The main URLfor 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

Police and Police Station Data

Missing Cars Data

Subscribe Device

Authentication:

In the HTTP header you need to pass this 👇

{
	"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

{
  "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

{
  "title": "This is a message",
  "description": "This is a description of a message",
	"topicName" : "Belghoria Police Station",
	"carNumber" : "BR31L2411"
}

Return :

{
  "statusCode": 200,
  "body": "{\"success\":\"Push notification sent\"}"
}

About

This is the backend of the smart naka app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published