(Apps) d2 javascript library

Registered by Lars Helge Øverland on 2015-08-28

d2 javascript library

The d2 library is a javascript library that abstacts away the dhis2 api and lets you use javascript models to communicate with your dhis2 server.

The models are dynamically build using the /api/schemas resource that is available through the dhis2 web api.

Model
Represents a single resource in the api like a `dataElement` or an `organisationUnit`

It will have some convenience methods like
.validate()
.save()

ModelDefinition

Is a descriptive object that describes the model and is used to create Models

The Model definition contains information like - What is the endpoint for the model - What are the properties that the model has and how should these properties be validated.

The things above would be the base functionalities. But for things that do not fit into the models based structure other convenient api's will be available to deal with the `currentUser` or `system.settings` for systemSettings.

For more info see https://github.com/dhis2/d2 and https://github.com/dhis2/d2/issues

Blueprint information

Status:
Started
Approver:
Lars Helge Øverland
Priority:
Undefined
Drafter:
Mark Polak
Direction:
Approved
Assignee:
Mark Polak
Definition:
New
Series goal:
Accepted for trunk
Implementation:
Good progress
Milestone target:
None
Started by
Lars Helge Øverland on 2015-10-12

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.