-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Wikidata-Cameroon/dev
setup redocly and added build & watch scripts for docs. also added /api-docs endpoint
- Loading branch information
Showing
6 changed files
with
65 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,3 +129,6 @@ dist | |
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
# api docs | ||
public/api-docs/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: wiki-lex-match API | ||
description: The API for wiki-lex-match, by Wiki mentor Africa Cameroon - Yaounde developer at rebase-code-camp. | ||
version: 1.0.0 | ||
license: | ||
name: MIT | ||
url: "https://opensource.org/license/mit/" | ||
servers: | ||
- url: http://localhost:8080 | ||
description: local server | ||
|
||
# paths: | ||
# /: | ||
# # define route paths | ||
|
||
# components: | ||
# schemas: | ||
# # Define any reusable components or schemas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
extends: | ||
- recommended | ||
|
||
apis: | ||
main: | ||
root: ./api/api-docs.yaml | ||
rules: | ||
operation-tag-defined: error | ||
no-invalid-schema-examples: error | ||
no-invalid-media-type-examples: error | ||
scalar-property-missing-example: error | ||
rule/operation-summary-sentence-case: | ||
subject: | ||
type: Operation | ||
property: summary | ||
message: "Operation summary must be sentence cased." | ||
assertions: | ||
pattern: /^[A-Z]+[^A-Z]+$/ | ||
rule/example-summary-sentence-case: | ||
subject: | ||
type: Example | ||
property: summary | ||
message: "Example summary must be sentence cased." | ||
assertions: | ||
pattern: /^[A-Z]+[^A-Z]+$/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters