File size: 605 Bytes
3d23b0f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export const userRatingSchema = {
    summary: 'Get User Rating',
    description: 'Fetches CodeChef user rating and platform details',
    tags: ['CodeChef'],
    querystring: {
        type: 'object',
        properties: {
            username: { type: 'string', description: 'CodeChef username' },
        },
        required: ['username'],
    },
    response: {
        200: {
            type: 'object',
            properties: {
                username: { type: 'string' },
                platform: { type: 'string' },
                rating: { type: 'number' }
            }
        }
    }
};