Commit 0bfcfbb3 authored by David Mendez's avatar David Mendez
Browse files

Add preeliminary structure

parent 1134b375
Pipeline #91747 failed
......@@ -65,21 +65,21 @@ build_docker_image:
- docker-compose build es-subset-generator-prod
- echo Deploying $SERVER_IMAGE_TAG
- docker push $SERVER_IMAGE_TAG
#
### ----------------------------------------------------------------------------------------------------------------------
### QA
### ----------------------------------------------------------------------------------------------------------------------
#pylint:
# stage: test_and_qa
# image:
# name: $SERVER_IMAGE_TAG
# entrypoint: [""]
# except:
# - schedules
# script:
# - set -x
# - find . -iname "*.py" | grep -v './app/free_text_parsing/.*' | xargs pylint
#
## ----------------------------------------------------------------------------------------------------------------------
## QA
## ----------------------------------------------------------------------------------------------------------------------
pylint:
stage: test_and_qa
image:
name: $SERVER_IMAGE_TAG
entrypoint: [""]
except:
- schedules
script:
- set -x
- find . -iname "*.py" | grep -v './app/free_text_parsing/.*' | xargs pylint
### ---------------------------------------------------------------------------------------------------------------------
### Tests
### ---------------------------------------------------------------------------------------------------------------------
......
---
swagger: '2.0'
info:
description: 'API that allows to create subsets of items in elasticsearch'
version: '1.0.0'
title: 'ES Subset Generator'
contact:
email: 'chembl-help@ebi.ac.uk'
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
#host: Will be set dynamically by Swagger Description Blueprint
#basePath: Will be set dynamically by Swagger Description Blueprint
tags:
- name: 'ES subsets'
description: 'Endpoints related to generating subsets in elasticsearch'
schemes:
- "https"
- "http"
paths:
/es_subsets/generate_subset_index_from_ids:
post:
tags:
- 'ES subsets'
summary: 'Generates a subset index in elasticsearch'
description: 'Receives a list of ChEMBL IDs and generates a subset with the items that correspond to
the ids in the original index'
operationId: 'generate_subset_index'
produces:
- 'application/json'
parameters:
- name: 'origin_index'
in: 'formData'
description: 'name of the index to from which the documents will be taken'
required: true
type: 'string'
default: 'chembl_molecule'
- name: 'items_ids'
in: 'formData'
description: 'List of IDs to used to create the subset index'
required: true
type: 'array'
default: ['CHEMBL27193', 'CHEMBL4068896', 'CHEMBL332148', 'CHEMBL2431212', 'CHEMBL4303667']
responses:
'200':
description: "successful operation"
schema:
$ref: '#/definitions/SubsetOperationResponse'
definitions:
SubsetOperationResponse:
type: 'object'
properties:
subset_created:
type: 'object'
metadata:
type: 'object'
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment