77 lines
1.5 KiB
Markdown
77 lines
1.5 KiB
Markdown
|
|
# API Docs
|
||
|
|
|
||
|
|
<a name="list"></a>
|
||
|
|
## List
|
||
|
|
|
||
|
|
Details for Hospital Certificate Generate
|
||
|
|
##
|
||
|
|
##
|
||
|
|
|
||
|
|
####Endpoint
|
||
|
|
|
||
|
|
> {warning} Please note that the URI for this endpoint should include api/{$version} before
|
||
|
|
|
||
|
|
| Method | URI | Headers |
|
||
|
|
| : | :- | : |
|
||
|
|
| POST | `/hospital/certificate/generate` | Bearer {token} |
|
||
|
|
|
||
|
|
### URL Params
|
||
|
|
|
||
|
|
```php
|
||
|
|
|
||
|
|
```
|
||
|
|
|
||
|
|
### Data Params
|
||
|
|
|
||
|
|
```php
|
||
|
|
{
|
||
|
|
"hospital_id" : 1,
|
||
|
|
"full_name" : "dhaval joshi",
|
||
|
|
"address" : "Ahmedabad",
|
||
|
|
"email" : "dahval@gmail.com",
|
||
|
|
"medical_problem" : "Health issue",
|
||
|
|
"aadhar_card_number" : 124578979977,
|
||
|
|
"profile_photo" : "profile.jpg",
|
||
|
|
"aadhar_card_front_photo" : "front.jpg",
|
||
|
|
"aadhar_card_back_photo" : "back.jpg"
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
> {success} Success Response
|
||
|
|
|
||
|
|
####Code `200`
|
||
|
|
####Content
|
||
|
|
```php
|
||
|
|
{
|
||
|
|
"message": "Certificate generate request sent successfully.",
|
||
|
|
"data": {
|
||
|
|
"user_id": 7,
|
||
|
|
"hospital_id": "1",
|
||
|
|
"full_name": "dhaval joshi",
|
||
|
|
"address": "Ahmedabad",
|
||
|
|
"email": "dahval@gmail.com",
|
||
|
|
"medical_problem": "Health issue",
|
||
|
|
"aadhar_card_number": "124578979972",
|
||
|
|
"profile_photo": "3311719384669.jpeg",
|
||
|
|
"aadhar_card_front_photo": "9091719384670.jpeg",
|
||
|
|
"aadhar_card_back_photo": "5541719384670.jpeg",
|
||
|
|
"updated_at": "2024-06-26T06:51:10.000000Z",
|
||
|
|
"created_at": "2024-06-26T06:51:10.000000Z",
|
||
|
|
"id": 20
|
||
|
|
},
|
||
|
|
"status": 200
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
> {danger} Unauthenticated Response
|
||
|
|
|
||
|
|
####Code `500`
|
||
|
|
####Content
|
||
|
|
```php
|
||
|
|
{
|
||
|
|
"message": "Something went wrong!",
|
||
|
|
"status": 500
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|