{ "openapi": "3.0.1", "info": { "title": "A example document", "version": "1" }, "paths": { "/notebooks": { "get": { "responses": { "default": { "description": "Responses object not provided for this route" } } }, "post": { "responses": { "default": { "description": "Responses object not provided for this route" } } } }, "/notebooks/{id}": { "get": { "operationId": "getNotebookById", "x-cedar": { "appliesToResourceTypes": [ "Notebook" ] }, "responses": { "200": { "description": "Get notebook by id", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Notebook" } } } } }, "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ] }, "put": { "operationId": "putNotebook", "x-cedar": { "appliesToResourceTypes": [ "Notebook" ] }, "responses": { "200": { "description": "Put notebook", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Notebook" } } } } }, "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ] }, "delete": { "operationId": "deleteNotebook", "x-cedar": { "appliesToResourceTypes": [ "Notebook" ] }, "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "default": { "description": "Responses object not provided for this route" } } } }, "/share-notebook": { "put": { "operationId": "shareNotebook", "x-cedar": { "appliesToResourceTypes": [ "Notebook" ] }, "responses": { "200": { "description": "Get notebook by id", "content": { "application/json": { "schema": { "type": "object", "properties": { "message": { "type": "string" } } } } } } } } }, "/get-acl/{notebookId}": { "get": { "operationId": "getNotebookAcl", "x-cedar": { "appliesToResourceTypes": [ "Notebook" ] }, "responses": { "200": { "description": "Get notebook ACL", "content": { "application/json": { "schema": { "type": "object", "properties": { "acl": { "type": "array", "items": { "type": "string" } } } } } } } }, "parameters": [ { "name": "notebookId", "in": "path", "required": true, "schema": { "type": "string" } } ] } }, "/shared-with-me": { "get": { "responses": { "default": { "description": "Responses object not provided for this route" } } } } }, "components": { "schemas": { "Notebook": { "title": "A notebook object", "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "owner": { "type": "string" }, "content": { "type": "string" }, "public": { "type": "boolean" } }, "required": [ "id", "name", "owner", "content" ] } } } }