uuid
swagger-ui
Our great sponsors
uuid | swagger-ui | |
---|---|---|
17 | 130 | |
4,964 | 25,384 | |
2.4% | 1.1% | |
7.1 | 9.8 | |
2 days ago | 6 days ago | |
Go | JavaScript | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
uuid
-
Any way of blocking or preferring a package?
I use Google's UUID package a lot. But every time I refer to it in a new package, the language server picks up https://github.com/gofrs/uuid instead of https://github.com/google/uuid and then complains that the gofrs package isn't in go.mod. I assume because it's the first alphabetically (though this seems like a huge supply chain security loophole).
-
Authentication for HTMX app
Just store one single UUID as a token in a client's cookie (use https://github.com/google/uuid for ex), and associate that to a user ID (or anything else relevant in your case), and an expiry date for example
-
Which UUID package do you use? and why?
Depends on your needs I think, I generally just use github.com/google/uuid like /u/wowsux mentioned it supports v1 through v5 of the UUID spec.
github.com/google/uuid just works
-
Create a REST API with Go
And we are also going to use google/uuid to generate random uuids.
-
Go Lang for .NET devs
You can see the same naming dilemma in many Go library implementations, i.e., where a package is used to organize functions related to a single a type (https://github.com/google/uuid) vs organizing code of related functionality (https://github.com/golang/go/tree/master/src/math).
-
goes - CQRS & Event-Sourcing Toolkit
Type inference is not perfect yet (especially for functional options). Also not being able to add type parameters to methods is a bit annoying (can be worked around using package-level functions) but besides that generics fit quite nicely into the library. If type inference gets better then I think I can even remove the hard dependency on github.com/google/uuid and let users use custom types for ids.
-
Web dev learning path advice
Learn how to create UUIDs: https://github.com/google/uuid
-
Faster implementation for uuid.NewString()
We are using https://github.com/google/uuid and its method: uuid.NewString(). During our profiling we have found this method to be one of the most expensive calls in our system. Even larger than some of our json.Marshal/UnMarshal code.
-
💠How to make clear & pretty error messages from the Go backend to your frontend?
So, we have a field with type uuid.UUID which we create with the package google/uuid, which we want to check with the built-in validator uuid.Parse() of that package. All we need to do is add a new RegisterValidation method to the NewValidator function (described above) with simple logic code:
swagger-ui
-
Open API with Postman
The API had an OpenAPI endpoint built with Swagger where I could download a JSON specification file for the API.
-
Best Software Documentation Tools
Swagger is a widely used tool for documenting and testing APIs.
-
How to Automatically Consume RESTful APIs in Your Frontend
Swagger is an open-source software framework that implements the OpenAPI Specification—an API description format for REST APIs. The OpenAPI Specification defines a standard, language-agnostic interface to HTTP APIs, enabling both humans and computers to discover and understand the capabilities of the API.
-
Embracing API-First Development: Building the Future of Software
Mocking and Testing: Once the API design is complete, developers create mock APIs to simulate the behavior of the actual services. This early testing phase helps identify any issues or mismatches between design and implementation before substantial development efforts are invested. Tools like Postman or Swagger are invaluable for API testing and validation.
-
Craft OpenAPI Specs & Production-Ready SDKs with Fastify
import fp from "fastify-plugin"; import swagger from "@fastify/swagger"; export default fp(async (fastify) => { fastify.register(swagger, { openapi: { info: { tags: [ { name: "drinks", description: "Drink-related endpoints", externalDocs: { description: "Find out more", url: "http://swagger.io", }, }, ], }, }, }); });
- Como deixar o Swagger com tema dark mode usando NestJS
-
ChatGPT: how I used it to convert HTTP requests to OpenAPI document
A very requested feature for Sharkio was the auto-generation of OpenAPI documentation using the recorded HTTP requests - to create standardized documentation.
-
What do people with a degree in computer science do at work?
Automation QA is a lot of the same duties as manual QA, but instead of writing and executing the test plans manually, we create and update automated tests that can run those validations programmatically, for example by using Selenium to automatically fill out and submit forms for a web application, or using Postman and/or Swagger to generate an API conversation test.
-
what do you find most frustrating about dotnet?
The code below is now roughly from memory and my controller would usually look something like this (Swashbuckle or NSwag attribute hints removed). There are some gotchas with Swagger and SwaggerUI for supporting multipart/form-data which I haven't included here since they now be fixed, since it's been a while since I checked.
-
Generating an OpenAPI/Swagger spec from a Ruby on Rails API
rswag also includes a bundled version of Swagger UI if you want to inspect your OpenAPI spec visually during testing.
What are some alternatives?
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
ReDoc - 📘 OpenAPI/Swagger-generated API Reference Documentation [Moved to: https://github.com/Redocly/redoc]
redoc - 📘 OpenAPI/Swagger-generated API Reference Documentation
uuid - A UUID package originally forked from github.com/satori/go.uuid
fiber-swagger - fiber middleware to automatically generate RESTful API documentation with Swagger 2.0.
prism - Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.
go.uuid - UUID package for Go
drf-spectacular - Sane and flexible OpenAPI 3 schema generation for Django REST framework.
xid - xid is a globally unique id generator thought for the web
utoipa - Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
SonarQube - Continuous Inspection
C4-PlantUML - C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures