Project

General

Profile

User Story #1785

API updates

Added by Sebastian Manger almost 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
06 Feb 2018
Due date:
% Done:

100%

Estimated time:
(Total: 34.00 h)
Spent time:
(Total: 22.00 h)
Resolution:

Description

Intro

The main reason to implement a new version of the configuration is so the API returns structured data (=from checkboxes) instead of text. It's important to keep the distinction between API version and configuration version in mind; the API version will not change (v2). All current users of the API will be informed about the changes.

Decisions

  • The structure of the questionnaire data changes depending on the edition. The 'configuration' is a new concept for the API users, so make it explicit.
  • The list view by default returns all questionnaires, regardless of their editions.
  • A new field on the list indicates the current edition of the questionnaire.
  • An optional filter is available to filter specific editions (e.g. "show only questionnaire in edition 2015")
  • The configuration version is now a required field / parameter for all questionnaire detail endpoints.
  • In order to display 'stable' structure of the data, a request to an 'old' questionnaire should return a 404 / 302 (not found/redirect).
  • Maybe: add an endpoint for the configuration object.

Subtasks

Task #1786: Update serializer, change stored data in elasticsearchClosed06 Feb 2018

Actions
Task #1787: Routes and viewsClosed06 Feb 2018

Actions
Task #1788: Inform consumers about changesClosed06 Feb 2018

Actions
#1

Updated by Sebastian Manger almost 7 years ago

  • Description updated (diff)
#2

Updated by Sebastian Manger almost 7 years ago

  • Description updated (diff)
#3

Updated by Sebastian Manger almost 7 years ago

  • Description updated (diff)
#4

Updated by Kurt Gerber almost 7 years ago

  • Status changed from New to Accepted
#5

Updated by Kurt Gerber over 6 years ago

  • Status changed from Accepted to In Progress
#6

Updated by Lukas Vonlanthen over 6 years ago

  • Description updated (diff)
#7

Updated by Kurt Gerber almost 6 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF