passo_mobile_app/lib/utils/urls.dart

206 lines
4.4 KiB
Dart
Raw Normal View History

class Url {
2023-01-17 07:52:31 +00:00
static final Url _instance = Url();
static Url get instance => _instance;
2023-01-17 07:52:31 +00:00
String host() {
2023-04-13 08:45:19 +00:00
// return '192.168.10.183:3000';
2023-05-22 02:23:56 +00:00
return 'agusandelnorte.gov.ph';
// // return "192.168.10.219:3000";
// return "192.168.10.241";
// return "playweb.agusandelnorte.gov.ph";
// return 'devapi.agusandelnorte.gov.ph:3004';
2023-01-17 07:52:31 +00:00
}
String authentication() {
return '/api/account/auth/login/';
2023-01-17 07:52:31 +00:00
}
String profileInformation(){
return 'api/jobnet_app/profile/pds/';
}
2023-02-23 05:51:53 +00:00
String latestApk(){
return "/api/system_app/apk_version/latest";
}
2023-04-13 08:45:19 +00:00
////SOS paths
String sosRequest(){
return "/api/sos_app/sos_request/";
}
2023-04-25 07:50:36 +00:00
//// DOCSMS paths
String getDocument(){
return "/api/web_app/public/document_viewer/";
}
////ELIGIBILITIES PATHS
String eligibilities(){
return "/api/jobnet_app/eligibilities/";
2023-02-23 00:53:14 +00:00
}
2023-02-27 06:26:27 +00:00
String getEligibilities(){
return "/api/jobnet_app/profile/pds/eligibility/";
}
2023-02-27 06:26:27 +00:00
String addEligibility(){
return "/api/jobnet_app/profile/pds/eligibility/";
}
2023-02-23 00:53:14 +00:00
String deleteEligibility(){
return "/api/jobnet_app/profile/pds/eligibility/";
}
String updateEligibility(){
return "/api/jobnet_app/profile/pds/eligibility/";
}
//// work history paths
String workhistory(){
return "/api/jobnet_app/profile/pds/work/";
}
2023-03-16 07:53:42 +00:00
String getPositions(){
return "/api/jobnet_app/positions/";
}
String getAgencies(){
return "/api/jobnet_app/agencies/";
}
2023-03-16 07:53:42 +00:00
String getAgencyCategory(){
return "api/jobnet_app/agency_categories/";
}
String identifications(){
return "/api/jobnet_app/profile/pds/basic/identification/";
}
////educational background paths
2023-04-25 07:50:36 +00:00
String educationalBackground(){
return "/api/jobnet_app/profile/pds/education/";
}
2023-04-25 07:50:36 +00:00
String getSchools(){
return "/api/jobnet_app/schools/";
}
String getPrograms(){
return "api/jobnet_app/education_programs/";
}
String getHonors(){
return "/api/jobnet_app/honors";
}
//// learning and development paths
2023-05-22 02:23:56 +00:00
String learningAndDevelopments(){
return "api/jobnet_app/profile/pds/learning_development/";
}
2023-05-22 02:23:56 +00:00
String conductedTrainings(){
return "api/jobnet_app/conducted_trainings/";
}
String learningAndDevelopmentType(){
return "api/jobnet_app/learning_development/";
}
String learningAndDevelopmentTopics(){
return "api/jobnet_app/training_topics/";
}
//// references paths
String reference(){
return "/api/jobnet_app/profile/pds/personal_reference/";
}
////voluntary works
String getVoluntaryWorks(){
return "/api/jobnet_app/profile/pds/voluntary_work/";
}
//// skills hobbies
String skillsHobbies(){
return "/api/jobnet_app/profile/pds/other/skill_hobby/";
}
String getAllSkillsHobbies(){
return "/api/jobnet_app/skill_hobby/";
}
//// orgmemberships
String getOrgMemberShips(){
return "/api/jobnet_app/profile/pds/other/org_membership/";
}
////non academic recognition
String getNonAcademicRecognition(){
return "/api/jobnet_app/profile/pds/other/non_acad_recognition/";
}
////family paths
String getFamilies(){
return "/api/jobnet_app/profile/pds/family/";
}
String addEmergency(){
return "/api/profile_app/person_emergency/";
}
String getRelationshipTypes(){
return "/api/jobnet_app/relationship_types";
}
2023-05-22 02:23:56 +00:00
String updatePersonalInfor(){
return "/api/jobnet_app/profile/pds/basic/personal/";
}
2023-04-05 00:54:24 +00:00
//// contacts path
String getServiceTypes(){
return "/api/jobnet_app/comm_service_type/";
}
2023-05-02 08:42:15 +00:00
//// address path
String addressPath(){
return "/api/jobnet_app/profile/pds/basic/address/";
}
2023-04-05 00:54:24 +00:00
String contactPath(){
return "/api/jobnet_app/profile/pds/basic/contact/";
}
2023-04-11 01:27:53 +00:00
String getCommunicationProvider(){
2023-04-05 00:54:24 +00:00
return "/api/jobnet_app/comm_services/";
}
String deleteContact (){
return "/api/jobnet_app/profile/pds/basic/contact/";
}
2023-05-22 02:23:56 +00:00
////profile other info
String getReligions(){
return "/api/profile_app/religion/";
}
String getEthnicity(){
return "/api/profile_app/ethnicity/";
}
String getDisability(){
return "api/profile_app/disability/";
}
String getIndigency(){
return "/api/profile_app/indigenous/";
}
String getGenders(){
return "/api/profile_app/gender/";
}
2023-05-22 02:23:56 +00:00
//// location utils path
String getCounties(){
return "/api/jobnet_app/countries/";
}
String getRegions(){
return "/api/web_app/location/region/";
}
2023-02-16 07:10:54 +00:00
String getProvinces(){
return "api/web_app/location/province/";
}
2023-02-20 07:48:24 +00:00
String getCities(){
return "/api/web_app/location/citymun/";
}
String getBarangays(){
return "/api/web_app/location/barangay/";
}
String getAddressCategory(){
return "/api/jobnet_app/address_categories/";
}
2023-01-17 07:52:31 +00:00
}