Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Research - Describing an API Design #38

Closed
jamescd18 opened this issue Jan 30, 2021 · 5 comments
Closed

Research - Describing an API Design #38

jamescd18 opened this issue Jan 30, 2021 · 5 comments
Labels
approved Reviewed by admins and ready for development documentation Any changes to documentation

Comments

@jamescd18
Copy link
Member

As part of our application infrastructure moving data from the database to the API and finally to the front-end, we need a way to describe and model our API. Where ERDs and Relational Schemas define databases, RAML and OAS are the two most popular formats for describing APIs. Research those two formats.

@jamescd18 jamescd18 added the documentation Any changes to documentation label Jan 30, 2021
@jamescd18 jamescd18 added the approved Reviewed by admins and ready for development label Feb 11, 2021
@jamescd18
Copy link
Member Author

Let's use OAS (OpenAPI). Place it in a .yaml file in the backend probably.

@jamescd18
Copy link
Member Author

Interesting backend exploration example:

URL: http://localhost:3000/.netlify/functions/example/12412/edit:cancel?q=sdklfjsldfjk&h=353&wbs=1.1.1

Output:
Screen Shot 2021-02-23 at 11 22 02 AM

@jamescd18 jamescd18 added this to the 0.1.5 - Back-End Setup milestone Feb 24, 2021
@jamescd18
Copy link
Member Author

Looks like Netlify functions upgraded to the latest version of AWS Lambda, so now we get more parameters in the Event and Context objects.

Screen Shot 2021-04-15 at 10 19 44 PM

@jamescd18
Copy link
Member Author

At this point in the project, formalized API documentation would be a burden on the team for very little value. The API design is rapidly changing and there are no planned external users of the API, so I don't believe we would get any benefits from formalized API documentation. In the future, once an MVP is created, a clean set of API documentation would be valuable to have.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Reviewed by admins and ready for development documentation Any changes to documentation
Projects
None yet
Development

No branches or pull requests

1 participant