Skip to content
This repository has been archived by the owner on Dec 29, 2024. It is now read-only.

Commit

Permalink
Added hub delete endpoint (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
akama-aka authored Jun 7, 2024
2 parents 9061d76 + a1d710f commit 29f4cbf
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
37 changes: 34 additions & 3 deletions Writerside/hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,40 @@ info:
servers:
- url: https://api.siwft.org
paths:
/v0/hub/{hubID}:
/v0/hub/{hubId}/delete:
delete:
summary: Delete a wallet Hub
parameters:
- in: path
name: hubId
description: The Hub ID you want to delete
required: true
schema:
type: string
- in: header
name: Authorization
description: You authorization key of you wallet hub.
required: true
schema:
type: string
responses:
'200':
description: Successfully
'204':
description: Successfully
'401':
description: Unauthorized
content:
application/json:
schema:
type: object
item:
properties:
message:
type: string
code:
type: integer
/v0/hub/{hubId}:
get:
summary: Get Hub Information
description: Get Information's about an specific Wallet Hub. If you want more Information's like the Contact Address or API Key then please specify your API Key in the Header
Expand Down Expand Up @@ -72,8 +105,6 @@ paths:
created:
type: string
format: 'date-time'


/v0/hub/create:
post:
summary: Create a new Hub
Expand Down
8 changes: 7 additions & 1 deletion Writerside/topics/WalletHub.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

## Get a Wallet Hub

<api-endpoint openapi-path="../hub.yaml" endpoint="/v0/hub/{hubID}" method="GET">
<api-endpoint openapi-path="../hub.yaml" endpoint="/v0/hub/{hubId}" method="GET">
<response type="200">
<sample>
{
Expand All @@ -44,3 +44,9 @@
</sample>
</response>
</api-endpoint>

## Delete a Wallet Hub


<api-endpoint openapi-path="../hub.yaml" endpoint="/v0/hub/{hubId}/delete" method="DELETE">
</api-endpoint>

0 comments on commit 29f4cbf

Please sign in to comment.