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
Show hidden characters
| { | |
| "name": "Digital Bank Backend (Spring Boot 3, Java 17, SQLite)", | |
| // Dùng image chính thức của devcontainers có sẵn Java 17 + Gradle/Maven | |
| "image": "mcr.microsoft.com/devcontainers/java:17", | |
| // Thư mục làm việc trong container | |
| "workspaceFolder": "/workspace", | |
| // Mount source code vào container |
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
| # BE foundation prompt | |
| - **Goal:** Establish consistent API contracts, error models, and environments for mobile FE integration. | |
| - **API base:** /api/v1/ | |
| - **Error model:** RFC7807 Problem+JSON (`type`, `title`, `status`, `detail`, `instance`) | |
| - **Auth:** Bearer JWT (RS256), `Authorization: Bearer <token>` | |
| - **Tracing:** Include `X-Request-Id` echoing, FE should attach it per request. | |
| - **Pagination:** Query `page`, `size`, `sort`; response `items`, `total`, `page`, `size`. | |
| - **Rate limiting:** FE must handle 429 with backoff and user feedback. | |
| - **Idempotency:** For POST transactions, FE must send `X-Idempotency-Key` (UUID v4). |
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
| <rewrite> | |
| <!-- Have a bunch of redirects? Put them in a separate file --> | |
| <rules configSource="Rewrites.config" /> | |
| <rules> | |
| <!-- Simple rewrite --> | |
| <rule name="Simple rewrite" stopProcessing="true"> | |
| <match url="^path/sub path/page\.aspx$" /> | |
| <action type="Rewrite" url="/newpath.aspx" /> |
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
| <rewrite> | |
| <!-- Have a bunch of redirects? Put them in a separate file --> | |
| <rules configSource="Rewrites.config" /> | |
| <rules> | |
| <!-- Simple rewrite --> | |
| <rule name="Simple rewrite" stopProcessing="true"> | |
| <match url="^path/sub path/page\.aspx$" /> | |
| <action type="Rewrite" url="/newpath.aspx" /> |
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
| <div class="countdown" data-datetime="<?php echo time() ?>"> | |
| <span class="days">0</span> days | |
| <span class="hours">0</span> hours | |
| <span class="minutes">0</span> minutes | |
| <span class="seconds">0</span> seconds | |
| </div> | |
| <script> | |
| (function() | |
| { |
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
| SET @entityid = '3'; | |
| SELECT ea.attribute_id, ea.attribute_code, eav.value AS 'value', 'varchar' AS 'type' | |
| FROM catalog_category_entity e | |
| JOIN catalog_category_entity_varchar eav | |
| ON e.entity_id = eav.entity_id | |
| JOIN eav_attribute ea | |
| ON eav.attribute_id = ea.attribute_id | |
| WHERE e.entity_id = @entityid | |
| UNION |
Source: https://www.youtube.com/watch?v=5WXYw4J4QOU
POST,GET,PUT,DELETE!= CRUD- no verbs -> just nouns for Resources:
/applicationsor/applications/123 - Possible Responses: Collection of Resources (e.g. with Links) or One instance of a Resource
- Keep your API course grained to be scaleble to future requirements
- For Resources: Be as specific as possible:
/customersvs./newsletter-customersand/registered-customers PUTfor Create: Can be used when the Client has the ability to create an identifier for the Resource himself. But it has to contain a full replacement of the dataset:PUT /applications/123
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
| import { Injectable } from "@angular/core"; | |
| /** | |
| * A collection of constants for HTTP status codes. Status Codes listed at http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml | |
| */ | |
| @Injectable({ providedIn: 'root' }) | |
| export class StatusCodes { | |
| // | |
| // Summary: | |
| // HTTP status code 100. |
NewerOlder