{"id":15151518,"url":"https://github.com/isaacsarte/jnce-clinic-api","last_synced_at":"2026-01-31T14:03:59.004Z","repository":{"id":42230908,"uuid":"472332822","full_name":"IsaacSarte/jnce-clinic-api","owner":"IsaacSarte","description":"JNCE Clinic API [RAILS]","archived":false,"fork":false,"pushed_at":"2022-04-09T15:26:35.000Z","size":693,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-08T14:43:26.838Z","etag":null,"topics":["rails6","railsapi","serializers"],"latest_commit_sha":null,"homepage":"https://jnceclinicapi.herokuapp.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IsaacSarte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-21T12:44:24.000Z","updated_at":"2022-04-11T09:27:53.000Z","dependencies_parsed_at":"2022-09-10T08:40:46.313Z","dependency_job_id":null,"html_url":"https://github.com/IsaacSarte/jnce-clinic-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IsaacSarte/jnce-clinic-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsaacSarte%2Fjnce-clinic-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsaacSarte%2Fjnce-clinic-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsaacSarte%2Fjnce-clinic-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsaacSarte%2Fjnce-clinic-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IsaacSarte","download_url":"https://codeload.github.com/IsaacSarte/jnce-clinic-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsaacSarte%2Fjnce-clinic-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28944789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T13:02:32.153Z","status":"ssl_error","status_checked_at":"2026-01-31T13:00:07.528Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rails6","railsapi","serializers"],"created_at":"2024-09-26T15:03:57.314Z","updated_at":"2026-01-31T14:03:58.987Z","avatar_url":"https://github.com/IsaacSarte.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JNCE Clinic API\n### by: Isaac Sarte \u0026 Argie Barcena\n\n```\n  Ruby 3.0.2\n  Rails 6.1.5\n  NodeJS 12.18.3\n  Yarn 1.22.4\n```\n\n* ## **Base URL**\n\n```\nhttps://jnceclinicapi.herokuapp.com\n```\n\n===============================\n\n* ## **Admin Side/Feature**\n\n### Admin Sign up\n```\nHTTP Method: POST\nURL: {{url}}/admins/\n```\n\n##### Sample Request Body\n\n```\n{\n    \"email\": \"admin1@example.com\",\n    \"password\": \"123456\"\n}\n```\n\n##### Parameters\n\nName | Description | Required | \n--- | --- | --- | \nemail | Admin email | Yes |\npassword | Admin password | Yes |\n\n### Admin Sign in\n```\nHTTP Method: POST\nURL: {{url}}/admins/sign_in\n```\n\n##### Sample Request Body\n\n```\n{\n    \"email\": \"admin1@example.com\",\n    \"password\": \"123456\"\n}\n```\n\n##### Parameters\n\nName | Description | Required | \n--- | --- | --- | \nemail | Admin email | Yes |\npassword | Admin password | Yes |\n\n### Admin Sign out\n```\nHTTP Method: DELETE\nURL: {{url}}/admins/sign_out\n```\n\n##### Sample Request Body\n\n```\n{\n    \"email\": \"admin1@example.com\",\n    \"password\": \"123456\"\n}\n```\n\n##### Parameters\n\nName | Description | Required | \n--- | --- | --- | \nemail | Admin email | Yes |\npassword | Admin password | Yes |\n\n##### Headers\n\nName | Required | \n--- | --- | \nauthorization token | Yes |\n\n\u003cbr/\u003e\n\u003ch3\u003e\u003cstrong\u003eNote: Feedback is for public users.\u003c/strong\u003e\u003c/h3\u003e\n\n### Admin Retrieve All Feedbacks\n```\nHTTP Method: GET\nURL: {{url}}/api/v1/users/\n```\n\n##### Headers\n\nName | Required | \n--- | --- | \nauthorization token | Yes |\n\n### Admin Show Feedback\n```\nHTTP Method: GET\nURL: {{url}}/api/v1/users/{{user_id}}\n```\n\n##### Headers\n\nName | Required | \n--- | --- | \nauthorization token | Yes |\n\n### Admin Retrieve All Appointments\n```\nHTTP Method: GET\nURL: {{url}}/api/v1/appointments\n```\n\n##### Headers\n\nName | Required | \n--- | --- | \nauthorization token | Yes |\n\n### Admin Show Appointment\n```\nHTTP Method: GET\nURL: {{url}}/api/v1/appointments/{{id}}\n```\n\n##### Headers\n\nName | Required | \n--- | --- | \nauthorization token | Yes |\n\n### Admin Change Appointment Status\n```\nHTTP Method: PUT\nURL: {{url}}/api/v1/appointments/{{id}}\n```\n##### Sample Request Body\n\n```\n{\n    \"status\": \"done\"\n}\n```\n\n##### Payload\n\nName | Description | Required | \n--- | --- | --- | \nstatus | Appointment status | Yes |\n\n##### Headers\n\nName | Required | \n--- | --- | \nauthorization token | Yes |\n\n### Admin Retrieve All Logs\n```\nHTTP Method: GET\nURL: {{url}}/api/v1/logs\n```\n\n##### Headers\n\nName | Required | \n--- | --- | \nauthorization token | Yes |\n\n### Admin Show Log\n```\nHTTP Method: GET\nURL: {{url}}/api/v1/logs/{{id}}\n```\n\n##### Headers\n\nName | Required | \n--- | --- | \nauthorization token | Yes |\n\n### Admin Create Log\n```\nHTTP Method: POST\nURL: {{url}}/api/v1/logs\n```\n\n##### Sample Request Body\n\n```\n{\n    \"appointment_id\": 1\n    \"admin_id\": 1\n}\n```\n\n##### Payload\n\nName | Description | Required | \n--- | --- | --- | \nappointment_id | Appointment id | Yes |\nadmin_id | Admin id | Yes |\n\n##### Headers\n\nName | Required | \n--- | --- | \nauthorization token | Yes |\n\n===============================\n\n* ## **Services Feature**\n\n### Retrieve All Services\n```\nHTTP Method: GET\nURL: {{url}}/api/v1/services\n```\n\n===============================\n\n* ## **Feedback Feature**\n\n### Create User Feedback\n\n```\nHTTP Method: POST\nURL: {{url}}/api/v1/users\n```\n\n##### Sample Request Body\n\n```\n{\n    \"fullname\": \"test user\"\n    \"email\": \"testuser@example.com\",\n    \"phone\": 01212312312,\n    \"message\": \"test message feedback\"\n}\n```\n\n##### Parameters\n\nName | Description | Required | \n--- | --- | --- | \nfullname | User fullname | Yes |\nemail | User email | Yes |\nphone | User phone | Yes |\nmessage | User message | Yes |\n\n===============================\n\n\u003ch3\u003e\u003cstrong\u003eNote: Before booking appoinment, see this link for google oAuth endpoints: \u003c/strong\u003e\u003c/h3\u003e\n\n```\nhttps://github.com/Zhi0105/jnce-calendar-api\n```\n\n\u003ch3\u003e\u003cstrong\u003eAfter connecting google oAuth, continue to Book Appointment Feature below.\u003c/strong\u003e\u003c/h3\u003e\n\n* ## **Book Appointment Feature**\n\n### Scheduling Appointment\n\n```\nHTTP Method: POST\nURL: {{url}}/api/v1/appointments\n```\n\n##### Sample Request Body\n\n```\n{\n   \"service_id\": 1,\n   \"status\": \"pending\",\n   \"fullname\": \"test fullname\",\n   \"location\": \"Subd., City, PH\",\n   \"start_datetime\": Date.today,\n   \"end_datetime\": Date.today,\n   \"title\": \"service title\",\n   \"email\": \"appointment@email.com\"\n}\n```\n\n##### Parameters\n\nName | Description | Required | \n--- | --- | --- | \nservice_id | Service id | Yes |\nstatus | Appointment initial status | Yes |\nfullname | User fullname | Yes |\nlocation | Medical Clinic's location not User's | Yes |\nstart_datetime | Appointment start date time | Yes |\nend_datetime | Appointment end date time | Yes |\ntitle | Service title | Yes |\nemail | User email | Yes |\n\n===============================\n\n# ERD\n![image](https://user-images.githubusercontent.com/82153590/162556701-0e728985-33b6-4a2b-8886-c21ef3b6bba9.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaacsarte%2Fjnce-clinic-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaacsarte%2Fjnce-clinic-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaacsarte%2Fjnce-clinic-api/lists"}