Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1662

Document ?uuid request for REST API

    XMLWordPrintable

    Details

      Description

      QueryServlet accepts a ?uuid URL query parameter and returns a UUID as text/plain

          /**
           * The name of the URL query parameter that indicates a request for a random
           * {@link UUID}.
           */
          static final transient String ATTR_UUID = "uuid";
      
          /**
           * Generate and send a UUID as a <code>text/plain</code> response entity.
           * This is intended for use by JavaScript clients that want to generate new
           * URLs locally. JavaScript does not provide an easy means to generate
           * UUIDs, so we've added one to the server.
           */
          private void doUUID(final HttpServletRequest req,
                  final HttpServletResponse resp) throws IOException {
      
              buildAndCommitResponse(resp, HTTP_OK, MIME_TEXT_PLAIN, UUID.randomUUID()
                      .toString());
      
          }
      

      This ticket is to document this feature on the REST API on the wiki.

        Attachments

          Activity

            People

            Assignee:
            maria.krokhaleva maria.krokhaleva
            Reporter:
            bryanthompson bryanthompson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: