Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 13319989

Přidáno uživatelem Václav Honzík před více než 2 roky(ů)

automatic class generation from swagger endpoint re #9196

Zobrazit rozdíly:

frontend/src/components/StubComponent.tsx
7 7

  
8 8
    const [text, setText] = useState<string>('')
9 9

  
10
    // Sends api request to the backend
10
    // Sends swagger request to the backend
11 11
    const fetchStub = async () => {
12 12
        try {
13 13
            const { data } = await AxiosClient.get('/stub')

Také k dispozici: Unified diff