Missing Persons
## Missing persons in Uganda Backend
This is a backend for the Missing persons UG which mirrors the official data file
at
github.com
## How to setup
It's a Laravel Project so the defaults apply and the requirements are:
1. PHP 8.2
2. MySQL 5.7 or 8.x
## API Usage
The api base url is `
dashboard.missingpersonsug.…`
### Victims
The list of victims
`
dashboard.missingpersonsug.…`
**Example**
`GET
dashboard.missingpersonsug.…`
```json
{
"data": [
{
"id": 1,
"name": "Jean Namukasa",
"nickname": "Mama Jean",
"gender": "Female",
"x_handle_full": "https:://
x.com",
"x_handle": "@jean",
"photo_url": "
dashboard.missingpersonsug.…",
"status": "Arrested",
"holding_location": "Jinja Road Police Station ",
"security_organ": "Police",
"status_date": "Wed, Jul 24, 2024 9:30 AM",
"notes": "Was taken away in a drone"
}
]
}
```
2. Pagination
You can use the `per_page` URL param to change the number of items returned in a request
**Example**
- _Retrieve 25 items_
`GET
dashboard.missingpersonsug.…`
- _Retrieve 10 items_
`GET
dashboard.missingpersonsug.…`
```json
{
"links": {
"first": "https:\/\/missingpersons.test\/api\/victims?page=1",
"last": "https:\/\/missingpersons.test\/api\/victims?page=3",
"prev": null,
"next": "https:\/\/missingpersons.test\/api\/victims?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 3,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https:\/\/missingpersons.test\/api\/victims?page=1",
"label": "1",
"active": true
},
{
"url": "https:\/\/missingpersons.test\/api\/victims?page=2",
"label": "2",
"active": false
},
{
"url": "https:\/\/missingpersons.test\/api\/victims?page=3",
"label": "3",
"active": false
},
{
"url": "https:\/\/missingpersons.test\/api\/victims?page=2",
"label": "Ne …