Skip to content

Commit

Permalink
V2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonarafat committed Oct 16, 2023
1 parent 9cf36a6 commit 6ea496e
Show file tree
Hide file tree
Showing 4 changed files with 1,787 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .postman/api
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
apis[] = {"apiId":"ec895523-92f2-4b7d-8a87-6ad05ba6f411"}
configVersion = 1.0.0
type = api
21 changes: 21 additions & 0 deletions .postman/api_ec895523-92f2-4b7d-8a87-6ad05ba6f411
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
configVersion = 1.1.0
type = apiEntityData

[config]
id = ec895523-92f2-4b7d-8a87-6ad05ba6f411

[config.relations]

[config.relations.collections]
rootDirectory = postman/collections
files[] = {"id":"16950503-213c44b5-c8bb-4137-911e-2a85dd34d513","path":"Nigeris States, Towns and Local Government Area.json","metaData":{}}

[config.relations.collections.metaData]

[config.relations.apiDefinition]
files[] = {"path":"index.json","metaData":{}}

[config.relations.apiDefinition.metaData]
type = openapi:3
rootFiles[] = index.json
119 changes: 119 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Sample API",
"description": "Buy or rent spacecrafts"
},
"paths": {
"/spacecrafts/{spacecraftId}": {
"parameters": [
{
"name": "spacecraftId",
"description": "The unique identifier of the spacecraft",
"in": "path",
"required": true,
"schema": {
"$ref": "#/components/schemas/SpacecraftId"
}
}
],
"get": {
"summary": "Read a spacecraft",
"responses": {
"200": {
"description": "The spacecraft corresponding to the provided `spacecraftId`",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Spacecraft"
}
}
}
},
"404": {
"description": "No spacecraft found for the provided `spacecraftId`",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"SpacecraftId": {
"description": "The unique identifier of a spacecraft",
"type": "string"
},
"Spacecraft": {
"type": "object",
"required": [
"id",
"name",
"type"
],
"properties": {
"id": {
"$ref": "#/components/schemas/SpacecraftId"
},
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"capsule",
"probe",
"satellite",
"spaceplane",
"station"
]
},
"description": {
"type": "string"
}
}
},
"Error": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"description": "A human readable error message",
"type": "string"
}
}
}
},
"securitySchemes": {
"ApiKey": {
"type": "apiKey",
"in": "header",
"name": "X-Api-Key"
}
}
},
"security": [
{
"ApiKey": []
}
]
}
1,643 changes: 1,643 additions & 0 deletions postman/collections/Nigeris States, Towns and Local Government Area.json

Large diffs are not rendered by default.

0 comments on commit 6ea496e

Please sign in to comment.