Skip to content

Commit

Permalink
chore: better docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr committed Jul 1, 2024
1 parent b0e7998 commit 329d3e1
Show file tree
Hide file tree
Showing 8 changed files with 265 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/vercel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

environment:
name: ${{ github.ref_name == 'main' && 'Production' || 'Preview' }}
url: ${{ github.ref_name == 'main' && 'https://runes-api.vercel.app/' || 'https://runes-api-pbcblockstack-blockstack.vercel.app/' }}
url: ${{ github.ref_name == 'main' && 'https://runes-api.vercel.app/' || 'https://runehook-pbcblockstack-hirosystems.vercel.app/' }}

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
Runehook.toml
.DS_Store
4 changes: 2 additions & 2 deletions api/src/api/routes/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const AddressRoutes: FastifyPluginCallback<
{
schema: {
operationId: 'getAddressBalances',
summary: 'Get address balances',
summary: 'Address balances',

Check warning on line 22 in api/src/api/routes/addresses.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/addresses.ts#L22

Added line #L22 was not covered by tests
description: 'Retrieves a paginated list of address balances',
tags: ['Runes'],
tags: ['Balances'],

Check warning on line 24 in api/src/api/routes/addresses.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/addresses.ts#L24

Added line #L24 was not covered by tests
params: Type.Object({
address: AddressSchema,
}),
Expand Down
4 changes: 2 additions & 2 deletions api/src/api/routes/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const BlockRoutes: FastifyPluginCallback<
{
schema: {
operationId: 'getBlockActivity',
summary: 'Get block activity',
summary: 'Block activity',

Check warning on line 22 in api/src/api/routes/blocks.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/blocks.ts#L22

Added line #L22 was not covered by tests
description: 'Retrieves a paginated list of rune activity for a block',
tags: ['Runes'],
tags: ['Activities'],

Check warning on line 24 in api/src/api/routes/blocks.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/blocks.ts#L24

Added line #L24 was not covered by tests
params: Type.Object({
block: BlockSchema,
}),
Expand Down
18 changes: 9 additions & 9 deletions api/src/api/routes/etchings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export const EtchingRoutes: FastifyPluginCallback<
{
schema: {
operationId: 'getEtchings',
summary: 'Get rune etchings',
summary: 'Rune etchings',

Check warning on line 32 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L32

Added line #L32 was not covered by tests
description: 'Retrieves a paginated list of rune etchings',
tags: ['Runes'],
tags: ['Etchings'],

Check warning on line 34 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L34

Added line #L34 was not covered by tests
querystring: Type.Object({
offset: Optional(OffsetSchema),
limit: Optional(LimitSchema),
Expand Down Expand Up @@ -61,7 +61,7 @@ export const EtchingRoutes: FastifyPluginCallback<
operationId: 'getEtching',
summary: 'Rune etching',
description: 'Retrieves information for a Rune etching',
tags: ['Runes'],
tags: ['Etchings'],

Check warning on line 64 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L64

Added line #L64 was not covered by tests
params: Type.Object({
etching: RuneSchema,
}),
Expand All @@ -86,9 +86,9 @@ export const EtchingRoutes: FastifyPluginCallback<
{
schema: {
operationId: 'getRuneActivity',
summary: 'Rune rune activity',
summary: 'Rune activity',

Check warning on line 89 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L89

Added line #L89 was not covered by tests
description: 'Retrieves all activity for a Rune',
tags: ['Runes'],
tags: ['Activities'],

Check warning on line 91 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L91

Added line #L91 was not covered by tests
params: Type.Object({
etching: RuneSchema,
}),
Expand Down Expand Up @@ -119,9 +119,9 @@ export const EtchingRoutes: FastifyPluginCallback<
{
schema: {
operationId: 'getRuneAddressActivity',
summary: 'Rune rune activity for address',
summary: 'Rune activity for address',

Check warning on line 122 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L122

Added line #L122 was not covered by tests
description: 'Retrieves all activity for a Rune address',
tags: ['Runes'],
tags: ['Activities'],

Check warning on line 124 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L124

Added line #L124 was not covered by tests
params: Type.Object({
etching: RuneSchema,
address: AddressSchema,
Expand Down Expand Up @@ -160,7 +160,7 @@ export const EtchingRoutes: FastifyPluginCallback<
operationId: 'getRuneHolders',
summary: 'Rune holders',
description: 'Retrieves a paginated list of holders for a Rune',
tags: ['Runes'],
tags: ['Balances'],

Check warning on line 163 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L163

Added line #L163 was not covered by tests
params: Type.Object({
etching: RuneSchema,
}),
Expand Down Expand Up @@ -193,7 +193,7 @@ export const EtchingRoutes: FastifyPluginCallback<
operationId: 'getRuneHolderBalance',
summary: 'Rune holder balance',
description: 'Retrieves holder balance for a specific Rune',
tags: ['Runes'],
tags: ['Balances'],

Check warning on line 196 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L196

Added line #L196 was not covered by tests
params: Type.Object({
etching: RuneSchema,
address: AddressSchema,
Expand Down
4 changes: 2 additions & 2 deletions api/src/api/routes/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const TransactionRoutes: FastifyPluginCallback<
{
schema: {
operationId: 'getTransactionActivity',
summary: 'Get transaction activity',
summary: 'Transaction activity',

Check warning on line 22 in api/src/api/routes/transactions.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/transactions.ts#L22

Added line #L22 was not covered by tests
description: 'Retrieves a paginated list of rune activity for a transaction',
tags: ['Runes'],
tags: ['Activities'],

Check warning on line 24 in api/src/api/routes/transactions.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/transactions.ts#L24

Added line #L24 was not covered by tests
params: Type.Object({
tx_id: TransactionIdSchema,
}),
Expand Down
Loading

0 comments on commit 329d3e1

Please sign in to comment.