{ "uuid": "f5817c50-8e43-4212-a6b3-3b2bb7350793", "lastMigration": 29, "name": "Library Agent API", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "bce3e40b-0fa3-485c-ba7c-32bcecf04c97", "documentation": "Lists shelves. The order is unspecified but deterministic. Newly created shelves will not necessarily be added to the end of this list.", "method": "get", "endpoint": "v1/shelves", "responses": [ { "uuid": "14e3837e-5acc-4e2d-b385-9eb282f35519", "body": "{\n \"nextPageToken\": \"\",\n \"shelves\": [\n {\n \"name\": \"\",\n \"theme\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "556adb2b-2b87-46ec-8796-4229e9991648", "documentation": "Gets a book. Returns NOT_FOUND if the book does not exist.", "method": "get", "endpoint": "v1/:name", "responses": [ { "uuid": "2bba30b5-e246-4ace-820c-56e49cc8bdad", "body": "{\n \"author\": \"\",\n \"name\": \"\",\n \"read\": {{faker 'datatype.boolean'}},\n \"title\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "4b5c81f5-c8e6-4861-8e4d-7370fd0c6db3", "documentation": "Borrow a book from the library. Returns the book if it is borrowed successfully. Returns NOT_FOUND if the book does not exist in the library. Returns quota exceeded error if the amount of books borrowed exceeds allocation quota in any dimensions.", "method": "post", "endpoint": "v1/:name:borrow", "responses": [ { "uuid": "ce801921-7e15-4a73-8bc1-2110af05d053", "body": "{\n \"author\": \"\",\n \"name\": \"\",\n \"read\": {{faker 'datatype.boolean'}},\n \"title\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "c235343b-756e-404c-8328-19d47da5cf72", "documentation": "Return a book to the library. Returns the book if it is returned to the library successfully. Returns error if the book does not belong to the library or the users didn't borrow before.", "method": "post", "endpoint": "v1/:name:return", "responses": [ { "uuid": "f1a8d402-1ef8-4700-ace9-1ed5e0780370", "body": "{\n \"author\": \"\",\n \"name\": \"\",\n \"read\": {{faker 'datatype.boolean'}},\n \"title\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "15d7a90c-aea1-4105-9e22-1e5165f24ea8", "documentation": "Lists books in a shelf. The order is unspecified but deterministic. Newly created books will not necessarily be added to the end of this list. Returns NOT_FOUND if the shelf does not exist.", "method": "get", "endpoint": "v1/:parent/books", "responses": [ { "uuid": "fcb9e2fc-7471-4730-97ce-543a5bb785e2", "body": "{\n \"books\": [\n {\n \"author\": \"\",\n \"name\": \"\",\n \"read\": {{faker 'datatype.boolean'}},\n \"title\": \"\"\n }\n ],\n \"nextPageToken\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "bce3e40b-0fa3-485c-ba7c-32bcecf04c97" }, { "type": "route", "uuid": "556adb2b-2b87-46ec-8796-4229e9991648" }, { "type": "route", "uuid": "4b5c81f5-c8e6-4861-8e4d-7370fd0c6db3" }, { "type": "route", "uuid": "c235343b-756e-404c-8328-19d47da5cf72" }, { "type": "route", "uuid": "15d7a90c-aea1-4105-9e22-1e5165f24ea8" } ] }