-
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
Description
Current API documentation is not working at all. Also most of the examples related to the API are not working neither. Actually, there are 3 API versions but none of them is properly documented leading to a lot of difficulties to use the API, mostly for externals.
My suggestions are:
- Asses documentation and API version status
- Reduce the number of end-points to be supported and maintain only one API version
- Confirm what end-points are used by "fabcloud" mgmt scripts
- Provide basics methods (labs, machines...) with filter capabilities focusing in Rails standards to reduce maintenance efforts
- Create basic documentation with methods and payload examples
- Remove unsupported old documentation or clearly indicate as legacy
-- Viktor edit:
- Archive / delete the repo https://github.com/fablabbcn/docs.fablabs.io
- Remove the DNS record for docs.fablabs.io
- Stop using unmaintained
rocket_pantsgem which is preventing Rails 6 update
Problems:
- The API doc is very much outdated. https://docs.fablabs.io/
- Do we need a specific api.fablabs endpoint?
- Can we do with a simple
.jsonendpoints which use Ransack query / filter / paginations - https://api.fablabs.io/ - says it's READ ONLY. Is it? 🤔
This now redirects to the API, why?
https://fablabs.io/labs.json redirects to -> https://api.fablabs.io/0/labs.json which loads ALL labs.
Suggestions
- Can we do with a minimal API? Do we need the v0 / v1 / v2
- Do we need a versioned API? Do we have the resources to maintain it?
- Remove / minimize the outdated documentation? Do we have the resources to maintain it?
- Use simple .json endpoints
- https://api.fablabs.io/0/me.json <-- Needs to keep working