-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flow of REST request between Emikat and CSIS #5
Comments
@humerh If you need additional fields (or would like to rename some of the fields or use different formats e.g. for the study_area) in one of the endpoints or complete new endpoints, please write them as comments here in this issue. |
@humerh as was just discussed I changed the |
@patrickkaleta additionally I need the list of ressources in the data package.
|
I created a new REST endpoint (accessible by the Emikat-user in the CSIS) at the following URL-pattern: |
@humerh be aware that in the data package resources, the "path" property can be either a url or an array of urls |
Interesting! In that case I believe that the path field in Drupal should be allowed to contain unlimited values and not just one. |
As far as I experienced making a single value field to a multi value works and does not cause problems. Only the other direction does not work |
That was also my believe. I tested changing the field's cardinality locally and it worked without problems. I will now apply this in the CSIS. |
Closing this, since basic communication between Emikat and Drupal is already implemented by now and working. For reference purposes I'll keep this issue pinned to the top. |
Overview
In this issue we will describe the flow of individual REST calls between Emikat and CSIS, how to access the endpoints on Drupal-side and what content(-fields) should be expected in each response.
General procedure
Individual REST endpoints
1) Initial Study information
Link: csis.myclimateservice.eu/rest/emikat/study/[StudyID]
This link will be given to Emikat in the initial trigger event from the CSIS. BasicAuth is used as authentication. Emikat can use the "Emikat" user in the CSIS, which was created for this purpose.
This endpoint uses the REST Group View and displays the following properties:
2) Data package information
Link: csis.myclimateservice.eu/node/[DatapackageID]?_format=hal_json
This endpoint is currently not implemented as a view, so the complete data package is displayed. This can be changed if necessary, so that only relevant fields are displayed.
3) Resources information
Link: csis.myclimateservice.eu/rest/emikat/dp[DatapackageID]/resources
This endpoint uses the REST Node View and displays the following properties:
additional REST endpoints ???
The text was updated successfully, but these errors were encountered: