JSON-Schema Faker
JSON-Schema Faker | swagger-petstore | |
---|---|---|
8 | 14 | |
3,214 | 221 | |
0.4% | 2.3% | |
7.1 | 6.8 | |
2 months ago | 22 days ago | |
JavaScript | Java | |
MIT 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.
JSON-Schema Faker
-
Show HN: Generate JSON mock data for testing/initial app development
There’s also json-schema-faker which is pretty cool.
https://github.com/json-schema-faker/json-schema-faker
-
How do you get realistic data in your staging databases?
I built a CSV generator which I then use as a test data source for a dsv library on that principle and another API generator based on schema. Something that might be additionally helpful is json-schema-faker, as you can probably convert you primary record (DB schema) to json-schema then just generate tons of data.
-
OpenAPI Examples
I only know https://github.com/json-schema-faker/json-schema-faker for JS, not Java though.
-
How Web Apps Became Decoys To Get You To Install Native Apps
Hell, i was using this one earlier today; just kills me that people think this is acceptable.
-
Intro to AWS Websockets Part Three: Documentation
The payload object contains a reference to a JSON Schema object that describes the properties of the event. This allows the consumer to know exactly how to define the event when publishing or how to write code that consumes a subscribed event. There are even tools online that generate examples from JSON Schema (and vice versa).
- The Faker.js Saga Continues
-
How do you "stitch & glue" types for all your needs?
The class-validator / class-transform looks really nice for formatting/validation but there is also joi. suretype is attractive since theoretically typeconv could generate jsonSchema for json-schema-faker and Open API docs.
-
JSON Data Generator
I've been using Fake your JSON-Schemas! (json-schema-faker.js.org), but it does not consider if-then-else rules in its generation process.
swagger-petstore
-
How to Automatically Consume RESTful APIs in Your Frontend
Now, we can start our server and visit the Swagger UI at http://localhost:port/documentation. The documentation will be empty for now, but we will add our endpoints later on. You can also have a look at how the Swagger UI looks in the Swagger's online demo.
-
Show HN: I’m building open-source headless CMS for technical content
I think there's also a missing gap in how to present Swagger beautifully, the default one ( https://petstore.swagger.io/ ) is meh. I'm looking for something that can generate like https://stripe.com/docs/api but open source (since the OP is talking about it).
I imagine a tool(chain) that can take Swagger generated from annotations in code, and combine it with a folder containing Markdown files for "free form" documentation, and generate a Hugo/Jekyll static site that can be deployed in Cloudflare Pages in docs.mycompany.com
- Question regarding how to find projects on GitHub to help out writing API documentation for
-
Is there complete documentation of the auth REST API anywhere?
You can go to https://petstore.swagger.io/
-
Learning java and spring boot
Controllers handle the incoming requests, and their responses. Generally you design a "contract" that describes how to properly format a request to your application, and which response you may expect. Swagger is the tool to write the contract, and REST are the principles that guide you. Take a look at the swagger petstore for an example. Ask for a swagger file of your application, and the corresponding Controller, and you should be able to see the connection.
-
OpenAPI Examples
Your question is a bit unclear. Are you trying to find an example OpenAPI document for some REST web services? If yes, check the Pet Store project: https://petstore.swagger.io/
-
Single swagger for multiple akka http microservices
So you mean there is an endpoint on each of your service that will bring you to a view like the PetStore example?
- My job search experience at the senior BigN level for 2023 - is it safe hopping?
-
Examples of APIs that follows the best practices and are production ready on Github?
I am a backend dev myself. I use pet store api collection as a reference for REST APIs best practices https://petstore.swagger.io
-
Generate Kotlin client for a complex web API
Automation for many routines starts with interaction via API. This case can be treated in many ways, but I want to take a look at interacting with web API using a generated Kotlin client. I found a lot of academic examples for generating Kotlin clients (most of them are based on the PetStore), but nothing was close to real-world examples. My goal is to build a Kotlin client for a complex API and see how it works. Here is the source code of the Kotlin project that I will use in the post.
What are some alternatives?
Mock.js - A simulation data generator
openapi-merge - Merge multiple OpenAPI 3.0 (Swagger) files together via a library or CLI tool.
Immer - Create the next immutable state by mutating the current one
orchid-orm-benchmarks - Orchid ORM benchmarks
hashmap - HashMap JavaScript class for Node.js and the browser. The keys can be anything and won't be stringified
open-api-playground
react-websocket - Easy-to-use React component for websocket communications.
domain-driven-hexagon - Learn Domain-Driven Design, software architecture, design patterns, best practices. Code examples included
immutable-js - Immutable persistent data collections for Javascript which increase efficiency and simplicity.
projecthunt-api - API for projecthunt a project hunting platform
datafaker - Generating fake data for the JVM (Java, Kotlin, Groovy) has never been easier!
node-rest-starter - A Node.js starter containing common components and services as a reference API.