upz_project_web's Introduction
upz_project_web's People
upz_project_web's Issues
Banner API
URL
/api/banner
/api/banner?fields=id,banner_title,image
Method
GET
Authentication Required
No
Parameters ()
Name | Type | Required | Comment |
---|---|---|---|
fields | string | no | required fields within parameters like URL |
Response ( /api/banner)
{
"banner": {
"id": 1,
"banner_title": "Banner Title One",
"image": "http://127.0.0.1:8000/storage/upload/banner/tIQT1H1X3MPxTu9iM2bu6hgA0NtqLNrZnui99A9v.jpg",
"status": "1",
"added_by": 1,
"created_at": "2022-04-11T17:31:14.000000Z",
"updated_at": "2022-04-11T17:31:14.000000Z"
}
}
Response ( /api/banner?fields=id,banner_title,image )
{
"banner": {
"id": 1,
"banner_title": "Banner Title One",
"image": "http://127.0.0.1:8000/storage/upload/banner/tIQT1H1X3MPxTu9iM2bu6hgA0NtqLNrZnui99A9v.jpg"
}
}
Site Setting API
URL
/api/siteSetting
/api/siteSetting?fields=id,name,phone,email
Method
GET
Authentication Required
No
Parameters ()
Name | Type | Required | Comment |
---|---|---|---|
fields | string | no | required fields within parameters like URL |
Response ( /api/siteSetting )
{
"siteSetting": {
"id": 1,
"name": "NAGORIK SHEBA",
"phone": "01XXXXXXXXX",
"email": "[email protected]",
"website": "www.example.com",
"address": "Zigatala, Dhanmondi, Dhaka-1209",
"short_description": "Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts and visual mockups.",
"logo": "http://127.0.0.1:8000/backend/img/default.jpg",
"created_at": null,
"updated_at": "2022-04-10T19:52:40.000000Z"
}
}
Response ( /api/siteSetting?fields=id,name,phone,email )
{
"siteSetting": {
"id": 1,
"name": "NAGORIK SHEBA",
"phone": "01XXXXXXXXX",
"email": "[email protected]"
}
}
Get All Districts
URL
/api/allDistrict
Method
GET
Authentication Required
No
Parameters ()
Name | Type | Required | Comment |
---|---|---|---|
You have to give district_id while DC registration |
Response ( /api/banner)
{
"districts": [
{
"id": 1,
"division_id": 1,
"name": "Comilla",
"bn_name": "কুমিল্লা"
},
{
"id": 2,
"division_id": 1,
"name": "Feni",
"bn_name": "ফেনী"
},
{
"id": 3,
"division_id": 1,
"name": "Brahmanbaria",
"bn_name": "ব্রাহ্মণবাড়িয়া"
},
{
"id": 4,
"division_id": 1,
"name": "Rangamati",
"bn_name": "রাঙ্গামাটি"
},
{
"id": 5,
"division_id": 1,
"name": "Noakhali",
"bn_name": "নোয়াখালী"
},
{
"id": 6,
"division_id": 1,
"name": "Chandpur",
"bn_name": "চাঁদপুর"
}
}
Project Uploaded With Starter Package
Admin Registration (DC, UNO, Union, Chairman, UDC)
URL
/api/adminRegister
Method
POST
Authentication Required
No
Parameters ()
Name | Type | Required | Comment |
---|---|---|---|
district_id | integer | yes/no | Required while DC registration |
upazilla_id | integer | yes/no | Required while UNO registration |
union_id | integer | yes/no | Required while Union, Chairman, UDC registration |
name | string | yes | |
yes | |||
phone | number | yes | |
nid_no | number | yes | |
date_of_birth | date | no | |
address | string | no | |
gender | string | yes | 'Male' , 'Female', 'Other' |
password | password | yes | Mixed With Number And Character |
roll | number | yes | '3' For DC, '4' For UNO, '5' For Union, '6' For Chairman, '7' For UDC, |
Response
{"message":"Your data submitted successfully!"}
Get All Unions
URL
/api/allUnion
Method
GET
Authentication Required
No
Parameters ()
Name | Type | Required | Comment |
---|---|---|---|
You have to give union_id while Union,Chairman,UDC registration |
Response ( /api/banner)
{
"unions": [
{
"id": 1,
"upazilla_id": 1,
"name": "Subil",
"bn_name": "সুবিল"
},
{
"id": 2,
"upazilla_id": 1,
"name": "North Gunaighor",
"bn_name": "উত্তর গুনাইঘর"
},
{
"id": 3,
"upazilla_id": 1,
"name": "South Gunaighor",
"bn_name": "দক্ষিণ গুনাইঘর"
},
{
"id": 4,
"upazilla_id": 1,
"name": "Boroshalghor",
"bn_name": "বড়শালঘর"
},
{
"id": 5,
"upazilla_id": 1,
"name": "Rajameher",
"bn_name": "রাজামেহার"
},
{
"id": 6,
"upazilla_id": 1,
"name": "Yousufpur",
"bn_name": "ইউসুফপুর"
},
{
"id": 7,
"upazilla_id": 1,
"name": "Rasulpur",
"bn_name": "রসুলপুর"
},
{
"id": 8,
"upazilla_id": 1,
"name": "Fatehabad",
"bn_name": "ফতেহাবাদ"
},
{
"id": 9,
"upazilla_id": 1,
"name": "Elahabad",
"bn_name": "এলাহাবাদ"
},
}
Get All Upazillas
URL
/api/allUpazilla
Method
GET
Authentication Required
No
Parameters ()
Name | Type | Required | Comment |
---|---|---|---|
You have to give upazilla_id while UNO registration |
Response ( /api/banner)
{
"upazillas": [
{
"id": 1,
"district_id": 1,
"name": "Debidwar",
"bn_name": "দেবিদ্বার"
},
{
"id": 2,
"district_id": 1,
"name": "Barura",
"bn_name": "বরুড়া"
},
{
"id": 3,
"district_id": 1,
"name": "Brahmanpara",
"bn_name": "ব্রাহ্মণপাড়া"
},
{
"id": 4,
"district_id": 1,
"name": "Chandina",
"bn_name": "চান্দিনা"
},
{
"id": 5,
"district_id": 1,
"name": "Chauddagram",
"bn_name": "চৌদ্দগ্রাম"
},
{
"id": 6,
"district_id": 1,
"name": "Daudkandi",
"bn_name": "দাউদকান্দি"
},
{
"id": 7,
"district_id": 1,
"name": "Homna",
"bn_name": "হোমনা"
},
{
"id": 8,
"district_id": 1,
"name": "Laksam",
"bn_name": "লাকসাম"
},
{
"id": 9,
"district_id": 1,
"name": "Muradnagar",
"bn_name": "মুরাদনগর"
},
}
Issues Templete Create
URL(Test)
/api/{url}
Method
GET/POST
Authentication Required
Yes/No
Parameters
Name | Type | Required | Comment |
---|---|---|---|
name | string | yes | |
username | string | yes | username must be unique |
yes | email must be unique | ||
phone | number | yes | phone must be unique |
password | string | yes |
Response
{
"type": "success",
"message": "Registration is successfull!"
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.