# API Documentation
## Authentication
Add this attributes to your header:
```
[
"Authorization" => 123 // can be change later
]
```
## Usage
### 1. Get multiple profiles data based on search parameters
```
GET /api/profiles/query
```
Available parameter to search:
```
[
"id",
"created_at",
"updated_at",
"submitted_at",
"approved_at",
"ref_id",
"user_id",
"dob",
"height",
"weight",
"bmi",
"race",
"smoking",
"smoking_opinion",
"about",
"picture",
"education_level",
"education_course",
"education_institution",
"working_status",
"working_shift",
"field_work",
"occupation",
"origin_state",
"living_state",
"living_district",
"willing_to_move",
"marital_status",
"widow_has_child",
"widow_child_total",
"widow_last_child_age",
"widow_last_child_age_month",
"relationship_status",
"polygamy",
"about_candidate",
"target_married",
"complete",
"approved",
"status",
"hide",
"hide_others",
"restrictions",
]
```
### 2. Get single profile data based on given ID or Ref ID
```
GET /api/profiles/{id or ref_id}
```
### 3. Create/update profile data
```
POST /api/profiles
```
Update if ref_id exists or elae will create new record,
Required Attribute Parameter to create profile:
```
[
"id",
"user_id",
"height",
"weight",
"bmi",
"smoking",
"smoking_opinion",
"education_level",
"working_status",
"working_shift",
"willing_to_move",
"widow_has_child",
"widow_child_total",
"widow_last_child_age",
"widow_last_child_age_month",
"relationship_status",
"polygamy",
"complete",
"approved",
"status",
"hide"
]
```
### 4. Update profile data
```
PUT /api/profiles/{id}
```
### 5. Delete profile data
```
DELETE /api/profiles/{id}
```
### 6. Delete multiple profile data
```
DELETE /api/profiles/multiple
```
Required parameter:
```
[
"profiles" => [
1, 3, 6 .... // id
]
]
```