Skip to content

Commit

Permalink
fix docker file and prune the openapi
Browse files Browse the repository at this point in the history
Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
  • Loading branch information
championswimmer committed Nov 5, 2023
1 parent a5ed5a9 commit cd4e683
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
container_name: onepixel
build:
dockerfile: Dockerfile
context: .
ports:
- "3000:3000"
expose:
Expand Down
35 changes: 0 additions & 35 deletions onepixel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ paths:
description: The original long URL
'404':
description: Not Found
servers:
- url: 'http://localhost:3000'
description: dev
- url: 'https://1px.li'
description: prod
/api/v1/users:
post:
tags:
Expand All @@ -60,11 +55,6 @@ paths:
'201':
$ref: '#/components/responses/user-with-token'
security: []
servers:
- url: 'http://localhost:3000'
description: dev
- url: 'https://1px.li'
description: prod
/api/v1/users/login:
post:
tags:
Expand All @@ -76,11 +66,6 @@ paths:
responses:
'200':
$ref: '#/components/responses/user-with-token'
servers:
- url: 'http://localhost:3000'
description: dev
- url: 'https://1px.li'
description: prod
'/api/v1/users/{userid}':
get:
tags:
Expand All @@ -99,11 +84,6 @@ paths:
$ref: '#/components/responses/403-forbidden'
security:
- bearerToken: []
servers:
- url: 'http://localhost:3000'
description: dev
- url: 'https://1px.li'
description: prod
patch:
tags:
- user
Expand All @@ -127,11 +107,6 @@ paths:
$ref: '#/components/responses/403-forbidden'
security:
- bearerToken: []
servers:
- url: 'http://localhost:3000'
description: dev
- url: 'https://1px.li'
description: prod
/api/v1/urls:
post:
tags:
Expand All @@ -145,11 +120,6 @@ paths:
$ref: '#/components/responses/url-details'
security:
- bearerToken: []
servers:
- url: 'http://localhost:3000'
description: dev
- url: 'https://1px.li'
description: prod
'/api/v1/urls/{shorturl}':
get:
tags:
Expand All @@ -163,11 +133,6 @@ paths:
$ref: '#/components/responses/url-details'
security:
- bearerToken: []
servers:
- url: 'http://localhost:3000'
description: dev
- url: 'https://1px.li'
description: prod
tags:
- name: url
description: things related to urls
Expand Down

0 comments on commit cd4e683

Please sign in to comment.