Coder Social home page Coder Social logo

api-testing---three's Introduction

API Testing Report

Netlify Status

[Reqres]

Method

  • POST
  • GET
  • PUT
  • DELETE

Endpoints

Register Users

POST https://reqres.in/api/register

The request body needs to be in JSON format and include the following properties:

{ "email": "your email", "password": "your pass" } Registered total 6 different users.

After each registration new tokens will be generated for each users.

Users

GET {{url}}/users

Returns the User Lists of the API.

Details of a Single Users

GET {{url}}/users/id

Retrieve detailed information about a user.

Resources

GET {{url}}/unknown

Returns the resources of the API.

Details of a Single Resources

GET {{url}}/unknown/id

Retrieve detailed information about a resource.

API Authentication

To Update and delete those generated tokens in the registration phases required.

PUT {{url}}/users/{{id}}

The request body needs to be in JSON format and include the following properties:

Example

{
   "first_name": "your first name",
   "last_name": "your last name",
}

The response body will contain the access token in the Authorization tab.

Delete a User

DELETE {{url}}/users/{{id}}

Delete an existing user. Requires authentication.

The request body needs to be empty.

Example

DELETE /users/3
Authorization: Bearer <YOUR TOKEN>

Command

  1. Newman Install:

    • npm install -g newman
  2. Reporter Install:

    • npm install -g newman-reporter-html
    • npm install -g newman-reporter-htmlextra
  3. Report Generate:

    • newman run "..\CollectionName.json" -e "..\EnvironmentName.json" -r cli,html
    • newman run "..\CollectionName.json" -e "..\EnvironmentName.json" -r cli,htmlextra

api-testing---three's People

Contributors

mahmudurrahman-1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.