Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanengineer/microservice-swift-postgresql-product-service
https://github.com/sanengineer/microservice-swift-postgresql-product-service
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sanengineer/microservice-swift-postgresql-product-service
- Owner: sanengineer
- Created: 2021-08-21T00:13:02.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-21T08:50:35.000Z (over 3 years ago)
- Last Synced: 2024-11-11T23:26:31.848Z (3 months ago)
- Language: Swift
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Server Side Swift With Postgres For Create Product Services As Microservices
On almost engineer just strating, swift familliar running on apple device on client-side. But since apple build SwiftNIO, swift unlock capability can running on server-side. In this project I try use vapor and postgres to create restfull api. vapor is web framework for server-side swift, and build on top of SwiftNIO.
## Rest Endpoint URL
### Read
I called all http method GET is Query, this is all endpoint url I've created:
Read all data:
/product
Read one data by id:/product/{product_id}
Search data by term:
/product/result?search_query={query}
### POST
/product
### PUT
/product/{product_id}
### DELETE
/product/{product_id}