Add ImportMetadataViewset
to kolibri_public
app
#3951
Labels
Milestone
ImportMetadataViewset
to kolibri_public
app
#3951
Parent: #3808
Depends: #3927
Desired behavior
Add new
ImportMetadataViewset
to Studio'skolibri_public
appGET
method requests/kolibri/api/public/v2/importmetadata/<contentnode_id>
should return a response for the requested content node-- list queries are not currently supportedschema_version
integer request parameter is above5
ContentNode
,File
,LocalFile
,ContentTag
,AssessmentMetadata
, andContentNode.tags.through
, it should return raw JSON serialized versions of the models in their corresponding fields within the responseCache-control
response header with valuepublic, stale-while-revalidate=100, max-age=300
Last-modified
response header which is equal to thelast_updated
of the channel in the responseIf-modified-since
request header and should minimally filter the request and return a304 Not modified
response if the channel'slast_updated
isn't greater (see conditional processing)Set-cookie
headers in the responseExample API response
Example API objects for
content_channelmetadata
Example API objects for
content_contentnode
Example API objects for
content_file
Example API objects for
content_localfile
Example API objects for
content_language
Example API objects for
content_contenttag
Example API objects for
content_contentnode_tags
Example API objects for
content_assessmentmetadata
Current behavior
No such API viewset exists in Studio currently
Value add
This API will support remote content browsing and import from Kolibri 0.16+ instances
Notes
ImportMetadataViewset
in KolibriThe text was updated successfully, but these errors were encountered: