Skip to content
@ctc-casa-ios

iOS App & API Team 📱 — Ruby for Good CASA & Code the Change YYC

Case contact managment app for nonprofit CASA volunteers

API Documentation

Description of each API endpoint used in this app is listed here. The type of resource is listed along with a short description. Any params or config objects are shown too along with response schema. Examples are also shown in JavaScript.

Authorization

POST /users/sign_in

The sign in is a POST request that takes in a params object. When the user is signed in, a JWT is returned.

Params Type Description
email string User's email (Required)
password string User's password (Required)

Example of sign in (JS) using axios:

const params = {
      user: {
        email: "[email protected]",
        password: "12345",
      },
    };
const response = await authApi.post('/users/sign_in', params);
Successful Response Type Description
data JSON "Successfully authenticated"
status integer 200 OK
authorization string The JWT
Unsuccessful Response Type Description
data JSON "Something went wrong with API sign in :("
status integer 401 Unauthorized

GET /users/sign_out

The sign out is a GET request that takes in a config object. When the user is signed out, the JWT is removed from app state and async storage.

Config Type Description
Authorization string JWT (Required)

Example of sign out (JS) using axios:

const config = {
  headers: {
    Authorization: "JWT goes here",
  },
};
const response = await authApi.get('/users/sign_out', config);
Successful Response Type Description
data JSON "Successfully Signed Out"
status integer 200 OK

Casa Cases

GET /casa_cases

This route fetches (gets) all current casa cases for the signed in user. No params required. The JWT is required for every request.

Config Type Description
Authorization string JWT (Required)

Example of fetching casa cases (JS) using axios:

TBD
Successful Response Type Description
data JSON array of objects [{...}, {...}, {...}...]
status integer 200 OK

Popular repositories Loading

  1. ios-app ios-app Public

    Case contact managment app for nonprofit CASA volunteers

    TypeScript 1 6

  2. api api Public

    Forked from rubyforgood/casa

    Volunteer management system for nonprofit CASA, which serves foster youth in counties across America.

    Ruby

  3. .github .github Public

    This will serve as the API documentation

    1

Repositories

Showing 3 of 3 repositories
  • ios-app Public

    Case contact managment app for nonprofit CASA volunteers

    ctc-casa-ios/ios-app’s past year of commit activity
    TypeScript 1 6 22 1 Updated Feb 4, 2025
  • api Public Forked from rubyforgood/casa

    Volunteer management system for nonprofit CASA, which serves foster youth in counties across America.

    ctc-casa-ios/api’s past year of commit activity
    Ruby 0 MIT 489 2 0 Updated Feb 1, 2025
  • .github Public

    This will serve as the API documentation

    ctc-casa-ios/.github’s past year of commit activity
    0 1 0 0 Updated Jun 26, 2023

Top languages

Loading…

Most used topics

Loading…