šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/youssef1337/wikipedia-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/youssef1337/wikipedia-api

v0.0.0-20221217025645-07c60aa3bf35
Source
Go
Version published
Created
Source

Wikipedia API

This is an API to get short descriptions of Wikipedia articles.

Available at https://wikipedia.youssefsobhy.com/api/v1

Documentation available at https://wikipedia.youssefsobhy.com/api/v1/docs/index.html

Go Version Uptime Status B&T License

Table of contents

Installation

  • Make sure you have Golang installed on your machine (https://go.dev/doc/install)
  • Clone the repository and change directory to the project
    git clone https://github.com/youssef1337/wikipedia-api.git
    cd wikipedia-api
    
  • Install the dependencies
    go get -t ./...
    
  • Run the server
    go run cmd/main.go
    
  • Open your browser and go to http://localhost:3000 to see the API in action

Usage

  • To get a short description of an article, send a GET request to http://localhost:3000/api/v1/search with the article name as a query parameter
    curl http://localhost:3000/api/v1/search?query=Yoshua_Bengio
    
  • To check if the API is running, send a GET request to http://localhost:3000/api/v1
    curl http://localhost:3000/api/v1
    

API Reference and Documentation

Built With

  • Golang - The programming language used
  • Gin - The web framework used
  • Swag - The API documentation generator used

Deployment

  • Render - The cloud platform used to deploy the API
  • Cloudflare - The service used to manage the DNS records

Monitoring

  • UptimeRobot - The service used to monitor the API uptime and status

License

Apache License 2.0

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Authors and acknowledgment

FAQs

Package last updated on 17 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts