# README
Covid State API
An API that can fetch the covid related information about the state depending on the given latitude and longitude.
Prerequisites
Have an account on here.
Instructions
Generate the API key from the REST section on here platform.
Running Instructions
- Parameters
- DataType -- Format in which you want the output (String/JSON)
- QueryParameters
- Latitude
- Longitude
- Database Name -- from which database you want to fetch the data (for me it is Covid)
- Collection Name -- from whicn collection you want to fetch the data (for me it is StateWise)
- ApiKey -- Key Generated from the here platform
- Port
- 8000 -- you can change it is main.go
- Run "go run main.go" to up the server
- Type this on your browser to get the output
- http://localhost:8000/state/string?lat=""&long=""&db=""&collection=""&ApiKey="" or
- http://localhost:8000/state/json?lat=""&long=""&db=""&collection=""&ApiKey=""
- Fill the enpty strings by yourself to get the desired output.
- For Swagger UI
# Packages
No description provided by the author
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag.
No description provided by the author
No description provided by the author