| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 50082e0 commit 98fd2d7
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | - // Code generated by swaggo/swag. DO NOT EDIT. | ||
| 2 | - | ||
| 1 | + // Package docs GENERATED BY SWAG; DO NOT EDIT | ||
| 2 | + // This file was generated by swaggo/swag | ||
| 3 | 3 | package docs | |
| 4 | 4 | ||
| 5 | 5 | import "github.com/swaggo/swag" | |
@@ -1913,6 +1913,44 @@ const docTemplate = `{ | |||
| 1913 | 1913 | } | |
| 1914 | 1914 | } | |
| 1915 | 1915 | } | |
| 1916 | + }, | ||
| 1917 | + "delete": { | ||
| 1918 | + "security": [ | ||
| 1919 | + { | ||
| 1920 | + "ApiKeyAuth": [] | ||
| 1921 | + } | ||
| 1922 | + ], | ||
| 1923 | + "description": "Deletes the currently authenticated user together with all their data.", | ||
| 1924 | + "consumes": [ | ||
| 1925 | + "application/json" | ||
| 1926 | + ], | ||
| 1927 | + "produces": [ | ||
| 1928 | + "application/json" | ||
| 1929 | + ], | ||
| 1930 | + "tags": [ | ||
| 1931 | + "Users" | ||
| 1932 | + ], | ||
| 1933 | + "summary": "Delete a user", | ||
| 1934 | + "responses": { | ||
| 1935 | + "201": { | ||
| 1936 | + "description": "Created", | ||
| 1937 | + "schema": { | ||
| 1938 | + "$ref": "#/definitions/responses.NoContent" | ||
| 1939 | + } | ||
| 1940 | + }, | ||
| 1941 | + "401": { | ||
| 1942 | + "description": "Unauthorized", | ||
| 1943 | + "schema": { | ||
| 1944 | + "$ref": "#/definitions/responses.Unauthorized" | ||
| 1945 | + } | ||
| 1946 | + }, | ||
| 1947 | + "500": { | ||
| 1948 | + "description": "Internal Server Error", | ||
| 1949 | + "schema": { | ||
| 1950 | + "$ref": "#/definitions/responses.InternalServerError" | ||
| 1951 | + } | ||
| 1952 | + } | ||
| 1953 | + } | ||
| 1916 | 1954 | } | |
| 1917 | 1955 | }, | |
| 1918 | 1956 | "/users/subscription": { | |
@@ -2669,11 +2707,7 @@ const docTemplate = `{ | |||
| 2669 | 2707 | }, | |
| 2670 | 2708 | "sim": { | |
| 2671 | 2709 | "description": "SIM is the SIM card to use to send the message\n* SMS1: use the SIM card in slot 1\n* SMS2: use the SIM card in slot 2\n* DEFAULT: used the default communication SIM card", | |
| 2672 | - "allOf": [ | ||
| 2673 | - { | ||
| 2674 | - "$ref": "#/definitions/entities.SIM" | ||
| 2675 | - } | ||
| 2676 | - ], | ||
| 2710 | + "type": "string", | ||
| 2677 | 2711 | "example": "DEFAULT" | |
| 2678 | 2712 | }, | |
| 2679 | 2713 | "status": { | |
@@ -2811,7 +2845,8 @@ const docTemplate = `{ | |||
| 2811 | 2845 | "example": "+18005550199" | |
| 2812 | 2846 | }, | |
| 2813 | 2847 | "sim": { | |
| 2814 | - "$ref": "#/definitions/entities.SIM" | ||
| 2848 | + "description": "SIM card that received the message", | ||
| 2849 | + "type": "string" | ||
| 2815 | 2850 | }, | |
| 2816 | 2851 | "updated_at": { | |
| 2817 | 2852 | "type": "string", | |
@@ -2823,48 +2858,6 @@ const docTemplate = `{ | |||
| 2823 | 2858 | } | |
| 2824 | 2859 | } | |
| 2825 | 2860 | }, | |
| 2826 | - "entities.SIM": { | ||
| 2827 | - "type": "string", | ||
| 2828 | - "enum": [ | ||
| 2829 | - "SIM1", | ||
| 2830 | - "SIM2" | ||
| 2831 | - ], | ||
| 2832 | - "x-enum-varnames": [ | ||
| 2833 | - "SIM1", | ||
| 2834 | - "SIM2" | ||
| 2835 | - ] | ||
| 2836 | - }, | ||
| 2837 | - "entities.SubscriptionName": { | ||
| 2838 | - "type": "string", | ||
| 2839 | - "enum": [ | ||
| 2840 | - "free", | ||
| 2841 | - "pro-monthly", | ||
| 2842 | - "pro-yearly", | ||
| 2843 | - "ultra-monthly", | ||
| 2844 | - "ultra-yearly", | ||
| 2845 | - "pro-lifetime", | ||
| 2846 | - "20k-monthly", | ||
| 2847 | - "100k-monthly", | ||
| 2848 | - "50k-monthly", | ||
| 2849 | - "20k-yearly", | ||
| 2850 | - "100k-yearly", | ||
| 2851 | - "50k-yearly" | ||
| 2852 | - ], | ||
| 2853 | - "x-enum-varnames": [ | ||
| 2854 | - "SubscriptionNameFree", | ||
| 2855 | - "SubscriptionNameProMonthly", | ||
| 2856 | - "SubscriptionNameProYearly", | ||
| 2857 | - "SubscriptionNameUltraMonthly", | ||
| 2858 | - "SubscriptionNameUltraYearly", | ||
| 2859 | - "SubscriptionNameProLifetime", | ||
| 2860 | - "SubscriptionName20KMonthly", | ||
| 2861 | - "SubscriptionName100KMonthly", | ||
| 2862 | - "SubscriptionName50KMonthly", | ||
| 2863 | - "SubscriptionName20KYearly", | ||
| 2864 | - "SubscriptionName100KYearly", | ||
| 2865 | - "SubscriptionName50KYearly" | ||
| 2866 | - ] | ||
| 2867 | - }, | ||
| 2868 | 2861 | "entities.User": { | |
| 2869 | 2862 | "type": "object", | |
| 2870 | 2863 | "required": [ | |
@@ -2926,11 +2919,7 @@ const docTemplate = `{ | |||
| 2926 | 2919 | "example": "8f9c71b8-b84e-4417-8408-a62274f65a08" | |
| 2927 | 2920 | }, | |
| 2928 | 2921 | "subscription_name": { | |
| 2929 | - "allOf": [ | ||
| 2930 | - { | ||
| 2931 | - "$ref": "#/definitions/entities.SubscriptionName" | ||
| 2932 | - } | ||
| 2933 | - ], | ||
| 2922 | + "type": "string", | ||
| 2934 | 2923 | "example": "free" | |
| 2935 | 2924 | }, | |
| 2936 | 2925 | "subscription_renews_at": { | |
@@ -3051,14 +3040,17 @@ const docTemplate = `{ | |||
| 3051 | 3040 | "type": "object", | |
| 3052 | 3041 | "required": [ | |
| 3053 | 3042 | "charging", | |
| 3054 | - "owner" | ||
| 3043 | + "phone_numbers" | ||
| 3055 | 3044 | ], | |
| 3056 | 3045 | "properties": { | |
| 3057 | 3046 | "charging": { | |
| 3058 | 3047 | "type": "boolean" | |
| 3059 | 3048 | }, | |
| 3060 | - "owner": { | ||
| 3061 | - "type": "string" | ||
| 3049 | + "phone_numbers": { | ||
| 3050 | + "type": "array", | ||
| 3051 | + "items": { | ||
| 3052 | + "type": "string" | ||
| 3053 | + } | ||
| 3062 | 3054 | } | |
| 3063 | 3055 | } | |
| 3064 | 3056 | }, | |
@@ -3178,11 +3170,7 @@ const docTemplate = `{ | |||
| 3178 | 3170 | }, | |
| 3179 | 3171 | "sim": { | |
| 3180 | 3172 | "description": "SIM card that received the message", | |
| 3181 | - "allOf": [ | ||
| 3182 | - { | ||
| 3183 | - "$ref": "#/definitions/entities.SIM" | ||
| 3184 | - } | ||
| 3185 | - ], | ||
| 3173 | + "type": "string", | ||
| 3186 | 3174 | "example": "SIM1" | |
| 3187 | 3175 | }, | |
| 3188 | 3176 | "timestamp": { | |
@@ -3874,8 +3862,6 @@ var SwaggerInfo = &swag.Spec{ | |||
| 3874 | 3862 | Description: "API to send SMS messages using android [SmsManager](https://developer.android.com/reference/android/telephony/SmsManager) via HTTP", | |
| 3875 | 3863 | InfoInstanceName: "swagger", | |
| 3876 | 3864 | SwaggerTemplate: docTemplate, | |
| 3877 | - LeftDelim: "{{", | ||
| 3878 | - RightDelim: "}}", | ||
| 3879 | 3865 | } | |
| 3880 | 3866 | ||
| 3881 | 3867 | func init() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1733,6 +1733,38 @@ | |||
| 1733 | 1733 | } | |
| 1734 | 1734 | } | |
| 1735 | 1735 | } | |
| 1736 | + }, | ||
| 1737 | + "delete": { | ||
| 1738 | + "security": [ | ||
| 1739 | + { | ||
| 1740 | + "ApiKeyAuth": [] | ||
| 1741 | + } | ||
| 1742 | + ], | ||
| 1743 | + "description": "Deletes the currently authenticated user together with all their data.", | ||
| 1744 | + "consumes": ["application/json"], | ||
| 1745 | + "produces": ["application/json"], | ||
| 1746 | + "tags": ["Users"], | ||
| 1747 | + "summary": "Delete a user", | ||
| 1748 | + "responses": { | ||
| 1749 | + "201": { | ||
| 1750 | + "description": "Created", | ||
| 1751 | + "schema": { | ||
| 1752 | + "$ref": "#/definitions/responses.NoContent" | ||
| 1753 | + } | ||
| 1754 | + }, | ||
| 1755 | + "401": { | ||
| 1756 | + "description": "Unauthorized", | ||
| 1757 | + "schema": { | ||
| 1758 | + "$ref": "#/definitions/responses.Unauthorized" | ||
| 1759 | + } | ||
| 1760 | + }, | ||
| 1761 | + "500": { | ||
| 1762 | + "description": "Internal Server Error", | ||
| 1763 | + "schema": { | ||
| 1764 | + "$ref": "#/definitions/responses.InternalServerError" | ||
| 1765 | + } | ||
| 1766 | + } | ||
| 1767 | + } | ||
| 1736 | 1768 | } | |
| 1737 | 1769 | }, | |
| 1738 | 1770 | "/users/subscription": { | |
@@ -2445,11 +2477,7 @@ | |||
| 2445 | 2477 | }, | |
| 2446 | 2478 | "sim": { | |
| 2447 | 2479 | "description": "SIM is the SIM card to use to send the message\n* SMS1: use the SIM card in slot 1\n* SMS2: use the SIM card in slot 2\n* DEFAULT: used the default communication SIM card", | |
| 2448 | - "allOf": [ | ||
| 2449 | - { | ||
| 2450 | - "$ref": "#/definitions/entities.SIM" | ||
| 2451 | - } | ||
| 2452 | - ], | ||
| 2480 | + "type": "string", | ||
| 2453 | 2481 | "example": "DEFAULT" | |
| 2454 | 2482 | }, | |
| 2455 | 2483 | "status": { | |
@@ -2587,7 +2615,8 @@ | |||
| 2587 | 2615 | "example": "+18005550199" | |
| 2588 | 2616 | }, | |
| 2589 | 2617 | "sim": { | |
| 2590 | - "$ref": "#/definitions/entities.SIM" | ||
| 2618 | + "description": "SIM card that received the message", | ||
| 2619 | + "type": "string" | ||
| 2591 | 2620 | }, | |
| 2592 | 2621 | "updated_at": { | |
| 2593 | 2622 | "type": "string", | |
@@ -2599,42 +2628,6 @@ | |||
| 2599 | 2628 | } | |
| 2600 | 2629 | } | |
| 2601 | 2630 | }, | |
| 2602 | - "entities.SIM": { | ||
| 2603 | - "type": "string", | ||
| 2604 | - "enum": ["SIM1", "SIM2"], | ||
| 2605 | - "x-enum-varnames": ["SIM1", "SIM2"] | ||
| 2606 | - }, | ||
| 2607 | - "entities.SubscriptionName": { | ||
| 2608 | - "type": "string", | ||
| 2609 | - "enum": [ | ||
| 2610 | - "free", | ||
| 2611 | - "pro-monthly", | ||
| 2612 | - "pro-yearly", | ||
| 2613 | - "ultra-monthly", | ||
| 2614 | - "ultra-yearly", | ||
| 2615 | - "pro-lifetime", | ||
| 2616 | - "20k-monthly", | ||
| 2617 | - "100k-monthly", | ||
| 2618 | - "50k-monthly", | ||
| 2619 | - "20k-yearly", | ||
| 2620 | - "100k-yearly", | ||
| 2621 | - "50k-yearly" | ||
| 2622 | - ], | ||
| 2623 | - "x-enum-varnames": [ | ||
| 2624 | - "SubscriptionNameFree", | ||
| 2625 | - "SubscriptionNameProMonthly", | ||
| 2626 | - "SubscriptionNameProYearly", | ||
| 2627 | - "SubscriptionNameUltraMonthly", | ||
| 2628 | - "SubscriptionNameUltraYearly", | ||
| 2629 | - "SubscriptionNameProLifetime", | ||
| 2630 | - "SubscriptionName20KMonthly", | ||
| 2631 | - "SubscriptionName100KMonthly", | ||
| 2632 | - "SubscriptionName50KMonthly", | ||
| 2633 | - "SubscriptionName20KYearly", | ||
| 2634 | - "SubscriptionName100KYearly", | ||
| 2635 | - "SubscriptionName50KYearly" | ||
| 2636 | - ] | ||
| 2637 | - }, | ||
| 2638 | 2631 | "entities.User": { | |
| 2639 | 2632 | "type": "object", | |
| 2640 | 2633 | "required": [ | |
@@ -2696,11 +2689,7 @@ | |||
| 2696 | 2689 | "example": "8f9c71b8-b84e-4417-8408-a62274f65a08" | |
| 2697 | 2690 | }, | |
| 2698 | 2691 | "subscription_name": { | |
| 2699 | - "allOf": [ | ||
| 2700 | - { | ||
| 2701 | - "$ref": "#/definitions/entities.SubscriptionName" | ||
| 2702 | - } | ||
| 2703 | - ], | ||
| 2692 | + "type": "string", | ||
| 2704 | 2693 | "example": "free" | |
| 2705 | 2694 | }, | |
| 2706 | 2695 | "subscription_renews_at": { | |
@@ -2806,13 +2795,16 @@ | |||
| 2806 | 2795 | }, | |
| 2807 | 2796 | "requests.HeartbeatStore": { | |
| 2808 | 2797 | "type": "object", | |
| 2809 | - "required": ["charging", "owner"], | ||
| 2798 | + "required": ["charging", "phone_numbers"], | ||
| 2810 | 2799 | "properties": { | |
| 2811 | 2800 | "charging": { | |
| 2812 | 2801 | "type": "boolean" | |
| 2813 | 2802 | }, | |
| 2814 | - "owner": { | ||
| 2815 | - "type": "string" | ||
| 2803 | + "phone_numbers": { | ||
| 2804 | + "type": "array", | ||
| 2805 | + "items": { | ||
| 2806 | + "type": "string" | ||
| 2807 | + } | ||
| 2816 | 2808 | } | |
| 2817 | 2809 | } | |
| 2818 | 2810 | }, | |
@@ -2908,11 +2900,7 @@ | |||
| 2908 | 2900 | }, | |
| 2909 | 2901 | "sim": { | |
| 2910 | 2902 | "description": "SIM card that received the message", | |
| 2911 | - "allOf": [ | ||
| 2912 | - { | ||
| 2913 | - "$ref": "#/definitions/entities.SIM" | ||
| 2914 | - } | ||
| 2915 | - ], | ||
| 2903 | + "type": "string", | ||
| 2916 | 2904 | "example": "SIM1" | |
| 2917 | 2905 | }, | |
| 2918 | 2906 | "timestamp": { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments