135 lines
3.5 KiB
Markdown
135 lines
3.5 KiB
Markdown
|
|
# API Docs
|
||
|
|
|
||
|
|
<a name="sangh-post-list"></a>
|
||
|
|
## List
|
||
|
|
|
||
|
|
Details for sant post list api
|
||
|
|
##
|
||
|
|
##
|
||
|
|
|
||
|
|
####Endpoint
|
||
|
|
|
||
|
|
> {warning} Please note that the URI for this endpoint should include api/{$version} before
|
||
|
|
|
||
|
|
| Method | URI | Headers |
|
||
|
|
| : | :- | : |
|
||
|
|
| POST | `/sangh/user/post` | Default |
|
||
|
|
|
||
|
|
### URL Params
|
||
|
|
|
||
|
|
```php
|
||
|
|
None
|
||
|
|
```
|
||
|
|
|
||
|
|
### Data Params
|
||
|
|
|
||
|
|
```php
|
||
|
|
{
|
||
|
|
"page" : "2",
|
||
|
|
"limit" : "2",
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
> {success} Success Response
|
||
|
|
|
||
|
|
####Code `200`
|
||
|
|
####Content
|
||
|
|
```php
|
||
|
|
{
|
||
|
|
"data": {
|
||
|
|
"current_page": 1,
|
||
|
|
"data": [
|
||
|
|
{
|
||
|
|
"id": 34,
|
||
|
|
"user_id": 1,
|
||
|
|
"category_id": 1,
|
||
|
|
"privacy": 1,
|
||
|
|
"status": 1,
|
||
|
|
"description": "a",
|
||
|
|
"created_by": {
|
||
|
|
"id": 1,
|
||
|
|
"name": "Admin",
|
||
|
|
"avatar": "http://global-jain.test/storage/images/users/medium/6451644991774.png",
|
||
|
|
"created_at": "2022-01-20T11:12:23.000000Z",
|
||
|
|
"updated_at": "2022-03-02T13:34:34.000000Z",
|
||
|
|
"is_friends": 0
|
||
|
|
},
|
||
|
|
"updated_by": null,
|
||
|
|
"location": "Ah",
|
||
|
|
"type": 3,
|
||
|
|
"type_id": 1,
|
||
|
|
"created_at": "2022-03-16T06:37:48.000000Z",
|
||
|
|
"updated_at": "2022-03-16T06:37:48.000000Z",
|
||
|
|
"likes_count": 0,
|
||
|
|
"comments_count": 0,
|
||
|
|
"created_ago": "25 minutes ago",
|
||
|
|
"is_friends": false,
|
||
|
|
"is_liked": false,
|
||
|
|
"tag_users": [
|
||
|
|
{
|
||
|
|
"id": 1,
|
||
|
|
"name": "Admin",
|
||
|
|
"avatar": "http://global-jain.test/storage/images/users/medium/6451644991774.png",
|
||
|
|
"is_friends": 0,
|
||
|
|
"pivot": {
|
||
|
|
"post_id": 34,
|
||
|
|
"user_id": 1,
|
||
|
|
"created_at": "2022-03-16T06:37:48.000000Z",
|
||
|
|
"updated_at": "2022-03-16T06:37:48.000000Z"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"post_images": [],
|
||
|
|
"category": {
|
||
|
|
"id": 1,
|
||
|
|
"parent_id": 0,
|
||
|
|
"name": "Dharmik",
|
||
|
|
"description": null,
|
||
|
|
"created_at": "2022-01-31T12:28:34.000000Z",
|
||
|
|
"updated_at": "2022-01-31T12:28:34.000000Z"
|
||
|
|
},
|
||
|
|
"likes": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"first_page_url": "http://global-jain.test/api/v1/sangh/user/post?page=1",
|
||
|
|
"from": 1,
|
||
|
|
"last_page": 1,
|
||
|
|
"last_page_url": "http://global-jain.test/api/v1/sangh/user/post?page=1",
|
||
|
|
"links": [
|
||
|
|
{
|
||
|
|
"url": null,
|
||
|
|
"label": "« Previous",
|
||
|
|
"active": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"url": "http://global-jain.test/api/v1/sangh/user/post?page=1",
|
||
|
|
"label": "1",
|
||
|
|
"active": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"url": null,
|
||
|
|
"label": "Next »",
|
||
|
|
"active": false
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"next_page_url": null,
|
||
|
|
"path": "http://global-jain.test/api/v1/sangh/user/post",
|
||
|
|
"per_page": "1",
|
||
|
|
"prev_page_url": null,
|
||
|
|
"to": 1,
|
||
|
|
"total": 1
|
||
|
|
},
|
||
|
|
"status": 200
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
> {danger} Unauthenticated Response
|
||
|
|
|
||
|
|
####Code `403`
|
||
|
|
####Content
|
||
|
|
```php
|
||
|
|
{
|
||
|
|
"message": "Something went wrong!"
|
||
|
|
}
|
||
|
|
```
|