Skip to content

Consolidate API documentation and implementation #577

Description

@pral2a

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:

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 .json endpoints 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

Related #444 #464 #76 #71 #72 #73

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions