Esempio n. 1
0
    def GET(self):
        """
        List all keys.

        HTTP Success:
            200 Success
        """
        header('Content-Type', 'application/json')
        return dumps(list_keys())
Esempio n. 2
0
    def GET(self):
        """
        List all keys.

        HTTP Success:
            200 Success
        """
        header('Content-Type', 'application/json')
        return dumps(list_keys())
Esempio n. 3
0
    def GET(self):
        """
        List all keys.

        HTTP Success:
            200 Success

        HTTP Error:
            406 Not Acceptable
        """
        header('Content-Type', 'application/json')
        return dumps(list_keys())
Esempio n. 4
0
File: meta.py Progetto: vokac/rucio
    def get(self):
        """
        List all data identifier keys.

        .. :quickref: Meta; List all keys.

        :resheader Content-Type: application/json
        :status 200: OK.
        :status 401: Invalid Auth Token.
        :status 406: Not Acceptable.
        :returns: List of all DID keys.
        """
        return jsonify(list_keys())
Esempio n. 5
0
    def get(self):
        """
        List all data identifier keys.

        .. :quickref: Meta; List all keys.

        :resheader Content-Type: application/json
        :status 200: OK.
        :status 401: Invalid Auth Token.
        :status 500: Internal Error.
        :returns: List of all DID keys.
        """
        return Response(dumps(list_keys()), content_type="application/json")
Esempio n. 6
0
File: meta.py Progetto: rak108/rucio
 def get(self):
     """
     ---
     summary: List all data identifier keys.
     tags:
         - Meta
     responses:
       200:
         description: OK
         content:
           application/json:
             schema:
               type: array
               descripton: List of all DID keys.
               items:
                 type: string
                 description: Data Itentifier key
       401:
         description: Invalid Auth Token
       406:
         description: Not acceptable
     """
     return jsonify(list_keys())