예제 #1
0
파일: meta.py 프로젝트: 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))
예제 #2
0
파일: meta.py 프로젝트: pombredanne/rucio
    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))
예제 #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))
예제 #4
0
파일: meta.py 프로젝트: 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))
예제 #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")