Chem API definition (v1.0.0)

Download OpenAPI specification:Download

upload-controller

upload

header Parameters
X-Token
string
Default:
Request Body schema: application/json
inputType
string
Enum: "smiles" "inchi" "inchikey" "mol"
formula
string

Responses

Request samples

Content type
application/json
{
  • "inputType": "smiles",
  • "formula": "string"
}

Response samples

Content type
{
  • "id": 0,
  • "svg": "string",
  • "annotations": "string"
}

history-controller

history

query Parameters
required
object
header Parameters
X-Token
required
string

Responses

Request samples

const request = require('request');

const options = {
  method: 'GET',
  url: 'https://api.progressiveaccess.com/chem/v1/history',
  qs: {pageable: 'SOME_OBJECT_VALUE'},
  headers: {'X-Token': 'SOME_STRING_VALUE'}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});

Response samples

Content type
application/json
{
  • "totalPages": 0,
  • "totalElements": 0,
  • "pageable": {
    },
  • "first": true,
  • "last": true,
  • "sort": {
    },
  • "size": 0,
  • "content": [
    ],
  • "number": 0,
  • "numberOfElements": 0,
  • "empty": true
}

getOne

path Parameters
id
required
integer <int64>
header Parameters
X-Token
required
string

Responses

Request samples

const request = require('request');

const options = {
  method: 'GET',
  url: 'https://api.progressiveaccess.com/chem/v1/history/%7Bid%7D',
  headers: {'X-Token': 'SOME_STRING_VALUE'}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});

Response samples

Content type
{
  • "id": 0,
  • "svg": "string",
  • "annotations": "string"
}