Skip to main content

Extended rest api service for IMIO usecases

Project description

https://travis-ci.com/IMIO/imio.restapi.svg?branch=master https://coveralls.io/repos/github/IMIO/imio.restapi/badge.svg?branch=master

imio.restapi

plone.restapi endpoints and adaptations

Features

  • add element :
    • with children

    • trigger WF transitions

  • @pod-templates endpoint (collective.documentgenerator)

Todo

  • manage wf_transitions triggered when creating an element in the deserializer when we will be using only DX

  • include cleanHTML functionnality at the deserializer level, also when we will be using only DX

Installation

Install imio.restapi by adding it to your buildout:

[buildout]

...

eggs =
    imio.restapi

and then running bin/buildout

Contribute

License

The project is licensed under the GPLv2.

Contributors

  • Martin Peeters [Affinitic], Original author

Changelog

1.0a12 (2021-02-03)

  • Improve @search by allowing element UID other than Collection for base_search_uid parameter that can be used as a base path [mpeeters]

  • Moved management of additional metadata_fields from the SearchGet service to the DefaultJSONSummarySerializer created for that, it will override the default plone.restapi DefaultJSONSummarySerializer and add id and UID by default to the results. [gbastien]

1.0a11 (2020-09-10)

  • Leave FolderPost._after_reply_hook empty (was managing wf_transitions) or wf_transitions could be broken if a package overrides _after_reply_hook and forget to call super’s original method [gbastien]

1.0a10 (2020-06-28)

  • Add class on list of actions [mpeeters]

1.0a9 (2020-06-24)

  • Improve caching of REST vocabularies [mpeeters]

  • Display imio-restapi-actions and imio-restapi-links viewlets only when package is installed (IImioRestapiLayer) [gbastien]

1.0a8 (2020-06-23)

  • Improve filtering for remote rest vocabulary by using the id without the domain [mpeeters]

  • Use @relative_path attribute for links [mpeeters]

  • Implement base serializer to add @relative_path attribute [mpeeters]

1.0a7 (2020-06-23)

  • Fix an issue with search vocabulary term ids when b_size parameter is used [mpeeters]

1.0a6 (2020-06-23)

  • Fix permissions for viewlet [mpeeters]

1.0a5 (2020-06-23)

  • Fix an error with vocabulary request when there is no body [mpeeters]

1.0a4 (2020-06-22)

  • Add missing french translations [mpeeters]

  • Implement basic auth adapter for requests [mpeeters]

  • Add an adapter to allow data transform during import of content [mpeeters]

  • Ensure that REST vocabulary base class have context available [mpeeters]

  • Add @uid rest service [mpeeters]

  • Add ImportForm base class for content import from remote app [mpeeters]

  • Make _request_schema optional to handle more usecases [mpeeters]

  • Add import_content utils to create content from rest call result [mpeeters]

  • Add get_application_url and improve generate_request_parameters utils [mpeeters]

  • Implement a base class vocabulary for search of objects on remote app [mpeeters]

  • Remove client_id parameter from base vocabulary class since the value is set directly on zope config [mpeeters]

  • Add caching for vocabularies [mpeeters]

  • Update translations [mpeeters]

  • Update form implementation for links [mpeeters]

  • Improve link viewlet [mpeeters]

  • Implement services for REST links [mpeeters]

  • Add a serializer for links [mpeeters]

  • Renamed @pod endpoint to @pod-templates to be more explicit. Endpoint @pod-templates is now a default exapandable element available in @components. [gbastien]

  • Moved FolderPost.wf_transitions call into FolderPost._after_reply_hook. Update serialized_obj review_state key if transitions were triggered in FolderPost.wf_transitions. [gbastien]

  • Added endpoint @infos to get various informations about application. This is soft depending on Products.CPUtils and imio.pyutils. [gbastien]

  • Require plone.restapi>=6.13.3. [gbastien]

  • Override @search default endpoint so it is easier to complete and is a base for sub-packages. Added management of base_search_uid, being able to give a Collection UID as base query. [gbastien]

1.0a3 (2020-06-08)

  • Add requests to package dependencies [mpeeters]

  • In add.FolderPost.reply, call self.__class__ instead FolderPost to manage children in case we inherit from FolderPost. [gbastien]

  • Added add.FolderPost.prepare_data to be able to prepare data before calling reply that will create the element. By default, this checks that data for file is correct. [gbastien]

  • Added hook after reply (_after_reply_hook). [gbastien]

  • If key wf_transitions is found during creation, given WF transitions are triggered. [gbastien]

  • Added @warnings management in FolderPost. [gbastien]

1.0a2 (2020-01-10)

  • Add REST links [mpeeters]

  • Add REST actions [mpeeters]

  • Add a base form class for REST interaction [mpeeters]

  • Implement a converter from json schema to a z3c.form interface [mpeeters]

  • Implement an endpoint to return a json schema schema [mpeeters]

  • Implement control panel [mpeeters]

  • Add bulk endpoint [mpeeters]

  • Add a endpoint to get Archetypes vocabulary values [mpeeters]

  • Add package tests [mpeeters]

  • Add @pod endpoint that will return every collective.documentgenerator generable POD template for a context. This include information on the POD template and links to generate the final document in available output formats. [gbastien]

1.0a1 (2018-12-04)

  • Initial release. [mpeeters]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imio.restapi-1.0a12.tar.gz (38.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page