top-shelf-backend-api 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs ADDED
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+ const spec = {
3
+ "openapi": "3.0.3",
4
+ "info": {
5
+ "title": "Top Shelf API",
6
+ "description": "API for the Top Shelf application",
7
+ "version": "0.1.0"
8
+ },
9
+ "servers": [
10
+ {
11
+ "url": "http://localhost:3000",
12
+ "description": "Local development"
13
+ }
14
+ ],
15
+ "paths": {
16
+ "/": {
17
+ "get": {
18
+ "summary": "Health check",
19
+ "operationId": "getRoot",
20
+ "responses": {
21
+ "200": {
22
+ "description": "OK",
23
+ "content": {
24
+ "text/plain": {
25
+ "schema": {
26
+ "type": "string",
27
+ "example": "Hello World!"
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
36
+ };
37
+ module.exports = spec;
38
+ module.exports.default = spec;
@@ -0,0 +1,2 @@
1
+ declare const spec: Record<string, unknown>;
2
+ export default spec;
package/dist/index.mjs ADDED
@@ -0,0 +1,36 @@
1
+ const spec = {
2
+ "openapi": "3.0.3",
3
+ "info": {
4
+ "title": "Top Shelf API",
5
+ "description": "API for the Top Shelf application",
6
+ "version": "0.1.0"
7
+ },
8
+ "servers": [
9
+ {
10
+ "url": "http://localhost:3000",
11
+ "description": "Local development"
12
+ }
13
+ ],
14
+ "paths": {
15
+ "/": {
16
+ "get": {
17
+ "summary": "Health check",
18
+ "operationId": "getRoot",
19
+ "responses": {
20
+ "200": {
21
+ "description": "OK",
22
+ "content": {
23
+ "text/plain": {
24
+ "schema": {
25
+ "type": "string",
26
+ "example": "Hello World!"
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ };
36
+ export default spec;
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "top-shelf-backend-api",
3
+ "version": "0.1.0",
4
+ "description": "OpenAPI specification for the Top Shelf API",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "require": "./dist/index.cjs",
11
+ "import": "./dist/index.mjs",
12
+ "types": "./dist/index.d.ts"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "spec"
18
+ ],
19
+ "scripts": {
20
+ "build": "node scripts/build.mjs",
21
+ "prepublishOnly": "npm run build"
22
+ },
23
+ "devDependencies": {
24
+ "js-yaml": "^4.1.0"
25
+ }
26
+ }
@@ -0,0 +1,21 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Top Shelf API
4
+ description: API for the Top Shelf application
5
+ version: 0.1.0
6
+ servers:
7
+ - url: http://localhost:3000
8
+ description: Local development
9
+ paths:
10
+ /:
11
+ get:
12
+ summary: Health check
13
+ operationId: getRoot
14
+ responses:
15
+ '200':
16
+ description: OK
17
+ content:
18
+ text/plain:
19
+ schema:
20
+ type: string
21
+ example: Hello World!