Skip to content

AndyPendragon/first-swagger-specs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

My Swagger API Documentation

This is the documentation for my first Swagger API specifications. The API provides endpoints for managing students and teachers.

SWAGGER UI

The API can be used in Swagger UI at:

https://petstore.swagger.io/?url=https://raw.githubusercontent.com/AndyPendragon/first-swagger-specs/main/openapi.yaml

Endpoints

/students

The /students endpoint allows you to interact with student resources.

GET /students

Retrieve a list of all students.

POST /students

Add a new student to the system.

/teachers

The /teachers endpoint allows you to interact with teacher resources.

GET /teachers

Retrieve a list of all teachers.

POST /teachers

Add a new teacher to the system.

How to Use

You can use tools like Swagger UI or Postman to interact with the API endpoints and see the responses.

Example Requests

Show the Student

https://petstore.swagger.io/?url=https://raw.githubusercontent.com/AndyPendragon/first-swagger-specs/main/openapi.yaml#/default/get_students

Add a New Student

POST https://petstore.swagger.io/?url=https://raw.githubusercontent.com/AndyPendragon/first-swagger-specs/main/openapi.yaml#/default/post_students

{
  "id": "1",
  "name": "Rakoto",
  "birthdate": "2000-01-01"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published