Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robot HTTP Api: Establish error codes and structures #4636

Closed
sfoster1 opened this issue Dec 18, 2019 · 1 comment · Fixed by #5208
Closed

Robot HTTP Api: Establish error codes and structures #4636

sfoster1 opened this issue Dec 18, 2019 · 1 comment · Fixed by #5208
Assignees
Labels
api Affects the `api` project robot-svcs Falls under the purview of the Robot Services squad (formerly CPX, Core Platform Experience). shared data Affects the `shared-data` project WIP
Milestone

Comments

@sfoster1
Copy link
Member

overview

Well-structured APIs have well structured error conventions and data. We will create such structured errors and use them on both the API and the app sides, at least through the HTTP api and maybe temporarily through the RPC API.

We should create a json document in shared-data that establishes error numbers, shortnames, and additional types. This document is, essentially, a schema, but also specifies some level of content - the list of available errors.

Once the document is created, we can start adding to it and using it in HTTP responses.

@sfoster1 sfoster1 added api Affects the `api` project shared data Affects the `shared-data` project labels Dec 18, 2019
@sfoster1 sfoster1 added this to the API: HTTP API Refactor milestone Dec 18, 2019
@mcous mcous added the robot-svcs Falls under the purview of the Robot Services squad (formerly CPX, Core Platform Experience). label Jan 17, 2020
@mcous
Copy link
Contributor

mcous commented Jan 17, 2020

@mcous mcous added the WIP label Jan 22, 2020
@iansolano iansolano self-assigned this Feb 7, 2020
iansolano added a commit that referenced this issue Mar 11, 2020
Adds response formatting to api requests in new fastapi framework

closes #4636
iansolano added a commit that referenced this issue Mar 11, 2020
Adds response formatting to api requests in new fastapi framework

closes #4636
iansolano added a commit that referenced this issue Mar 11, 2020
Adds formatted json responses and error handling in FastAPI framework

closes #4636
iansolano added a commit that referenced this issue Mar 13, 2020
Adds formatted json responses and error handling in FastAPI framework

closes #4636
iansolano added a commit that referenced this issue Mar 16, 2020
Add formatted json responses and error handling in FastAPI framework

closes #4636
iansolano added a commit that referenced this issue Mar 16, 2020
Add formatted json responses and error handling in FastAPI framework

closes #4636
iansolano added a commit that referenced this issue Mar 18, 2020
Add formatted json responses and error handling in FastAPI framework

closes #4636
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Affects the `api` project robot-svcs Falls under the purview of the Robot Services squad (formerly CPX, Core Platform Experience). shared data Affects the `shared-data` project WIP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants