#http-api

[ follow ]
Privacy professionals
fromtheregister
1 day ago

Techie claims Trump Mobile website was leaking thousands of people's data

A website vulnerability allowed simple HTTP POST requests to extract tens of thousands of Trump Mobile customers’ personal and account details.
fromMedium
3 months ago

Fire-and-Forget REST APIs: A TDD Journey.

The request for its API val request = Request[IO](Method.POST, uri"/jobs")val api = new AsyncJobApi // this will not compile since AsyncJobApi is not defined yet Minimal implementation to make it green: class AsyncJobApi Red test: The API should return a 202 Accepted response: "POST /jobs returns Accepted" in { val request = Request[IO](Method.POST, uri"/jobs") val api = new AsyncJobApi api.routes.orNotFound.run(request).asserting : response => response.status shouldBe Status.Accepted} Make it green: class AsyncJobApi { val routes: HttpRoutes[IO] = HttpRoutes.of[IO] : case req @ POST -> Root / "jobs" => Accepted()} 5.2 Add headers (Trivial Implementation) Red test: add X-Total-Count and Location headers with job ID (only the assertion is shown)
Scala
fromMedium
7 months ago

Workflows4s Web UI: OSS Full Stack App Ready for Production

Today I'm glad to announce Workflows4s Web UI - a new milestone for the Workflows4s project and the result of four months of work and collaboration across the ecosystem.This post is both a release announcement and a case study - I want to share what we've built, but also how we've done it and why it matters beyond the Workflows4s context.
Software development
[ Load more ]