DeveloperBreeze

Api Development Development Tutorials, Guides & Insights

Unlock 4+ expert-curated api development tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your api development skills on DeveloperBreeze.

Tutorial
python

Getting Started with Pydantic: Data Validation and Type Coercion in Python

You can use field aliases to allow for different input names:

class User(BaseModel):
    id: int
    full_name: str = Field(alias='name')

Aug 29, 2024
Read More
Tutorial
go

Building a RESTful API with Go and Gorilla Mux

go run main.go

The server should be running on http://localhost:8000.

Aug 12, 2024
Read More
Tutorial
javascript nodejs +1

Building a GraphQL API with Node.js and Apollo Server

Modify the schema to include a query for fetching a book by title:

const typeDefs = gql`
    type Book {
        title: String!
        author: String!
    }

    type Query {
        books: [Book]
        bookByTitle(title: String!): Book
    }

    type Mutation {
        addBook(title: String!, author: String!): Book
    }
`;

const resolvers = {
    Query: {
        books: () => books,
        bookByTitle: (_, { title }) => books.find(book => book.title === title),
    },
    Mutation: {
        addBook: (_, { title, author }) => {
            const newBook = { title, author };
            books.push(newBook);
            return newBook;
        },
    },
};

Aug 12, 2024
Read More
Tutorial
python

Creating a Simple REST API with Flask

pip install Flask
mkdir flask_rest_api
cd flask_rest_api

Aug 03, 2024
Read More