Skip to content

Repository files navigation


ForksStarsLISENCEcommit
awsnodejsGitHubSlack


NISROOM API for Lambda

Contributors

Contributors
kogepanhtayoonRSugimoto2017cotaroouzumalSioCon

Overview

NISLAB Room Monitor API for AWS Lambda

Frontend

nisroomnisplan

Architecture

nisroom-architecture

API Documentation

API List

No.API Function No.TypeAPI NameOverview
0NISROOM-000APInisroom-apiProduction Environment
1NISROOM-001APInisroom-api-devTest Environment

Resource Types

students


HTTP MethodAccess URIObjective
GET/v1/studentsGet all information about members
  • GET Data (JSON)
CategoryJSON KeyTypeDescription
None
  • Response Data (JSON)
CategoryJSON KeyTypeDescription
IDidValueID
ImageavatarURLImage of Slack
First Name (En)e_first_nameStringFirst Name in English
Last Name (En)e_last_nameStringLast Name in English
GradegradeStringGrade of member
Status of stayis_stayBooleanWhether the member is in the Lab or not
First Name (Ja)j_first_nameStringFirst Name in Japanese
Last Name (Ja)j_last_nameStringLast Name in Japanese
Student IDstudent_idValueStudent ID
Scheduled date of visitscheduleArrayScheduled date of visit

id


HTTP MethodAccess URIObjective
PATCH/v1/students/{id}Update information about the member
  • PATCH Data (JSON)
CategoryJSON KeyTypeDescription
Status of stayis_stayBooleanWhether the member is in the Lab or not (true or false)
Scheduled date of visitscheduleArrayScheduled date of visit ({YYYY-MM-DD, YYYY-MM-D'D', ...})
If the value is an empty array, it will be null.
  • Response Data (JSON)
CategoryJSON KeyTypeDescription
Status of stayis_stayBooleanWhether the member is in the Lab or not (Same data as PATCH Data)
Scheduled date of visitscheduleArrayScheduled date of visit (["YYYY-MM-DD", "YYYY-MM-D'D', ...])

Database Design and Structure

students Table

Primary KeyAttributes
Partition Key
idavatere_first_namee_last_namegradeis_stayj_first_namej_last_namestudent_idschedule
{Integer}{String}{String}{String}{Integer}{Boolean}{String}{String}{Integer}{StringSet}

Status Code

Status CodeDescription
200 OKStandard response for successful HTTP requests. The actual response will depend on the request method used.
403 ForbiddenThe request was a legal request, but the server is refusing to respond to it. Unlike a 401 Unauthorized response, authenticating will make no difference.
502 Bad GatewayThe server was acting as a gateway or proxy and received an invalid response from the upstream server.

For Developers

How To Use Repository

  1. Fork and Clone
  2. git remote add upstream https://github.com/Kenny-NISLab/nisroom-api.git
  3. git pull upstream develop

Setup

  1. npm install

Format before Commit

  1. npm run format

About

NISLAB Lambda

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages