From 1d49ceed21bcd9f9154f29242136a2734f97b84c Mon Sep 17 00:00:00 2001 From: Aishuk21 Date: Thu, 19 Sep 2024 17:57:23 +0530 Subject: [PATCH] Update index.html --- dist/index.html | 196 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 177 insertions(+), 19 deletions(-) diff --git a/dist/index.html b/dist/index.html index 84ae62d3dad..90911fb27b7 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,19 +1,177 @@ - - - - - - Swagger UI - - - - - - - -
- - - - - +openapi: 3.0.0 +info: + title: ReqRes API + description: A fake API for testing and prototyping. + version: 1.0.0 +servers: + - url: https://reqres.in/api +paths: + /users: + get: + summary: Get a list of users + description: Retrieves a list of users. + parameters: + - name: page + in: query + schema: + type: integer + example: 2 + - name: per_page + in: query + schema: + type: integer + example: 6 + responses: + '200': + description: A list of users + content: + application/json: + schema: + type: object + properties: + page: + type: integer + example: 2 + per_page: + type: integer + example: 6 + total: + type: integer + example: 12 + total_pages: + type: integer + example: 2 + data: + type: array + items: + type: object + properties: + id: + type: integer + example: 2 + email: + type: string + example: janet.weaver@reqres.in + first_name: + type: string + example: Janet + last_name: + type: string + example: Weaver + avatar: + type: string + example: https://reqres.in/img/faces/2-image.jpg + /users/{id}: + get: + summary: Get a user by ID + description: Retrieves a single user by their ID. + parameters: + - name: id + in: path + required: true + schema: + type: integer + responses: + '200': + description: User information + content: + application/json: + schema: + type: object + properties: + data: + type: object + properties: + id: + type: integer + example: 2 + email: + type: string + example: janet.weaver@reqres.in + first_name: + type: string + example: Janet + last_name: + type: string + example: Weaver + avatar: + type: string + example: https://reqres.in/img/faces/2-image.jpg + '404': + description: User not found + /users: + post: + summary: Create a new user + description: Adds a new user to the server. + requestBody: + content: + application/json: + schema: + type: object + properties: + name: + type: string + example: John Doe + job: + type: string + example: Software Developer + responses: + '201': + description: User created + content: + application/json: + schema: + type: object + properties: + id: + type: integer + example: 12 + createdAt: + type: string + example: "2024-09-20T12:34:56.789Z" + /users/{id}: + put: + summary: Update a user + description: Updates an existing user’s information. + parameters: + - name: id + in: path + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + type: object + properties: + name: + type: string + example: Jane Doe + job: + type: string + example: Product Manager + responses: + '200': + description: User updated + content: + application/json: + schema: + type: object + properties: + updatedAt: + type: string + example: "2024-09-20T12:34:56.789Z" + /users/{id}: + delete: + summary: Delete a user + description: Removes a user from the server. + parameters: + - name: id + in: path + required: true + schema: + type: integer + responses: + '204': + description: User deleted