https://github.com/sadok-f/searchstax-mock-api
https://github.com/sadok-f/searchstax-mock-api
Last synced: 10 months 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-12T20:07:36.000Z (about 2 years ago)
- Last Synced: 2025-02-01T13:26:40.361Z (11 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
```bash
docker 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