Skip to content

This Flask-based API provides detailed information about various programming, markup, and database languages. The API allows users to retrieve data about different languages, including their descriptions, use cases, and key features.

License

Notifications You must be signed in to change notification settings

Satyam4229/Programming-Language-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming Language API

This API provides information about various programming languages, including database languages, markup languages, and scripting languages. It is deployed on Render and can be accessed using the following endpoints.

API Endpoints

1. Get All Programming Languages

Endpoint:

GET https://programming-language-api.onrender.com/api/languages

Description: Retrieves a list of all available programming languages with their details.


2. Get a Programming Language by Index

Endpoint:

GET https://programming-language-api.onrender.com/api/languages/{index}

Description: Retrieves the programming language at the specified index in the dataset.

Example Request:

GET https://programming-language-api.onrender.com/api/languages/5

Response:

{
  "name": "Python",
  "type": "Programming Language",
  "paradigm": "Object-Oriented, Functional, Procedural",
  "description": "Python is an interpreted, high-level programming language known for its simplicity and readability."
}

3. Get a Programming Language by Name

Endpoint:

GET https://programming-language-api.onrender.com/api/languages/{language-name}

Description: Retrieves details of a specific programming language by its name.

Example Request:

GET https://programming-language-api.onrender.com/api/languages/python

Response:

{
  "name": "Python",
  "type": "Programming Language",
  "paradigm": "Object-Oriented, Functional, Procedural",
  "description": "Python is an interpreted, high-level programming language known for its simplicity and readability."
}

Setup and Deployment

1. Clone the Repository

git clone https://github.com/Satyam4229/Programming-Language-API.git
cd Programming-Language-API

2. Install Dependencies

pip install -r requirements.txt

3. Run the API Locally

python app.py

The API will be available at http://127.0.0.1:5000.


Hosting on Render

This API is hosted on Render and can be accessed using the URLs mentioned in the API Endpoints section.

To deploy it on Render, follow these steps:

  1. Push your latest code to GitHub.
  2. Go to Render and create a new Web Service.
  3. Connect your GitHub repository.
  4. Set the Build Command: pip install -r requirements.txt
  5. Set the Start Command: gunicorn app:app
  6. Deploy the service.

Contributing

Feel free to contribute by submitting issues or pull requests on GitHub.


License

This project is licensed under the MIT License.


Contact

For any queries or suggestions, reach out via:

About

This Flask-based API provides detailed information about various programming, markup, and database languages. The API allows users to retrieve data about different languages, including their descriptions, use cases, and key features.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages