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

Revisiting the API definition

Let's review Librarian's API definition:

openapi: 3.0.0 servers: - url: /api info: title: Goophr Librarian API version: '1.0' description: | API responsible for indexing & communicating with Goophr Concierge. paths: /index: post: description: | Add terms to index. responses: '200': description: | Terms were successfully added to the index. '400': description: > Request was not processed because payload was incomplete or incorrect. content: application/json: schema: $ref: '#/components/schemas/error' requestBody: content: application/json: schema: $ref: '#/components/schemas/terms' description: | List of terms to be added to the index. required: true /query: post: description: | Search for all terms in the payload. ...

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