-
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 #722 from luomus/trait-db-186748322
Trait-db v0
- Loading branch information
Showing
68 changed files
with
18,531 additions
and
5 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,20 @@ | ||
Updating api type definitions: | ||
|
||
``` | ||
npm i | ||
// update types based on the new API openapi schema | ||
npm run updateNew | ||
``` | ||
|
||
Usage: | ||
```typescript | ||
export class ExampleComponent { | ||
constructor(private lajiApiClientService: LajiApiClientBService) {} | ||
function f() { | ||
const a$ = this.lajiApiClientService.fetch('/collections', 'get', { query: { page: 1 } }); | ||
} | ||
} | ||
``` | ||
|
||
Queries are cached by default based on the path and the query params. Whenever a new non-get request is sent to the same path, the cache is flushed automatically. |
Oops, something went wrong.