Files
Global-Jain/resources/docs/1.0/sangh.md

1645 lines
39 KiB
Markdown
Raw Normal View History

2025-11-05 10:37:10 +05:30
# API Docs
<a name="list"></a>
## List Sangh
Details for sangh list api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| GET | `user/sangh-list` | Bearer {token} |
### URL Params
```php
none
```
### Data Params
```php
{
"name": "Test",
"dharma_id": "1",
"sampraday_id": "2"
}
```
> {success} Success Response
####Code `200`
####Content
```php
{
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"user_id": 27,
"name": "Test Sangh",
"dharma_id": 1,
"sampraday_id": 1,
"reg_number": "1E50SA4A4D",
"reg_date": "2022-02-15",
"address": "asdawfwaf, afaafsfef,afaasfgdfaf",
"city": "Ahmedabad",
"pincode": 380054,
"longitude": "12.00441",
"latitude": "10.00441",
"about": "adawffwfdfefdfefdefsfefdfefsfef",
"avatar": null,
"created_by": 27,
"updated_by": 27,
"created_at": "2022-03-15T09:32:00.000000Z",
"updated_at": "2022-03-15T09:32:00.000000Z"
}
],
"first_page_url": "http://127.0.0.1:8000/api/v1/user/sangh-list?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/api/v1/user/sangh-list?page=1",
"links": [
{
"url": null,
"label": "&laquo; Previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/v1/user/sangh-list?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next &raquo;",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/api/v1/user/sangh-list",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
},
"status": 200
}
```
> {danger} Unauthenticated Response
####Code `403`
####Content
```php
{
"message": "Something went wrong!"
"status": 403
}
```
<a name="add"></a>
## Add Sangh
Details for add sangh api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/add-sangh` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
{
"name": "Rajkot sangh Data",
"sangh_type":2,
"dharma_id": 2,
"sampraday_id": 1,
"mulnayak_bhagwan_name" : "Test",
"reg_number": "1750SA4A4F",
"reg_date": "2020-02-15",
"address": "asdawfwaf, afaafsfef,afaasfgdfaf",
"city": "Ahmedabad",
"pincode": 380054,
"longitude": "12.00441",
"latitude": "10.00441",
"about": "adawffwfdfefdfefdefsfefdfefsfef",
"email" : "testing@gmail.com",
"state" : "Gujarat",
"apartment_name" : "samarpan avanue",
"mobile_number" : 9898989898,
"sangh_website" : "https://xd.adobe.com",
"number_of_members" : 100,
"aaradhana_bhavan_status" : 1,
"pathshala_status" : 1,
"guruji_name" : "Dhaval Joshi",
"no_of_students" : 100,
"library_status" : 1,
"library_name" : "testing",
"librarian_name" : "dhaval joshi",
"librarian_mobile_number" : 9999999999,
"number_of_books" : "100",
"aayambilshala_status" : 1,
"bhojanshala_status" : 1,
"tifin_service_status" : 1,
"swapna_chadawa_organised_status" : 1,
"type_of_template" : 1,
"mahila_mandal_status" :1,
"yuva_mandal_status" : 1,
"bank_account_number" : "12334422233",
"bank_ifsc":"BADKP002",
"bank_branch":"test",
"bank_upi_id" : "aweqeq",
"bank_qr_code" : "1234.jpeg"
}
```
> {success} Success Response
####Code `200`
####Content
```php
{
"message": "Sangh created successfully!",
"status": 200
}
```
> {danger} Unauthenticated Response
####Code `403`
####Content
```php
{
"message": "Something went wrong!",
"status": 403
}
```
<a name="update"></a>
## Update Sangh
Details for update sant api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/update-sangh/{id}` | Bearer {token} |
### URL Params
```php
1 //Sangh ID
```
### Data Params
```php
{
"name": "ABC",
"address": "asdawfwaf, afaafsfef,afaasfgdfaf",
"city": "Ahmedabad",
"pincode": 380054,
"longitude": "12.00441",
"latitude": "10.00441",
"avatar": "cdafcssa.jpg",
"reg_number": "AD218AD78".
"reg_date": "2020-12-12",
"about": "test sangh"
}
```
> {success} Success Response
####Code `200`
####Content
```php
{
"data": [
{
"id": 1,
"user_id": 1,
"name": "shr",
"father_name": "father_nameq",
"mother_name": "mother_nameqw",
"guru_name": "Connor Mcguire",
"gender": 1,
"avatar": "http://global-jain.test/storage/images/sants/1642584840.jpg",
"honor": [
"honorqw",
"shree"
],
"qualification": "qualification",
"dharma_id": 2,
"sampraday_id": 1,
"guru_id": 1,
"birth_date": "2000-01-21",
"diksha_date": "2000-01-23",
"diksha_place": "diksha_place",
"about": "about",
"status": 1,
"profile_verified_at": null,
"created_by": 1,
"updated_by": 1,
"created_at": "2022-01-19T08:31:27.000000Z",
"updated_at": "2022-01-19T09:34:00.000000Z",
"deleted_at": null
}
],
"message": "Sangh updated successfully!",
"status": 200
}
```
<a name="show"></a>
## Info Sangh
Details for sant api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| GET | `user/sangh/{id}` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
None
```
> {success} Success Response
####Code `200`
####Content
```php
{
"status": 200,
"success": true,
"data": {
"id": 1,
"user_id": 1,
"name": "Sangh Test",
"dharma_id": 1,
"sampraday_id": 1,
"reg_number": "1E50SA4A4D",
"reg_date": "2022-02-15",
"address": "asdawfwaf, afaafsfef,afaasfgdfa",
"city": "Ahmedabad",
"pincode": 380054,
"longitude": "12.00441",
"latitude": "10.00441",
"about": "About Sangh",
"avatar": "8971647412515.png",
"created_by": {
"id": 1,
"name": "Admin",
"avatar": "http://global-jain.test/storage/images/users/medium/6451644991774.png",
"is_friends": 0
},
"updated_by": 1,
"created_at": "2022-03-16T06:35:16.000000Z",
"updated_at": "2022-03-16T06:35:16.000000Z",
"followers_count": 0,
"followers": [],
"dharma": {
"id": 1,
"name": "Deravasi"
},
"sampraday": {
"id": 1,
"name": "Harriet Powers"
}
},
"message": "Get sangh info successfully!"
}
```
<a name="user-list"></a>
## List of users
Details for user list to add as members api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/user-list-sangh` | Bearer {token} |
### URL Params
```php
none
```
### Data Params
```php
{
"name": "Test",
"sangh_id" : "1"
}
```
> {success} Success Response
####Code `200`
####Content
```php
{
"data": {
"current_page": 1,
"data": [
{
"id": 2,
"uuid": "28ce32f6-d359-4c2b-b2e1-3a9546c8953e",
"name": "Test",
"email": "",
"email_hash": "9e77c62b589b3ae5ea0d9ea58b907bfa",
"username": "75",
"country_code": "+91",
"mobile": "9574544730",
"dharma_id": 3,
"birth_date": "1997-05-10",
"gender": 1,
"email_verified_at": null,
"mobile_verified_at": null,
"avatar": "http://127.0.0.1:8000/images/misc/placeholder.png",
"school_name": null,
"about": null,
"relationship": 0,
"is_passive": 0,
"parent_id": 0,
"verification_confirmed": 2,
"status": 2,
"mobile_privacy": 1,
"email_privacy": 1,
"avatar_privacy": 1,
"birth_date_privacy": 1,
"gender_privacy": 1,
"dharma_privacy": 1,
"karma_dhan": 0,
"timezone": null,
"last_login_at": null,
"last_login_ip": null,
"created_at": "2022-01-21T18:12:04.000000Z",
"updated_at": "2022-01-31T16:25:42.000000Z",
"deleted_at": null,
"is_friends": 0
},
]
}
"status": 200
}
```
> {danger} Unauthenticated Response
####Code `403`
####Content
```php
{
"message": "Something went wrong!"
"status": 403
}
```
<a name="add-member"></a>
## Add Sangh Members
Details for add sangh members api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/add-sangh-member` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
{
"sangh_id": 2,
"user_id": [24],
"core_committee": 1,
"role": "Admin"
}
```
> {success} Success Response
####Code `200`
####Content
```php
{
"message": "Sangh member added successfully!",
"status": 200
}
```
> {danger} Unauthenticated Response
####Code `403`
####Content
```php
{
"message": "Something went wrong!",
"status": 403
}
```
<a name="update-member"></a>
## Update Sangh Member
Details for update sangh member api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/update-sangh-member` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
{
"sangh_id": 1,
"user_id": 6,
"role": "Member"
}
```
> {success} Success Response
####Code `200`
####Content
```php
{
"message": "Sangh member updated successfully!",
"status": 200
}
```
> {danger} Unauthenticated Response
####Code `403`
####Content
```php
{
"message": "Sangh/Sangh member does not exist!",
"status": 403
}
```
<a name="delete-member"></a>
## Delete Sangh Member
Details for delete sangh member api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/delete-sangh-member` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
{
"sangh_id": 1,
"user_id": 6
}
```
> {success} Success Response
####Code `200`
####Content
```php
{
"message": "Sangh member deleted successfully!",
"status": 200
}
```
> {danger} Unauthenticated Response
####Code `403`
####Content
```php
{
"message": "Sangh/Sangh member does not exist!",
"status": 403
}
```
<a name="sangh-follow"></a>
## Sangh Follow
Sangh follow api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/sangh-follow` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
sangh_id:3
```
> {success} Success Response
####Code `200`
####Content
```php
{
"status": 200,
"success": true,
"message": "Sangh unfollow successfully!"
}
```
<a name="sangh-suggestion"></a>
## Sangh Suggestion
Sangh suggestion list api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/sangh-suggestion` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
None
```
> {success} Success Response
####Code `200`
####Content
```php
{
"status": 200,
"success": true,
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"name": "Sangh Test",
"sampraday_id": 1,
"dharma_id": 2,
"avatar": "8971647412515.png",
"sampraday": {
"id": 1,
"name": "Harriet Powers"
},
"dharma": {
"id": 2,
"name": "Sthanakvasi"
}
}
],
"first_page_url": "http://global-jain.test/api/v1/user/sangh-suggestion?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://global-jain.test/api/v1/user/sangh-suggestion?page=1",
"links": [
{
"url": null,
"label": "&laquo; Previous",
"active": false
},
{
"url": "http://global-jain.test/api/v1/user/sangh-suggestion?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next &raquo;",
"active": false
}
],
"next_page_url": null,
"path": "http://global-jain.test/api/v1/user/sangh-suggestion",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
},
"message": "Sangh unfollow successfully!"
}
```
<a name="user-sangh"></a>
## List of Sangh
In Rreview for sant list api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/sangh/list` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
None
```
> {success} Success Response
####Code `200`
####Content
```php
{
"status": 200,
"success": true,
"data": {
"current_page": 1,
"data": [
{
"id": 2,
"user_id": 1,
"name": "Sangh Test",
"avatar": "http://global-jain.test/storage/images/sanghs/medium/9371647424703.png",
"dharma_id": 1,
"sampraday_id": 1,
"reg_number": "1E50SA4A4D",
"reg_date": "2022-02-15",
"address": "asdawfwaf, afaafsfef,afaasfgdfa",
"city": "Ahmedabad",
"pincode": 380054,
"longitude": "12.00441",
"latitude": "10.00441",
"about": "About Sangh",
"created_by": 1,
"updated_by": 1,
"created_at": "2022-03-16T09:58:24.000000Z",
"updated_at": "2022-03-16T09:58:24.000000Z",
"pivot": {
"user_id": 1,
"sangh_id": 2,
"created_at": "2022-03-16T09:58:24.000000Z",
"updated_at": "2022-03-16T09:58:24.000000Z",
"core_committee": 1,
"role": "Admin"
}
},
{
"id": 3,
"user_id": 1,
"name": "Sangh Test 3",
"avatar": "http://global-jain.test/storage/images/sanghs/medium/9461647424865.png",
"dharma_id": 1,
"sampraday_id": 1,
"reg_number": "1E50SA4A4D",
"reg_date": "2022-02-15",
"address": "asdawfwaf, afaafsfef,afaasfgdfa",
"city": "Ahmedabad",
"pincode": 380054,
"longitude": "12.00441",
"latitude": "10.00441",
"about": "About Sangh",
"created_by": 1,
"updated_by": 1,
"created_at": "2022-03-16T10:01:05.000000Z",
"updated_at": "2022-03-16T10:01:05.000000Z",
"pivot": {
"user_id": 1,
"sangh_id": 3,
"created_at": "2022-03-16T09:58:24.000000Z",
"updated_at": "2022-03-16T09:58:24.000000Z",
"core_committee": 1,
"role": "Admin"
}
}
],
"first_page_url": "http://global-jain.test/api/v1/user/sangh/list?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://global-jain.test/api/v1/user/sangh/list?page=1",
"links": [
{
"url": null,
"label": "&laquo; Previous",
"active": false
},
{
"url": "http://global-jain.test/api/v1/user/sangh/list?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next &raquo;",
"active": false
}
],
"next_page_url": null,
"path": "http://global-jain.test/api/v1/user/sangh/list",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
},
"message": "Get sangh info successfully!"
}
```
<a name="sangh-following"></a>
## Sangh Follow
Sangh follow api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/sangh-following` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
sangh_id:3
```
> {success} Success Response
####Code `200`
####Content
```php
{
"status": 200,
"success": true,
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"user_id": 1,
"name": "Sangh Test",
"dharma_id": 2,
"sampraday_id": 1,
"reg_number": "1E50SA4A4D",
"reg_date": "2022-02-15",
"address": "asdawfwaf, afaafsfef,afaasfgdfa",
"city": "Ahmedabad",
"pincode": 380056,
"longitude": "12.00441",
"latitude": "10.00441",
"about": "About Sangh",
"avatar": "http://global-jain.test/storage/images/sanghs/medium/3911647430921.png",
"created_by": 1,
"updated_by": 1,
"created_at": "2022-03-16T06:35:16.000000Z",
"updated_at": "2022-03-16T11:42:01.000000Z",
"is_user_following": true,
"pivot": {
"user_id": 1,
"sangh_id": 1,
"created_at": "2022-03-16T12:12:49.000000Z",
"updated_at": "2022-03-16T12:12:49.000000Z"
}
},
{
"id": 2,
"user_id": 1,
"name": "Sangh Test",
"dharma_id": 1,
"sampraday_id": 1,
"reg_number": "1E50SA4A4D",
"reg_date": "2022-02-15",
"address": "asdawfwaf, afaafsfef,afaasfgdfa",
"city": "Ahmedabad",
"pincode": 380054,
"longitude": "12.00441",
"latitude": "10.00441",
"about": "About Sangh",
"avatar": "http://global-jain.test/storage/images/sanghs/medium/9371647424703.png",
"created_by": 1,
"updated_by": 1,
"created_at": "2022-03-16T09:58:24.000000Z",
"updated_at": "2022-03-16T09:58:24.000000Z",
"is_user_following": true,
"pivot": {
"user_id": 1,
"sangh_id": 2,
"created_at": "2022-03-16T12:12:49.000000Z",
"updated_at": "2022-03-16T12:12:49.000000Z"
}
}
],
"first_page_url": "http://global-jain.test/api/v1/user/sangh-following?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://global-jain.test/api/v1/user/sangh-following?page=1",
"links": [
{
"url": null,
"label": "&laquo; Previous",
"active": false
},
{
"url": "http://global-jain.test/api/v1/user/sangh-following?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next &raquo;",
"active": false
}
],
"next_page_url": null,
"path": "http://global-jain.test/api/v1/user/sangh-following",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
},
"message": "Get sant follow list successfully!"
}
```
<a name="sangh-followers"></a>
## Sangh Followers
Sangh followers api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/sangh/{sangh}/followers` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
None
```
> {success} Success Response
####Code `200`
####Content
```php
{
"status": 200,
"success": true,
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"uuid": "71046d49-2f89-4068-a725-518ad99527e8",
"name": "Admin",
"email": "",
"email_hash": "be382c3392bfb101cf67ebfe39eb398c",
"username": "Admin",
"country_code": "91",
"mobile": "9632587410",
"dharma_id": 2,
"birth_date": "1995-02-15",
"gender": 2,
"email_verified_at": "2022-01-20T11:12:23.000000Z",
"mobile_verified_at": "2022-01-20T11:12:23.000000Z",
"avatar": "http://global-jain.test/storage/images/users/medium/6451644991774.png",
"school_name": null,
"about": null,
"relationship": 0,
"is_passive": 0,
"parent_id": 0,
"verification_confirmed": 2,
"status": 2,
"mobile_privacy": 1,
"email_privacy": 1,
"avatar_privacy": 1,
"birth_date_privacy": 1,
"gender_privacy": 2,
"dharma_privacy": 2,
"karma_dhan": 0,
"timezone": "",
"last_login_at": null,
"last_login_ip": "",
"created_at": "2022-01-20T11:12:23.000000Z",
"updated_at": "2022-03-02T13:34:34.000000Z",
"deleted_at": null,
"is_friends": 0,
"pivot": {
"sangh_id": 1,
"user_id": 1,
"created_at": "2022-03-16T12:12:49.000000Z",
"updated_at": "2022-03-16T12:12:49.000000Z"
}
}
],
"first_page_url": "http://global-jain.test/api/v1/user/sangh/1/followers?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://global-jain.test/api/v1/user/sangh/1/followers?page=1",
"links": [
{
"url": null,
"label": "&laquo; Previous",
"active": false
},
{
"url": "http://global-jain.test/api/v1/user/sangh/1/followers?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next &raquo;",
"active": false
}
],
"next_page_url": null,
"path": "http://global-jain.test/api/v1/user/sangh/1/followers",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
},
"message": "Get sangh follow list successfully!"
}
```
<a name="sangh-member"></a>
## Sangh Member
Sangh member api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/sangh/{sangh}/get-sangh-members` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
None
```
> {success} Success Response
####Code `200`
####Content
```php
{
"status": 200,
"success": true,
"data": {
"current_page": 1,
"data": [
{
"id": 2,
"name": "Admina",
"avatar": "http://global-jain.test/images/misc/placeholder.png",
"is_friends": 0,
"pivot": {
"sangh_id": 1,
"user_id": 2,
"created_at": "2022-03-16T09:58:24.000000Z",
"updated_at": "2022-03-16T09:58:24.000000Z",
"core_committee": 1,
"role": "Admin",
"status": 1 //0: Sent, 1: Accepted
}
},
{
"id": 1,
"name": "Admin",
"avatar": "http://global-jain.test/storage/images/users/medium/6451644991774.png",
"is_friends": 0,
"pivot": {
"sangh_id": 1,
"user_id": 1,
"created_at": "2022-03-16T09:58:24.000000Z",
"updated_at": "2022-03-16T09:58:24.000000Z",
"core_committee": 0,
"role": "Admin",
"status": 0 //0: Sent, 1: Accepted
}
}
],
"first_page_url": "http://global-jain.test/api/v1/user/sangh/1/get-sangh-members?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://global-jain.test/api/v1/user/sangh/1/get-sangh-members?page=1",
"links": [
{
"url": null,
"label": "&laquo; Previous",
"active": false
},
{
"url": "http://global-jain.test/api/v1/user/sangh/1/get-sangh-members?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next &raquo;",
"active": false
}
],
"next_page_url": null,
"path": "http://global-jain.test/api/v1/user/sangh/1/get-sangh-members",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
},
"message": "Get sangh follow list successfully!"
}
```
<a name="sangh-committee"></a>
## Sangh Committee
Sangh committee api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/sangh/{sangh}/get-sangh-committee-members` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
None
```
> {success} Success Response
####Code `200`
####Content
```php
{
"status": 200,
"success": true,
"data": {
"current_page": 1,
"data": [
{
"id": 2,
"name": "Admina",
"avatar": "http://global-jain.test/images/misc/placeholder.png",
"is_friends": 0,
"pivot": {
"sangh_id": 1,
"user_id": 2,
"created_at": "2022-03-16T09:58:24.000000Z",
"updated_at": "2022-03-16T09:58:24.000000Z",
"core_committee": 1,
"role": "Admin",
"status": 1 //0: Sent, 1: Accepted
}
},
{
"id": 1,
"name": "Admin",
"avatar": "http://global-jain.test/storage/images/users/medium/6451644991774.png",
"is_friends": 0,
"pivot": {
"sangh_id": 1,
"user_id": 1,
"created_at": "2022-03-16T09:58:24.000000Z",
"updated_at": "2022-03-16T09:58:24.000000Z",
"core_committee": 0,
"role": "Admin",
"status": 1 //0: Sent, 1: Accepted
}
}
],
"first_page_url": "http://global-jain.test/api/v1/user/sangh/1/get-sangh-members?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://global-jain.test/api/v1/user/sangh/1/get-sangh-members?page=1",
"links": [
{
"url": null,
"label": "&laquo; Previous",
"active": false
},
{
"url": "http://global-jain.test/api/v1/user/sangh/1/get-sangh-members?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next &raquo;",
"active": false
}
],
"next_page_url": null,
"path": "http://global-jain.test/api/v1/user/sangh/1/get-sangh-members",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
},
"message": "Get sangh follow list successfully!"
}
```
> {danger} Unauthenticated Response
####Code `403`
####Content
```php
{
"message": "Something went wrong!",
"status": 403
}
```
<a name="invited-member"></a>
## Invited sangh members
Invited sangh member list api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/get-invited-members` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
None
```
> {success} Success Response
####Code `200`
####Content
```php
{
"status": 200,
"success": true,
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"sangh_id": 2,
"user_id": 27,
"core_committee": 0,
"role": "Admin",
"status": 0,
"added_by": {
"id": 1,
"uuid": "d39738c9-b723-4140-a2a0-35bfd956646c",
"name": "Admin",
"email": "",
"email_hash": "be382c3392bfb101cf67ebfe39eb398c",
"username": "Admin",
"country_code": null,
"mobile": null,
"dharma_id": null,
"birth_date": null,
"gender": null,
"email_verified_at": "2022-01-21T18:08:55.000000Z",
"mobile_verified_at": "2022-01-21T18:08:55.000000Z",
"avatar": "http://127.0.0.1:8000/images/misc/placeholder.png",
"school_name": null,
"about": null,
"relationship": 0,
"is_passive": 0,
"parent_id": 0,
"verification_confirmed": 2,
"status": 2,
"mobile_privacy": 1,
"email_privacy": 1,
"avatar_privacy": 1,
"birth_date_privacy": 1,
"gender_privacy": 1,
"dharma_privacy": 1,
"karma_dhan": 0,
"timezone": "",
"last_login_at": null,
"last_login_ip": "",
"created_at": "2022-01-21T18:08:55.000000Z",
"updated_at": "2022-01-25T14:46:28.000000Z",
"deleted_at": null,
"is_friends": 0
},
"created_at": "2022-03-16T06:22:49.000000Z",
"updated_at": "2022-03-21T10:10:39.000000Z",
"user": {
"id": 27,
"uuid": "bacaecd7-44c3-4f03-96e8-5a45e89fbb6e",
"name": "Anurag",
"email": "",
"email_hash": null,
"username": "53",
"country_code": "+91",
"mobile": "9725710913",
"dharma_id": 1,
"birth_date": "2008-03-10",
"gender": 1,
"email_verified_at": null,
"mobile_verified_at": null,
"avatar": "",
"school_name": null,
"about": null,
"relationship": 0,
"is_passive": 0,
"parent_id": 0,
"verification_confirmed": 2,
"status": 1,
"mobile_privacy": 1,
"email_privacy": 1,
"avatar_privacy": 1,
"birth_date_privacy": 3,
"gender_privacy": 1,
"dharma_privacy": 1,
"karma_dhan": 0,
"timezone": null,
"last_login_at": null,
"last_login_ip": null,
"created_at": "2022-02-23T19:49:50.000000Z",
"updated_at": "2022-03-14T11:07:23.000000Z",
"deleted_at": null,
"is_friends": 0
},
"sangh": {
"id": 2,
"user_id": 27,
"name": "Amdvad sangh",
"dharma_id": 2,
"sampraday_id": 1,
"reg_number": "1750SA4A4F",
"reg_date": "2020-02-15",
"address": "asdawfwaf, afaafsfef,afaasfgdfaf",
"city": "Ahmedabad",
"pincode": 380054,
"longitude": "12.00441",
"latitude": "10.00441",
"about": "adawffwfdfefdfefdefsfefdfefsfef",
"avatar": "http://127.0.0.1:8000/images/misc/placeholder.png",
"created_by": 27,
"updated_by": 27,
"created_at": "2022-03-16T06:22:49.000000Z",
"updated_at": "2022-03-16T06:22:49.000000Z",
"is_user_following": false,
"is_member": 0,
"is_requested": true
}
},
],
"first_page_url": "http://127.0.0.1:8000/api/v1/user/get-invited-members?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/api/v1/user/get-invited-members?page=1",
"links": [
{
"url": null,
"label": "&laquo; Previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/v1/user/get-invited-members?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next &raquo;",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/api/v1/user/get-invited-members",
"per_page": 10,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
```
> {danger} Unauthenticated Response
####Code `403`
####Content
```php
{
"message": "Something went wrong!",
"status": 403
}
```
<a name="accept-member-request"></a>
## Accept/Reject member request
Accept/Reject sangh member request api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| POST | `user/accept-sangh-request` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
{
"sangh_id" : 1,
"user_id": 10,
"status": 1 //1: Accept, 2: Reject
}
```
> {success} Success Response
####Code `200`
####Content
```php
{
"message": "Sangh member request accepted successfully.",
"status": 200
}
```
> {danger} Unauthenticated Response
####Code `403`
####Content
```php
{
"message": "Something went wrong!",
"status": 403
}
```
<a name="associated-sangh-list"></a>
## Associated sangh list
Get associated sangh api
##
##
####Endpoint
> {warning} Please note that the URI for this endpoint should include api/{$version} before
| Method | URI | Headers |
| : | :- | : |
| GET | `user/associated-sangh-list` | Bearer {token} |
### URL Params
```php
None
```
### Data Params
```php
None
```
> {success} Success Response
####Code `200`
####Content
```php
{
"status": 200,
"success": true,
"data": [
{
"id": 6,
"name": "tributeee",
"address": "Ahmedabad, Uttar Pradesh 243407, India",
"is_user_following": false,
"is_member": 1,
"is_requested": true
},
{
"id": 21,
"name": "priti's sangh",
"address": "Shahibag, Ahmedabad, Gujarat, India",
"is_user_following": false,
"is_member": 1,
"is_requested": true
},
{
"id": 28,
"name": "baha",
"address": "Ahmedabad, Gujarat, India",
"is_user_following": false,
"is_member": 2,
"is_requested": true
},
{
"id": 32,
"name": "nidhi sangh qwertyy qwertty1234567890",
"address": "Palitana, Gujarat 364270, India",
"is_user_following": false,
"is_member": 1,
"is_requested": true
},
{
"id": 57,
"name": "sangh 123",
"address": "Ahmedabad, Gujarat, India",
"is_user_following": false,
"is_member": 1,
"is_requested": true
},
{
"id": 63,
"name": "Rajkot sangh",
"address": "asdawfwaf, afaafsfef,afaasfgdfaf",
"is_user_following": false,
"is_member": 1,
"is_requested": true
}
]
}
```
> {danger} Unauthenticated Response
####Code `403`
####Content
```php
{
"message": "Something went wrong!",
"status": 403
}
```