Link: https://docs.google.com/presentation/d/1PBuGY30iQ56AHmQbZJlHuX8J9K7GaDIi-7Xje2MN_to
This file contains hidden or 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
| export const api = createApi({ | |
| baseQuery: fetchBaseQuery({ | |
| baseUrl: "https://your.api.uri", | |
| }), | |
| endpoints: (builder) => ({ | |
| login: builder.mutation({ | |
| query: ({ username, password }) => ({ | |
| url: "/login", | |
| method: "POST", | |
| headers: { |
This file contains hidden or 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
| <!doctype html> | |
| <html lang="de"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| #ascii { | |
| font-family: monospace; | |
| font-size: 1vw; | |
| max-width: 100vw; | |
| } |
This file contains hidden or 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
| @-moz-document url-prefix("https://news.ycombinator.com") { | |
| @media (prefers-color-scheme: dark) { | |
| * :not(.votearrow, input, textarea) { | |
| color: #f2f2f2 !important; | |
| background: #1a1a1a !important; | |
| } | |
| } | |
| } |
This file contains hidden or 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
| ng new codegen-test | |
| npm i @openapitools/openapi-generator-cli --save-dev | |
| npx openapi-generator-cli generate -i http://localhost:5000/swagger/v1/swagger.json -g typescript-angular -o src/libs/api |