Git Product home page Git Product logo

jnce-clinic-api's Introduction

JNCE Clinic API

by: Isaac Sarte & Argie Barcena

  Ruby 3.0.2
  Rails 6.1.5
  NodeJS 12.18.3
  Yarn 1.22.4
  • Base URL

https://jnceclinicapi.herokuapp.com

===============================

  • Admin Side/Feature

Admin Sign up

HTTP Method: POST
URL: {{url}}/admins/
Sample Request Body
{
    "email": "[email protected]",
    "password": "123456"
}
Parameters
Name Description Required
email Admin email Yes
password Admin password Yes

Admin Sign in

HTTP Method: POST
URL: {{url}}/admins/sign_in
Sample Request Body
{
    "email": "[email protected]",
    "password": "123456"
}
Parameters
Name Description Required
email Admin email Yes
password Admin password Yes

Admin Sign out

HTTP Method: DELETE
URL: {{url}}/admins/sign_out
Sample Request Body
{
    "email": "[email protected]",
    "password": "123456"
}
Parameters
Name Description Required
email Admin email Yes
password Admin password Yes
Headers
Name Required
authorization token Yes

Note: Feedback is for public users.

Admin Retrieve All Feedbacks

HTTP Method: GET
URL: {{url}}/api/v1/users/
Headers
Name Required
authorization token Yes

Admin Show Feedback

HTTP Method: GET
URL: {{url}}/api/v1/users/{{user_id}}
Headers
Name Required
authorization token Yes

Admin Retrieve All Appointments

HTTP Method: GET
URL: {{url}}/api/v1/appointments
Headers
Name Required
authorization token Yes

Admin Show Appointment

HTTP Method: GET
URL: {{url}}/api/v1/appointments/{{id}}
Headers
Name Required
authorization token Yes

Admin Change Appointment Status

HTTP Method: PUT
URL: {{url}}/api/v1/appointments/{{id}}
Sample Request Body
{
    "status": "done"
}
Payload
Name Description Required
status Appointment status Yes
Headers
Name Required
authorization token Yes

Admin Retrieve All Logs

HTTP Method: GET
URL: {{url}}/api/v1/logs
Headers
Name Required
authorization token Yes

Admin Show Log

HTTP Method: GET
URL: {{url}}/api/v1/logs/{{id}}
Headers
Name Required
authorization token Yes

Admin Create Log

HTTP Method: POST
URL: {{url}}/api/v1/logs
Sample Request Body
{
    "appointment_id": 1
    "admin_id": 1
}
Payload
Name Description Required
appointment_id Appointment id Yes
admin_id Admin id Yes
Headers
Name Required
authorization token Yes

===============================

  • Services Feature

Retrieve All Services

HTTP Method: GET
URL: {{url}}/api/v1/services

===============================

  • Feedback Feature

Create User Feedback

HTTP Method: POST
URL: {{url}}/api/v1/users
Sample Request Body
{
    "fullname": "test user"
    "email": "[email protected]",
    "phone": 01212312312,
    "message": "test message feedback"
}
Parameters
Name Description Required
fullname User fullname Yes
email User email Yes
phone User phone Yes
message User message Yes

===============================

Note: Before booking appoinment, see this link for google oAuth endpoints:

https://github.com/Zhi0105/jnce-calendar-api

After connecting google oAuth, continue to Book Appointment Feature below.

  • Book Appointment Feature

Scheduling Appointment

HTTP Method: POST
URL: {{url}}/api/v1/appointments
Sample Request Body
{
   "service_id": 1,
   "status": "pending",
   "fullname": "test fullname",
   "location": "Subd., City, PH",
   "start_datetime": Date.today,
   "end_datetime": Date.today,
   "title": "service title",
   "email": "[email protected]"
}
Parameters
Name Description Required
service_id Service id Yes
status Appointment initial status Yes
fullname User fullname Yes
location Medical Clinic's location not User's Yes
start_datetime Appointment start date time Yes
end_datetime Appointment end date time Yes
title Service title Yes
email User email Yes

===============================

ERD

image

jnce-clinic-api's People

Contributors

akosipc avatar analyn-cajocson avatar isaacsarte avatar zhi0105 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.