Skip to content

Instantly share code, notes, and snippets.

@LuminaScript
Created December 23, 2023 02:14
---
swagger: "2.0"
info:
version: "1.0.0"
title: "Pet Adoption API"
host: "b8gke3dl56.execute-api.us-east-1.amazonaws.com"
basePath: "/test"
schemes:
- "https"
paths:
/Pets:
get:
produces:
- "application/json"
parameters:
- name: "Access-Control-Allow-Origin"
in: "header"
required: false
type: "string"
responses:
"200":
description: "200 response"
headers:
Access-Control-Allow-Origin:
type: "string"
"400":
description: "400 response"
options:
consumes:
- "application/json"
responses:
"200":
description: "200 response"
headers:
Access-Control-Allow-Origin:
type: "string"
Access-Control-Allow-Methods:
type: "string"
Access-Control-Allow-Headers:
type: "string"
/adopter/create:
post:
produces:
- "application/json"
responses:
"200":
description: "200 response"
/adopter/{adopter_id}:
get:
produces:
- "application/json"
parameters:
- name: "adopter_id"
in: "path"
required: true
type: "string"
responses:
"200":
description: "200 response"
put:
produces:
- "application/json"
parameters:
- name: "adopter_id"
in: "path"
required: true
type: "string"
responses:
"200":
description: "200 response"
delete:
produces:
- "application/json"
parameters:
- name: "adopter_id"
in: "path"
required: true
type: "string"
responses:
"200":
description: "200 response"
/adopters:
get:
produces:
- "application/json"
responses:
"200":
description: "200 response"
/create:
post:
produces:
- "application/json"
parameters:
- name: "Access-Control-Allow-Origin"
in: "header"
required: false
type: "string"
- name: "petBreed"
in: "query"
required: false
type: "string"
- name: "petCategory"
in: "query"
required: false
type: "string"
- name: "petName"
in: "query"
required: false
type: "string"
responses:
"200":
description: "200 response"
headers:
Access-Control-Allow-Origin:
type: "string"
options:
consumes:
- "application/json"
responses:
"200":
description: "200 response"
headers:
Access-Control-Allow-Origin:
type: "string"
Access-Control-Allow-Methods:
type: "string"
Access-Control-Allow-Headers:
type: "string"
/createpetowner:
post:
produces:
- "application/json"
responses:
"200":
description: "200 response"
/delete/{id}:
delete:
produces:
- "application/json"
parameters:
- name: "Access-Control-Allow-Origin"
in: "header"
required: false
type: "string"
- name: "id"
in: "path"
required: true
type: "string"
responses:
"200":
description: "200 response"
headers:
Access-Control-Allow-Origin:
type: "string"
options:
consumes:
- "application/json"
parameters:
- name: "id"
in: "path"
required: true
type: "string"
responses:
"200":
description: "200 response"
headers:
Access-Control-Allow-Origin:
type: "string"
Access-Control-Allow-Methods:
type: "string"
Access-Control-Allow-Headers:
type: "string"
/deletepetowner/{id}:
delete:
produces:
- "application/json"
parameters:
- name: "id"
in: "path"
required: true
type: "string"
responses:
"200":
description: "200 response"
/getowner/{id}:
get:
produces:
- "application/json"
parameters:
- name: "id"
in: "path"
required: true
type: "string"
responses:
"200":
description: "200 response"
/updatepetname:
put:
produces:
- "application/json"
parameters:
- name: "newname"
in: "query"
required: false
type: "string"
- name: "Access-Control-Allow-Origin"
in: "header"
required: false
type: "string"
- name: "id"
in: "query"
required: false
type: "string"
responses:
"200":
description: "200 response"
headers:
Access-Control-Allow-Origin:
type: "string"
options:
consumes:
- "application/json"
responses:
"200":
description: "200 response"
headers:
Access-Control-Allow-Origin:
type: "string"
Access-Control-Allow-Methods:
type: "string"
Access-Control-Allow-Headers:
type: "string"
/updatepetowner/{id}:
put:
produces:
- "application/json"
parameters:
- name: "id"
in: "path"
required: true
type: "string"
responses:
"200":
description: "200 response"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment