Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libninjacom/postman-go
Postman client, generated from the OpenAPI spec
https://github.com/libninjacom/postman-go
golang openapi postman
Last synced: 20 days ago
JSON representation
Postman client, generated from the OpenAPI spec
- Host: GitHub
- URL: https://github.com/libninjacom/postman-go
- Owner: libninjacom
- License: mit
- Created: 2022-10-14T18:31:07.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-20T21:19:33.000Z (over 2 years ago)
- Last Synced: 2024-11-09T14:29:17.854Z (3 months ago)
- Topics: golang, openapi, postman
- Language: Go
- Homepage: https://docs.rs/postman
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Postman client, generated from the OpenAPI spec.
# Usage
```go
package mainimport (
"fmt"
"postman"
"postman/request/getallapis"
)func main() {
client := postman.NewClientFromEnv()
res, err := client.GetAllApis(
getallapis.WithWorkspace("your workspace"),
getallapis.WithSince("your since"),
getallapis.WithUntil("your until"),
getallapis.WithCreatedBy("your created by"),
getallapis.WithUpdatedBy("your updated by"),
getallapis.WithIsPublic(true),
getallapis.WithName("your name"),
getallapis.WithSummary("your summary"),
getallapis.WithDescription("your description"),
getallapis.WithSort("your sort"),
getallapis.WithDirection("your direction")
)
if err != nil {
panic(err)
}
fmt.Println(res)
}
```This example loads configuration from environment variables, specifically:
* `POSTMAN_API_KEY`
# Documentation
* [API Documentation](https://www.postman.com/postman/workspace/postman-public-workspace/documentation/12959542-c8142d51-e97c-46b6-bd77-52bb66712c9a)
You can see working examples of every API call in the `examples/` directory.
# Contributing
Contributions are welcome!
*Library created with [Libninja](https://www.libninja.com).*