Open Garden

June 19, 2022 ยท View on GitHub

Codecov CodeFactor Grade GitHub stars GitHub issues

Description

This API/Projects provides lots of information about plantations, their needs, and sowing advice.

Roadmap Swagger Admin Home Assistant App

Projects

ProjectDescription
CoreContains server, including REST API, Socket Server...core
AdminBackend automatically generated using swagger definitioncore
HassHome Assistant add-onIn progress...
AppWeb ApplicationIn progress...

Integration

Rate Limiting

This project is protected by throttling.

You can compute your remaining requests via the responses headers.

HeaderDescriptionExample
x-ratelimit-limitthe maximum number of requests20
x-ratelimit-remainingremaining requests18
x-ratelimit-resettime to reset the counter30

Content-Range

HeaderDescriptionExample
Content-RangeThe Content-Range response HTTP header indicates where in a full body message a partial message belongs. like elements {range-start}-{range-end}/{size}elements 0-10/1

JWT Ticket

The HTTP Authorization request header is required to authenticate a user on many endpoints.

This header must be provided like :

curl -X 'GET' ...
  -H 'Authorization: Bearer {TOKEN}'

To obtain this {TOKEN} you must call the endpoint /account/login (cf SwaggerUI).

Bad Request Handling

{
  "statusCode": 400,
  "message": [
    {
      "value": "0",
      "property": "example",
      "constraints": {
        "matches": "example must match ^/[a-z0-9_-]/$ regular expression",
        "isLength": "example must be longer than or equal to 3 characters",
        "isString": "example must be a string"
      }
    }
  ],
  "error": "Bad Request"
}

Roadmap

View the OpenGarden Public Roadmap

Release notes

For the versions available, see the tags on this repository.

Versioning

We use SemVer for versioning.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.