Extends
Properties
defines weather app and backend are allowed to use this route, if accessed but not allowed for platform an error response will be sent
Specifies if a customer or brand id is needed on request.body.filter, handler is responding with error if true and customer / brand is missing
takes errors in form of strings that can occur despite sending a valid response (status 200)
sets the relationships that should be ignored when performing fetch requests
Instance of ApiRequestReferrerInformation containing the information about the referrer and methods to access values
Specifies if a since date is needed on request.body.since, handler is responding with error if true and since is missing
Methods
To alter / customize the plain response. override this method!
Parameters:
| Name | Description |
|---|---|
response |
the plain response as object that is to be altered |
- modified data
To alter / customize the plain response data override this method
Parameters:
| Name | Description |
|---|---|
data |
the plan data as object that is to be altered |
- modified data
Resolving the requests filter parameter and fetching its values if needed, also handling missing parameters in request
extended constructor / initializer method (automatically called)
Parameters:
| Name | Argument | Description |
|---|---|---|
req |
the request object as delivered from express framework |
|
res |
the response object as delivered from express framework |
|
callback |
<optional> |
if this is a function ( function(err, res) ) the performHandleRequest method will be called after setup using this callback |
Parses the request referrer information into on object that is stored on this.referrerInformation
Convenience function for sending database error responses
Parameters:
| Name | Description |
|---|---|
err |
the error as given from the database framework |
Send an error Response
Parameters:
| Name | Description |
|---|---|
responseCode |
the code as delivered in the http status code |
message |
the error message |
errorDomain |
(optional) the error domain (default is the requested path) |
errorCode |
(optional) internal code for resolving the error on referrer side |
To set the not parsed ( eg. ApiModel-Instances ) data to the response
Parameters:
| Name | Description |
|---|---|
response |
Response class instance that will be returned |


Properties (key=value)
Feadback:
This example demonstrates how to insert molecule properties into MRV source.
Marvin JS can parse molecule properties if they has been bound to the scaffold:
<cml> <MDocument> <MChemicalStruct> <molecule molID="m1"> <propertyList> <property dictRef="my property" title="my property" > <scalar>value of my property</scalar> </property> <propertyList> <atomArray> ... </atomArray> <bondArray> ... </bondArray> ... </molecule> </MChemicalStruct> </MDocument> </cml>At single step reaction the canvas content is separated to identical reaction compounds. In this case, molecule properties does not supported.
About the example: Draw something and submit the Get properties button. It retrieves the canvas content. The MRV source appears in the Feadback box. If the scaffold contained molecule properties, they also appears in the Properties box.
Setup properties: Type key-value pairs (separated by "=" sign) into the Properties box. Each line represents a property (key-value pair). Pressing the Set properties button trigger a request to retrieve the canvas content (as MRV). When the mrv export is finished, the content of the Properties box is evaluated. Insert defined molecule properties into the given MRV source then update the editor with the modified MRV. In the Feadback box, the modified MRV also appears.


{% extends 'index_lateral.html' %} {% block main_content %}
Your account is now active!.
Now please login
Back to our Homepage