Project

General

Profile

« Previous | Next » 

Revision 47298

added publisher to API

View differences:

swagger.yaml
4 4
  description: "API for Scholix Object"
5 5
  version: "1.0.0"
6 6
  title: "Scholix API"
7
host: "127.0.0.1:5100"
7
host: "api-dliservice-prototype-dli.d4science.org"
8 8
basePath: "/v1"
9 9
schemes:
10 10
- "https"
......
90 90
          schema:
91 91
            $ref: "#/definitions/Error"
92 92
      x-swagger-router-controller: "swagger_server.controllers.scholix_controller"
93
  /linksFromPublishers:
94
    get:
95
      tags:
96
      - "Scholix"
97
      summary: "Get all scholix relation collected from a publisher"
98
      description: "The linksFromPublishers endpoint returns a list of scholix\
99
        \ object collected from\na specific publisher\n"
100
      operationId: "links_from_publisher_get"
101
      parameters:
102
      - name: "publisher"
103
        in: "query"
104
        description: "the name of the publisher"
105
        required: true
106
        type: "string"
107
      - name: "page"
108
        in: "query"
109
        description: "The page of results"
110
        required: false
111
        type: "integer"
112
        format: "int32"
113
      responses:
114
        200:
115
          description: "An array of scholix Object"
116
          schema:
117
            type: "array"
118
            items:
119
              $ref: "#/definitions/Scholix"
120
        default:
121
          description: "Unexpected error"
122
          schema:
123
            $ref: "#/definitions/Error"
124
      x-swagger-router-controller: "swagger_server.controllers.scholix_controller"
93 125
  /listDatasources:
94 126
    get:
95 127
      tags:
......
172 204
        items:
173 205
          $ref: "#/definitions/DSType"
174 206
      publisher:
175
        $ref: "#/definitions/ObjectType_publisher"
207
        type: "array"
208
        description: "a List of Publishers"
209
        items:
210
          $ref: "#/definitions/ObjectType_publisher"
176 211
  CreatorType:
177 212
    type: "object"
178 213
    properties:

Also available in: Unified diff