North-Seattle-College / ad440-winter2020-thursday-repo

Repository for AD440 Thursday Class in Winter 2020
Apache License 2.0
10 stars 5 forks source link

T5: PUT, DELETE Key #271

Open UnTamedLaw opened 4 years ago

miscdats commented 4 years ago

init est 3-5 pts

miscdats commented 4 years ago

PR: #303 AWS Lambda API function updated for PUT Keybundle by ID (checkout keybundle). info: OpenAPI documentation lambda

When called upon, the function attempts a connection with our database using environment variables. Currently, we are using Anu's credentials. Future devOps can resolve lambda function roles and change this to central envs.

Input is passed in path as keybundle_id, which is used to query with mySQL package serverless-mysql, and in body of request with updated keybundle values.

Credentials needed to reach endpoint or forbidden. Possible 500 status code for internal server errors. Proper input required or errors returned for bad request 400 status code. If keybundle not in database, returns 404 not found status code. The wiki linked above has the detailed rundown.

test task for issue feature branch feature endpoint - testable during development sprint 5

Actual dev time: 4 pts

miscdats commented 4 years ago

Issues ran into with API Gateway a few times: path variables not passed in or status codes not parsed, etc. Helpful debugging through several days with Yun from devOps team and eventually API team, able to resolve issues. However, RBAC had to be dropped for this sprint for MVP.

miscdats commented 4 years ago

my test issue for sprint 5