Esempio n. 1
0
File: meta.py Progetto: rak108/rucio
 def get(self, key):
     """
     ---
     summary: Get value for key
     description: List all values for a key.
     tags:
         - Meta
     parameters:
     - name: key
       in: path
       description: The reference key.
       schema:
         type: string
       style: simple
     responses:
       200:
         description: OK
         content:
           application/json:
             schema:
               description: List of all key values.
               type: array
               items:
                 type: string
                 description: A value associated with a key.
       401:
         description: Invalid Auth Token
       406:
         description: Not acceptable
     """
     return jsonify(list_values(key=key))
Esempio n. 2
0
    def GET(self, key):
        """
        List all values for a key.

        HTTP Success:
            200 Success
        """
        header('Content-Type', 'application/json')
        return dumps(list_values(key=key))
Esempio n. 3
0
    def GET(self, key):
        """
        List all values for a key.

        HTTP Success:
            200 Success
        """
        header('Content-Type', 'application/json')
        return dumps(list_values(key=key))
Esempio n. 4
0
File: meta.py Progetto: vokac/rucio
    def get(self, key):
        """
        List all values for a key.

        .. :quickref: Values; List all key values.

        :resheader Content-Type: application/json
        :status 200: OK.
        :status 401: Invalid Auth Token.
        :status 406: Not Acceptable.
        :returns: List of all key values.
        """
        return jsonify(list_values(key=key))
Esempio n. 5
0
    def get(self, key):
        """
        List all values for a key.

        .. :quickref: Values; List all key values.

        :resheader Content-Type: application/json
        :status 200: OK.
        :status 401: Invalid Auth Token.
        :status 500: Internal Error.
        :returns: List of all key values.
        """
        return Response(dumps(list_values(key=key)), content_type="application/json")