Back to articles
Hoppscotch Has a Free API That Most Developers Dont Know About

Hoppscotch Has a Free API That Most Developers Dont Know About

via Dev.to WebdevAlex Spinov

Hoppscotch is an open-source API development platform — like Postman but faster, lighter, and completely free. CLI (hopp-cli) npm install -g @hoppscotch/cli # Run collection hopp test my-collection.json # Run with environment hopp test my-collection.json --env production.json # Generate report hopp test my-collection.json --reporter json --output results.json Collection Format { "v" : 2 , "name" : "My API Tests" , "requests" : [ { "v" : "3" , "name" : "Get Users" , "method" : "GET" , "endpoint" : "<<baseUrl>>/api/users" , "headers" : [{ "key" : "Authorization" , "value" : "Bearer <<token>>" }], "testScript" : "pw.expect(pw.response.status).toBe(200); pw.expect(pw.response.body.length).toBeGreaterThan(0);" }, { "v" : "3" , "name" : "Create User" , "method" : "POST" , "endpoint" : "<<baseUrl>>/api/users" , "body" : { "contentType" : "application/json" , "body" : "{ \" name \" : \" John \" , \" email \" : \" john@example.com \" }" } } ] } Key Features Open-source Postman alternative REST,

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
4 views

Related Articles