senaite / senaite.jsonapi

RESTful JSON API for SENAITE
https://www.senaite.com
GNU General Public License v2.0
11 stars 20 forks source link

Provide route for settings #14

Closed juangallostra closed 6 years ago

juangallostra commented 6 years ago

Superseeds: #10 Related PR: https://github.com/senaite/senaite.sync/pull/12

Note: This PR has a lot of commits because I tried so many different things to get the settings before finding a way I was satisfied with.

Description of the issue/feature this PR addresses

Provide a route for querying general settings of a running instance through the JSON API.

Current behavior before PR

There is not a route that allows to query the JSON API for general settings.

Desired behavior after PR is merged

It is possible to obtained the general settings with the routes:

Currently the availabe settings that can be queried are those that are defined under plone.app.controlpanel and implement an interface in the form of ISomethingSchema. The returned settings will be those associated to the schema ISomethingSchema With these restrictions the supported keywords are:

  1. mail
  2. calendar
  3. ram
  4. language
  5. editing
  6. usergroups
  7. search
  8. filter
  9. maintenance
  10. markup
  11. naviagtion
  12. security
  13. site
  14. skins

-- I confirm I have tested this PR thoroughly and coded it according to PEP8 and Plone's Python styleguide standards.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at ?% when pulling 844c9cdddd687ebc0fdb30a0e92987210b273595 on juangallostra:settings-import into 9d576bff3ca2c31a33ccebfec77d2c82614f76ca on senaite:master.