O'Reilly logo

Distributed Computing with Go by V.N. Nikhil Anurag

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Goophr Librarian API definition

Goophr Librarian is the actual maintainer of the index for a set of documents, and its responsibilities are to add terms to the index and to return query results for the search terms based on the terms available in the index.

Informally, we can define the API as follows:

  • /api/index: Goophr Concierge calls this API endpoint to add terms to the actual index
    • The POST request adds terms to index
  • /api/query: Goophr Concierge calls this endpoint to query search terms submitted by the user
    • The POST request returns results for search terms

The following is the OpenAPI definition for Goophr Librarian:

# openapi/librarian.yamlopenapi: 3.0.0 servers: - url: /api info: title: Goophr Librarian API version: '1.0' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required