Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sadok-f/searchstax-mock-api
https://github.com/sadok-f/searchstax-mock-api
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sadok-f/searchstax-mock-api
- Owner: sadok-f
- License: mit
- Created: 2023-08-15T21:18:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-12T20:07:36.000Z (11 months ago)
- Last Synced: 2024-06-21T06:46:51.722Z (5 months ago)
- Language: Go
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simulate SearchStax API response.
Based on https://www.searchstax.com/docs/searchstax-cloud-deployment-api/## Install
```bash
git clone github.com/sadok-f/searchstax-mock-api
cd searchstax-mock-api/
go install
```## Serve Mock Server
```bash
./searchstax-mock-api
```### Docker
```bashdocker run -p 3000:3000 sadokf/searchstax-mock-api
```### Accessing the server:
```bash
curl -XPOST localhost:3000/api/rest/v2/obtain-auth-token/{
"token": "aa70cb0a180a0532ae8855f7a1712eeceb81e080"
}
```
### Forked from
https://github.com/tkc/go-json-server